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-user.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="text" name="custom_[fields.field_id]" id="custom_[fields.field_ id]" value=""
9 [if-any fields.field_def.is_required_bool]required="required"[end]
10 style="width:12em" class="multivalued userautocomplete customfield" a utocomplete="off">
11 [end]
14 [for fields.values]
15 [if-index fields.values first]
16 <input type="text" name="custom_[fields.field_id]" value="[fields.values.val ]"
17 [if-any fields.field_def.is_required_bool]required="required"[end]
18 style="width:12em" class="multivalued userautocomplete customfield" a utocomplete="off">
19 [else]
20 <span>
21 <input type="text" disabled="disabled" value="[fields.values.val]"
22 style="width:12em" class="multivalued userautocomplete customfield" autocomplete="off">
23 <a href="#" class="removeMultiFieldValueWidget">X</a>
24 </span>
25 [end]
26 [end]
28 [for fields.derived_values]
29 <input type="text" disabled="disabled" value="[fields.derived_values.val]"
30 style="font-style:italic; width:12em" class="multivalued">
31 [end]

Powered by Google App Engine
This is Rietveld 408576698