Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Side by Side Diff: appengine/monorail/templates/tracker/field-value-single-int.ezt

Issue 1868553004: Open Source Monorail (Closed) Base URL:
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
1 [# Even though this field definition says it is single-valued, the issue might h ave
2 multiple values if the field definition was previously multi-valued. In such a situation
3 values other than the first value are shown read-only and must be explicitly removed
4 before the comment can be submitted. ]
6 [# If the field has no explicit values, then show an empty form element.]
7 [if-any fields.values][else]
8 <input type="number" name="custom_[fields.field_id]" id="custom_[fields.fiel d_id]" value=""
9 [if-any fields.field_def.is_required_bool] required="required"[end]
10 [if-any fields.field_def.min_value]min="[fields.field_def.min_value]" [end]
11 [if-any fields.field_def.max_value]max="[fields.field_def.max_value]" [end]
12 style="text-align:right; width:12em" class="multivalued customfield">
13 [end]
16 [for fields.values]
17 [if-index fields.values first]
18 <input type="number" name="custom_[fields.field_id]" value="[fields.values.v al]"
19 [if-any fields.field_def.is_required_bool]required="required"[end]
20 [if-any fields.field_def.min_value]min="[fields.field_def.min_value]" [end]
21 [if-any fields.field_def.max_value]max="[fields.field_def.max_value]" [end]
22 style="text-align:right; width:12em" class="multivalued customfield">
23 [else]
24 <span>
25 <input type="number" disabled="disabled" value="[fields.values.val]"
26 style="text-align:right; width: 12em" class="multivalued customfiel d">
27 <u class="removeMultiFieldValueWidget">X</u>
28 </span>
29 [end]
30 [end]
32 [for fields.derived_values]
33 <input type="number" disabled="disabled" value="[fields.derived_values.val]"
34 style="font-style:italic; text-align:right; width:12em" class="multival ued">
35 [end]

Powered by Google App Engine
This is Rietveld 408576698