~homeworkprod/byceps-bungalows

e20a6e5397bca481354125368633c783cb7237d7 — Jochen Kupperschmidt 3 months ago 262bbc4
Move form buttons out of `.main-body-box`
M byceps/blueprints/site/bungalow/templates/site/bungalow/avatar_update_form.html => byceps/blueprints/site/bungalow/templates/site/bungalow/avatar_update_form.html +5 -5
@@ 15,8 15,8 @@
  </nav>
  <h1 class="title">{{ render_icon('edit') }} Bungalow-Avatar hochladen</h1>

  <div class="main-body-box">
    <form action="{{ url_for('.avatar_update', occupancy_id=bungalow.occupancy.id) }}" method="post" enctype="multipart/form-data">
  <form action="{{ url_for('.avatar_update', occupancy_id=bungalow.occupancy.id) }}" method="post" enctype="multipart/form-data">
    <div class="main-body-box">
    {%- with %}
      {%- set note %}
        {{ _('Allowed formats') }}: {{ allowed_types|sort|join(', ') }}<br>


@@ 26,9 26,9 @@
      {%- endset %}
      {{ form_field(form.image, maxlength=150000, accept='image/*', autofocus='autofocus', note=note) }}
    {%- endwith %}
    </div>

      {{ form_buttons(render_icon('upload') + ' ' + _('Upload')) }}
    </form>
  </nav>
    {{ form_buttons(render_icon('upload') + ' ' + _('Upload')) }}
  </form>

{%- endblock %}

M byceps/blueprints/site/bungalow/templates/site/bungalow/description_update_form.html => byceps/blueprints/site/bungalow/templates/site/bungalow/description_update_form.html +5 -5
@@ 15,13 15,13 @@
  </nav>
  <h1 class="title">{{ render_icon('edit') }} Name und Beschreibung bearbeiten</h1>

  <div class="main-body-box">
    <form action="{{ url_for('.description_update', occupancy_id=bungalow.occupancy.id) }}" method="post">
  <form action="{{ url_for('.description_update', occupancy_id=bungalow.occupancy.id) }}" method="post">
    <div class="main-body-box">
      {{ form_field(form.title, maxlength=20, autofocus='autofocus') }}
      {{ form_field(form.description) }}
    </div>

      {{ form_buttons(_('Save'), cancel_url=url_for('.view', number=bungalow.number)) }}
    </form>
  </div>
    {{ form_buttons(_('Save'), cancel_url=url_for('.view', number=bungalow.number)) }}
  </form>

{%- endblock %}

M byceps/blueprints/site/bungalow/templates/site/bungalow/occupant_add_form.html => byceps/blueprints/site/bungalow/templates/site/bungalow/occupant_add_form.html +5 -5
@@ 16,12 16,12 @@
  </nav>
  <h1 class="title">{{ render_icon('add') }} {{ page_title }}</h1>

  <div class="main-body-box">
    <form action="{{ url_for('.occupant_add', ticket_id=occupant_slot.ticket_id) }}" method="post">
  <form action="{{ url_for('.occupant_add', ticket_id=occupant_slot.ticket_id) }}" method="post">
    <div class="main-body-box">
      {{ form_field(form.occupant, maxlength=40, autofocus='autofocus') }}
    </div>

      {{ form_buttons(_('Add'), cancel_url=url_for('.occupant_index', number=bungalow.number)) }}
    </form>
  </div>
    {{ form_buttons(_('Add'), cancel_url=url_for('.occupant_index', number=bungalow.number)) }}
  </form>

{%- endblock %}

M byceps/blueprints/site/bungalow/templates/site/bungalow/occupant_remove_form.html => byceps/blueprints/site/bungalow/templates/site/bungalow/occupant_remove_form.html +6 -6
@@ 17,12 17,12 @@
  </nav>
  <h1 class="title">{{ render_icon('delete') }} {{ page_title }}</h1>

  <div class="main-body-box">
    <form action="{{ url_for('.occupant_remove', ticket_id=occupant_slot.ticket_id) }}" method="post">
      <p>Soll {{ render_user_link(occupant_slot.occupant) }} wirklich als Mitbewohner aus Bungalow {{ bungalow.number }} entfernt werden?</p>
  <form action="{{ url_for('.occupant_remove', ticket_id=occupant_slot.ticket_id) }}" method="post">
    <div class="main-body-box">
      Soll {{ render_user_link(occupant_slot.occupant) }} wirklich als Mitbewohner aus Bungalow {{ bungalow.number }} entfernt werden?
    </div>

      {{ form_buttons(_('Remove'), cancel_url=url_for('.occupant_index', number=bungalow.number)) }}
    </form>
  </div>
    {{ form_buttons(_('Remove'), cancel_url=url_for('.occupant_index', number=bungalow.number)) }}
  </form>

{%- endblock %}