Index: appengine/monorail/templates/tracker/field-value-multi-user.ezt |
diff --git a/appengine/monorail/templates/tracker/field-value-multi-user.ezt b/appengine/monorail/templates/tracker/field-value-multi-user.ezt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b006af6737d975ec35d45c614a3b4af1af94efa6 |
--- /dev/null |
+++ b/appengine/monorail/templates/tracker/field-value-multi-user.ezt |
@@ -0,0 +1,26 @@ |
+[if-any fields.values] |
+ [for fields.values] |
+ <input type="text" name="custom_[fields.field_id]" value="[fields.values.val]" |
+ [# TODO(jrobbins): include fields.min_value and fields.max_value attrs] |
+ [if-index fields.values first] |
+ [if-any fields.field_def.is_required_bool]required="required"[end] |
+ [end] |
+ style="width:12em" class="multivalued userautocomplete customfield" autocomplete="off"> |
+ [if-index fields.values first][else] |
+ <u class="removeMultiFieldValueWidget">X</u> |
+ [end] |
+ [if-index fields.values last] |
+ <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="user">Add a value</u> |
+ [end] |
+ [end] |
+[else] |
+ <input type="text" name="custom_[fields.field_id]" value="" |
+ [if-any fields.field_def.is_required_bool]required="required"[end] |
+ style="width:12em" class="multivalued userautocomplete customfield" autocomplete="off"> |
+ <u class="addMultiFieldValueWidget" data-field-id="[fields.field_id]" data-field-type="user">Add a value</u> |
+[end] |
+ |
+[for fields.derived_values] |
+ <input type="text" disabled="disabled" value="[fields.derived_values.val]" |
+ style="width:12em" class="multivalued"> |
+[end] |