mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Add macros and use them
This commit is contained in:
		@@ -12,44 +12,13 @@
 | 
			
		||||
    <form method="POST">
 | 
			
		||||
      <div class="card-content">
 | 
			
		||||
        {{ edit_user_form.hidden_tag() }}
 | 
			
		||||
        <div class="input-field ">
 | 
			
		||||
          <i class="material-icons prefix">account_circle</i>
 | 
			
		||||
          {{ edit_user_form.username() }}
 | 
			
		||||
          {{ edit_user_form.username.label }}
 | 
			
		||||
          {% for error in edit_user_form.username.errors %}
 | 
			
		||||
          <span class="helper-text red-text">{{ error }}</span>
 | 
			
		||||
          {% endfor %}
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="input-field">
 | 
			
		||||
          <i class="material-icons prefix">mail</i>
 | 
			
		||||
          {{ edit_user_form.email() }}
 | 
			
		||||
          {{ edit_user_form.email.label }}
 | 
			
		||||
          {% for error in edit_user_form.email.errors %}
 | 
			
		||||
          <span class="helper-text red-text">{{ error }}</span>
 | 
			
		||||
          {% endfor %}
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="input-field">
 | 
			
		||||
          <i class="material-icons prefix">swap_vert</i>
 | 
			
		||||
          {{ edit_user_form.role() }}
 | 
			
		||||
          {{ edit_user_form.role.label }}
 | 
			
		||||
          {% for error in edit_user_form.role.errors %}
 | 
			
		||||
          <span class="helper-text red-text">{{ error }}</span>
 | 
			
		||||
          {% endfor %}
 | 
			
		||||
        </div>
 | 
			
		||||
        <div class="switch">
 | 
			
		||||
          <i class="material-icons prefix">check</i>
 | 
			
		||||
          <label>
 | 
			
		||||
            Confirmed
 | 
			
		||||
            {{ edit_user_form.confirmed() }}
 | 
			
		||||
            <span class="lever"></span>
 | 
			
		||||
          </label>
 | 
			
		||||
          {% for error in edit_user_form.confirmed.errors %}
 | 
			
		||||
          <span class="helper-text red-text">{{ error }}</span>
 | 
			
		||||
          {% endfor %}
 | 
			
		||||
        </div>
 | 
			
		||||
        {{ materialize.field(edit_user_form.username, data_length='64', material_icon='account_circle') }}
 | 
			
		||||
        {{ materialize.field(edit_user_form.email, class_='validate', material_icon='email', type='email') }}
 | 
			
		||||
        {{ materialize.field(edit_user_form.role, material_icon='swap_vert') }}
 | 
			
		||||
        {{ materialize.field(edit_user_form.confirmed, material_icon='check') }}
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="card-action right-align">
 | 
			
		||||
        {{ macros.submit_button(edit_user_form.submit) }}
 | 
			
		||||
        {{ materialize.field(edit_user_form.submit, material_icon='send') }}
 | 
			
		||||
      </div>
 | 
			
		||||
    </form>
 | 
			
		||||
  </div>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user