mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #22796 -- Added a more basic explanations of forms.
Thanks bmispelon, kezabelle, jorgecarleitao, and timgraham for reviews.
This commit is contained in:
parent
dbbcfca476
commit
cd20b5d186
4 changed files with 505 additions and 215 deletions
|
@ -376,6 +376,8 @@ You can write code to perform validation for particular form fields (based on
|
|||
their name) or for the form as a whole (considering combinations of various
|
||||
fields). More information about this is in :doc:`/ref/forms/validation`.
|
||||
|
||||
.. _ref-forms-api-outputting-html:
|
||||
|
||||
Outputting forms as HTML
|
||||
------------------------
|
||||
|
||||
|
@ -492,6 +494,8 @@ it calls its ``as_table()`` method behind the scenes::
|
|||
<tr><th><label for="id_sender">Sender:</label></th><td><input type="email" name="sender" id="id_sender" /></td></tr>
|
||||
<tr><th><label for="id_cc_myself">Cc myself:</label></th><td><input type="checkbox" name="cc_myself" id="id_cc_myself" /></td></tr>
|
||||
|
||||
.. _ref-forms-api-styling-form-rows:
|
||||
|
||||
Styling required or erroneous form rows
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue