Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1945)

Unified Diff: appengine/monorail/templates/tracker/field-value-multi-int.ezt

Issue 1868553004: Open Source Monorail (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
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 side-by-side diff with in-line comments
Download patch
Index: appengine/monorail/templates/tracker/field-value-multi-int.ezt
diff --git a/appengine/monorail/templates/tracker/field-value-multi-int.ezt b/appengine/monorail/templates/tracker/field-value-multi-int.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..e9aeb8ff54ff6673fc0acddef7a7e607bfd07dc4
--- /dev/null
+++ b/appengine/monorail/templates/tracker/field-value-multi-int.ezt
@@ -0,0 +1,32 @@
+[if-any fields.values]
+ [for fields.values]
+ <input type="number" name="custom_[fields.field_id]" value="[fields.values.val]"
+ [if-any fields.field_def.min_value]min="[fields.field_def.min_value]"[end]
+ [if-any fields.field_def.max_value]max="[fields.field_def.max_value]"[end]
+ [if-index fields.values first]
+ [if-any fields.field_def.is_required_bool]required="required"[end]
+ [end]
+ style="text-align:right; width:12em" class="multivalued customfield">
+ [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="int"
+ data-validate-1="[fields.field_def.min_value]" data-validate-2="[fields.field_def.max_value]"
+ >Add a value</u>
+ [end]
+ [end]
+[else]
+ <input type="number" name="custom_[fields.field_id]" value=""
+ [if-any fields.field_def.min_value]min="[fields.field_def.min_value]"[end]
+ [if-any fields.field_def.max_value]max="[fields.field_def.max_value]"[end]
+ [if-any fields.field_def.is_required_bool]required="required"[end]
+ style="text-align:right; width:12em" class="multivalued customfield">
+ <u class="addMultiFieldValueWidget" data-field-type="[fields.field_id]" data-field-type="int"
+ data-validate-1="[fields.field_def.min_value]" data-validate-2="[fields.field_def.max_value]">Add a value</u>
+[end]
+
+[for fields.derived_values]
+ <input type="number" disabled="disabled" value="[fields.derived_values.val]"
+ style="font-style:italic; text-align:right; width:12em" class="multivalued">
+[end]

Powered by Google App Engine
This is Rietveld 408576698