notification #292
| @@ -67,7 +67,7 @@ | ||||
|                                     <a href="/admin/user/{{ user.id }}/membership" | ||||
|                                        class="text-black dark:text-white">Beitrittserklärung herunterladen</a> | ||||
|                                 {% endif %} | ||||
|                                 {{ macros::input(label='Beitrittserklärung', name='membership_pdf', id=loop.index, type="file", readonly=allowed_to_edit == false) }} | ||||
|                                 {{ macros::input(label='Beitrittserklärung', name='membership_pdf', id=loop.index, type="file", readonly=allowed_to_edit == false, accept='application/pdf') }} | ||||
|                                 {{ macros::input(label='DOB', name='dob', id=loop.index, type="text", value=user.dob, readonly=allowed_to_edit == false) }} | ||||
|                                 {{ macros::input(label='Weight (kg)', name='weight', id=loop.index, type="text", value=user.weight, readonly=allowed_to_edit == false) }} | ||||
|                                 {{ macros::input(label='Sex', name='sex', id=loop.index, type="text", value=user.sex, readonly=allowed_to_edit == false) }} | ||||
|   | ||||
| @@ -115,7 +115,7 @@ | ||||
|         </header> | ||||
|         <div class="h-8"></div> | ||||
|     {% endmacro header %} | ||||
|     {% macro input(label, name, type, required=false, class='rounded-md', value='', min='', hide_label=false, id='', autofocus=false, wrapper_class='', pattern='', readonly=false) %} | ||||
|     {% macro input(label, name, type, required=false, class='rounded-md', value='', min='', hide_label=false, id='', autofocus=false, wrapper_class='', pattern='', readonly=false, accept='') %} | ||||
|         <div class="{{ wrapper_class }}"> | ||||
|             <label for="{{ name }}" | ||||
|                    class="{% if hide_label %} sr-only {% else %} text-sm text-gray-600 dark:text-white {% endif %}"> | ||||
| @@ -131,6 +131,7 @@ | ||||
|                    placeholder="{% if hide_label %}{{ label }}{% endif %}" | ||||
|                    {% if min is defined %}min="{{ min }}"{% endif %} | ||||
|                    {% if autofocus %}autofocus{% endif %} | ||||
|                    {% if accept %}accept="{{ accept }}"{% endif %} | ||||
|                    {% if pattern %}pattern="{{ pattern }}"{% endif %} | ||||
|                    {% if readonly %}readonly{% endif %}> | ||||
|         </div> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user