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

Unified Diff: appengine/monorail/templates/tracker/field-value-widgets.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-widgets.ezt
diff --git a/appengine/monorail/templates/tracker/field-value-widgets.ezt b/appengine/monorail/templates/tracker/field-value-widgets.ezt
new file mode 100644
index 0000000000000000000000000000000000000000..f48bd64a2fd3af6b7d6046c757fef08884e34967
--- /dev/null
+++ b/appengine/monorail/templates/tracker/field-value-widgets.ezt
@@ -0,0 +1,37 @@
+[# Display widgets for editing one custom field.
+ The variable "fields" must already refer to a FieldValueView object.
+ arg0: True if the field is multi-valued.
+]
+[is fields.field_def.type_name "ENUM_TYPE"]
+ [if-any arg0]
+ [include "field-value-multi-enum.ezt"]
+ [else]
+ [include "field-value-single-enum.ezt"]
+ [end]
+[end]
+
+[is fields.field_def.type_name "INT_TYPE"]
+ [if-any arg0]
+ [include "field-value-multi-int.ezt"]
+ [else]
+ [include "field-value-single-int.ezt"]
+ [end]
+[end]
+
+[is fields.field_def.type_name "STR_TYPE"]
+ [if-any arg0]
+ [include "field-value-multi-str.ezt"]
+ [else]
+ [include "field-value-single-str.ezt"]
+ [end]
+[end]
+
+[is fields.field_def.type_name "USER_TYPE"]
+ [if-any arg0]
+ [include "field-value-multi-user.ezt"]
+ [else]
+ [include "field-value-single-user.ezt"]
+ [end]
+[end]
+
+[# TODO(jrobbins): more field types. ]

Powered by Google App Engine
This is Rietveld 408576698