~homeworkprod/byceps-bungalows

857ec52c1515a50dbba22a232ca614e67b037d91 — Jochen Kupperschmidt 3 months ago 2355ad4
Adjust to form field parameter `note` renamed to `caption`
M byceps/blueprints/admin/bungalow/templates/admin/bungalow/category_create_form.html => byceps/blueprints/admin/bungalow/templates/admin/bungalow/category_create_form.html +3 -3
@@ 23,13 23,13 @@

      <div class="row">
        <div class="column--grow">
          {{ form_field(form.image_filename, note='optional') }}
          {{ form_field(form.image_filename, caption='optional') }}
        </div>
        <div>
          {{ form_field(form.image_width, min=1, suffix='px', note='optional', style='width: 4.5rem;') }}
          {{ form_field(form.image_width, min=1, suffix='px', caption='optional', style='width: 4.5rem;') }}
        </div>
        <div>
          {{ form_field(form.image_height, min=1, suffix='px', note='optional', style='width: 4.5rem;') }}
          {{ form_field(form.image_height, min=1, suffix='px', caption='optional', style='width: 4.5rem;') }}
        </div>
      </div>
    </div>

M byceps/blueprints/admin/bungalow/templates/admin/bungalow/category_update_form.html => byceps/blueprints/admin/bungalow/templates/admin/bungalow/category_update_form.html +3 -3
@@ 23,13 23,13 @@

      <div class="row">
        <div class="column--grow">
          {{ form_field(form.image_filename, note='optional') }}
          {{ form_field(form.image_filename, caption='optional') }}
        </div>
        <div>
          {{ form_field(form.image_width, min=1, suffix='px', note='optional', style='width: 4.5rem;') }}
          {{ form_field(form.image_width, min=1, suffix='px', caption='optional', style='width: 4.5rem;') }}
        </div>
        <div>
          {{ form_field(form.image_height, min=1, suffix='px', note='optional', style='width: 4.5rem;') }}
          {{ form_field(form.image_height, min=1, suffix='px', caption='optional', style='width: 4.5rem;') }}
        </div>
      </div>
    </div>

M byceps/blueprints/site/bungalow/templates/site/bungalow/avatar_update_form.html => byceps/blueprints/site/bungalow/templates/site/bungalow/avatar_update_form.html +2 -2
@@ 18,13 18,13 @@
  <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 %}
      {%- set caption %}
        {{ _('Allowed formats') }}: {{ allowed_types|sort|join(', ') }}<br>
        {{ _('Maximum image dimensions') }}: {{ maximum_dimensions.width }} &times; {{ maximum_dimensions.height }} {{ _('pixels') }}<br>
        {{ _('Maximum file size') }}: 150 KB<br>
        {{ _('If the image is not square it will be cropped.') }}
      {%- endset %}
      {{ form_field(form.image, maxlength=150000, accept='image/*', autofocus='autofocus', note=note) }}
      {{ form_field(form.image, maxlength=150000, accept='image/*', autofocus='autofocus', caption=caption) }}
    {%- endwith %}
    </div>