Skip to content

Commit

Permalink
[#1089] Doc block updates
Browse files Browse the repository at this point in the history
  • Loading branch information
johnmartin committed Jul 23, 2013
1 parent 2eb573f commit 1c3604d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ckan/templates/macros/form.html
Expand Up @@ -10,6 +10,7 @@
type - The type of input eg. email, url, date (default: text).
error - A list of error strings for the field or just true to highlight the field.
classes - An array of classes to apply to the control-group.
is_required - Boolean of whether this input is requred for the form to validate

Examples:

Expand All @@ -35,6 +36,7 @@
checked - If true the checkbox will be checked
error - An error string for the field or just true to highlight the field.
classes - An array of classes to apply to the control-group.
is_required - Boolean of whether this input is requred for the form to validate

Example:

Expand Down Expand Up @@ -72,6 +74,7 @@
selected - The value of the selected <option>.
error - A list of error strings for the field or just true to highlight the field.
classes - An array of classes to apply to the control-group.
is_required - Boolean of whether this input is requred for the form to validate

Examples:

Expand Down Expand Up @@ -104,6 +107,7 @@
placeholder - Some placeholder text.
error - A list of error strings for the field or just true to highlight the field.
classes - An array of classes to apply to the control-group.
is_required - Boolean of whether this input is requred for the form to validate

Examples:

Expand Down Expand Up @@ -133,6 +137,7 @@
placeholder - Some placeholder text.
error - A list of error strings for the field or just true to highlight the field.
classes - An array of classes to apply to the control-group.
is_required - Boolean of whether this input is requred for the form to validate

Examples:

Expand Down Expand Up @@ -164,6 +169,7 @@
placeholder - Some placeholder text.
error - A list of error strings for the field or just true to highlight the field.
classes - An array of classes to apply to the control-group.
is_required - Boolean of whether this input is requred for the form to validate

Examples:

Expand Down Expand Up @@ -200,6 +206,7 @@
placeholder - A tuple of placeholder text for the (key, value) fields.
error - A list of error strings for the field or just true to highlight the field.
classes - An array of classes to apply to the control-group.
is_required - Boolean of whether this input is requred for the form to validate

Examples:

Expand Down Expand Up @@ -242,6 +249,7 @@
classes - An array of custom classes for the outer element.
control_classes - An array of custom classes for the .control wrapper.
extra_html - An html string to be inserted after the errors eg. info text.
is_required - Boolean of whether this input is requred for the form to validate

Example:

Expand Down

0 comments on commit 1c3604d

Please sign in to comment.