Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
David Winterbottom a8e2156659 Allow form labels to contain HTML il y a 12 ans
..
oscar Allow form labels to contain HTML il y a 12 ans
README.rst Add mark-up guide for forms il y a 13 ans

README.rst

Mark-up guide
=============

Forms
-----

Forms should be marked-up as::

<form method="post" action="." class="form-horizontal">
{% csrf_token %}
{% include 'partials/form_fields.html' %}
<div class="form-actions">
<button class="btn btn-large btn-primary" type="submit">Save</button>
or <a href="{{ some_url }}">cancel</a>
</div>
</form>

The ``.form-actions`` class aligns the buttons with the fields and adds a gray
background.

Alternatively, use::

<form method="post" action="." class="form-horizontal">
{% csrf_token %}
{% include 'partials/form_fields.html' %}
<div class="control-group">
<div class="controls">
<button class="btn btn-large btn-primary" type="submit">Save</button>
or <a href="{{ some_url }}">cancel</a>
</div>
</div>
</form>

The ``.control-group`` class aligns the buttons with the fields.