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 %}
      Pierre-Yves Chibon 2ed959
      Pierre-Yves Chibon 2ed959
      Pierre-Yves Chibon 2ed959
      {% macro render_field_in_list(field) %}
      Pierre-Yves Chibon 2ed959
          
    • {{ field.label }}
    • Pierre-Yves Chibon 2ed959
          
    • {{ field(**kwargs)|safe }}
    • Pierre-Yves Chibon 2ed959
      {% if field.errors %}
      Pierre-Yves Chibon 2ed959
      {% for error in field.errors %}
      Pierre-Yves Chibon 2ed959
    • {{ error }}
    • Pierre-Yves Chibon 2ed959
      {% endfor %}
      Pierre-Yves Chibon 2ed959
      {% endif %}
      Pierre-Yves Chibon 2ed959
      {% endmacro %}