From 97d4f34ae2e97bfc0502903705d5495f1f7e48c4 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 14 Jan 2015 11:49:35 -0800 Subject: [PATCH] [About] Refactor overlay templates Refactor overlay templates to separate out the overlay container from the inner dialog containing the form; this permits the easy reuse of that overlay container to supply a non-form-like About dialog, WTD-667. --- platform/commonUI/dialog/bundle.json | 10 ++++++ .../commonUI/dialog/res/templates/dialog.html | 25 +++++++++++++++ .../dialog/res/templates/overlay-dialog.html | 4 +++ .../dialog/res/templates/overlay.html | 32 ++++--------------- 4 files changed, 45 insertions(+), 26 deletions(-) create mode 100644 platform/commonUI/dialog/res/templates/dialog.html create mode 100644 platform/commonUI/dialog/res/templates/overlay-dialog.html diff --git a/platform/commonUI/dialog/bundle.json b/platform/commonUI/dialog/bundle.json index feeb0d9e12..ae1c89cc05 100644 --- a/platform/commonUI/dialog/bundle.json +++ b/platform/commonUI/dialog/bundle.json @@ -15,6 +15,16 @@ "templates": [ { "key": "overlay-dialog", + "templateUrl": "templates/overlay-dialog.html" + }, + { + "key": "form-dialog", + "templateUrl": "templates/dialog.html" + } + ], + "containers": [ + { + "key": "overlay", "templateUrl": "templates/overlay.html" } ] diff --git a/platform/commonUI/dialog/res/templates/dialog.html b/platform/commonUI/dialog/res/templates/dialog.html new file mode 100644 index 0000000000..87cf45d2d6 --- /dev/null +++ b/platform/commonUI/dialog/res/templates/dialog.html @@ -0,0 +1,25 @@ +
+
{{ngModel.title}}
+
+ All fields marked * are required. +
+
+
+
+ + +
+
+
+ + OK + + + Cancel + +
\ No newline at end of file diff --git a/platform/commonUI/dialog/res/templates/overlay-dialog.html b/platform/commonUI/dialog/res/templates/overlay-dialog.html new file mode 100644 index 0000000000..74ec58a075 --- /dev/null +++ b/platform/commonUI/dialog/res/templates/overlay-dialog.html @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/platform/commonUI/dialog/res/templates/overlay.html b/platform/commonUI/dialog/res/templates/overlay.html index d5e0d7de51..00636d5d90 100644 --- a/platform/commonUI/dialog/res/templates/overlay.html +++ b/platform/commonUI/dialog/res/templates/overlay.html @@ -3,32 +3,12 @@
x -
-
-
{{ngModel.title}}
-
All fields marked * are required.
-
-
-
- - - -
-
- + ng-if="ngModel.cancel" + class="btn normal outline ui-symbol close"> + x + +
+
\ No newline at end of file