Blame progit/templates/_formhelper.html

Pierre-Yves Chibon 526b0b
{% macro render_field(field, after="") %}
Pierre-Yves Chibon 526b0b
Pierre-Yves Chibon 526b0b
  {{ field.label }}{{ field(**kwargs)|safe }}
Pierre-Yves Chibon 526b0b
  {% if after %} {{ after }}{% endif %}
Pierre-Yves Chibon 526b0b
  {% if field.errors %}
Pierre-Yves Chibon 526b0b
  
    Pierre-Yves Chibon 526b0b
        {% for error in field.errors %}
    Pierre-Yves Chibon 526b0b
        
  • {{ error }}
  • Pierre-Yves Chibon 526b0b
        {% endfor %}
    Pierre-Yves Chibon 526b0b
      
    Pierre-Yves Chibon 526b0b
      {% endif %}
    Pierre-Yves Chibon 526b0b
    Pierre-Yves Chibon 526b0b
    {% endmacro %}
    Pierre-Yves Chibon 526b0b
    Pierre-Yves Chibon 526b0b
    {% macro render_field_invert(field, after="") %}
    Pierre-Yves Chibon 526b0b
    Pierre-Yves Chibon 526b0b
      {{ field(**kwargs)|safe }}{{ field.label }}
    Pierre-Yves Chibon 526b0b
      {% if after %} {{ after }}{% endif %}
    Pierre-Yves Chibon 526b0b
      {% if field.errors %}
    Pierre-Yves Chibon 526b0b
      
      Pierre-Yves Chibon 526b0b
          {% for error in field.errors %}
      Pierre-Yves Chibon 526b0b
          
    • {{ error }}
    • Pierre-Yves Chibon 526b0b
          {% endfor %}
      Pierre-Yves Chibon 526b0b
        
      Pierre-Yves Chibon 526b0b
        {% endif %}
      Pierre-Yves Chibon 526b0b
      Pierre-Yves Chibon 526b0b
      {% endmacro %}
      Pierre-Yves Chibon 526b0b
      Pierre-Yves Chibon 526b0b
      {% macro render_field_in_row(field, after="") %}
      Pierre-Yves Chibon 526b0b
      Pierre-Yves Chibon 526b0b
          {{ field.label }}
      Pierre-Yves Chibon 526b0b
          {{ field(**kwargs)|safe }}
      Pierre-Yves Chibon 526b0b
      {% if after %} {{ after }}{% endif %}
      Pierre-Yves Chibon 526b0b
      {% if field.errors %}
      Pierre-Yves Chibon 526b0b
      {% for error in field.errors %}
      Pierre-Yves Chibon 526b0b
      {{ error }}
      Pierre-Yves Chibon 526b0b
      {% endfor %}
      Pierre-Yves Chibon 526b0b
      {% endif %}
      Pierre-Yves Chibon 526b0b
      Pierre-Yves Chibon 526b0b
      {% endmacro %}
      Pierre-Yves Chibon 526b0b
      Pierre-Yves Chibon 526b0b
      {% macro render_field_in_cell(field, after="") %}
      Pierre-Yves Chibon 526b0b
          {{ field.label }}
      Pierre-Yves Chibon 526b0b
          {{ field(**kwargs)|safe }}
      Pierre-Yves Chibon 526b0b
      {% if after %} {{ after }}{% endif %}
      Pierre-Yves Chibon 526b0b
      {% if field.errors %}
      Pierre-Yves Chibon 526b0b
      {% for error in field.errors %}
      Pierre-Yves Chibon 526b0b
      {{ error }}
      Pierre-Yves Chibon 526b0b
      {% endfor %}
      Pierre-Yves Chibon 526b0b
      {% endif %}
      Pierre-Yves Chibon 526b0b
      {% endmacro %}