From 81ed5d154f1d3db94ce0fa7f2bc9e69392f8a089 Mon Sep 17 00:00:00 2001 From: jkaplon Date: Thu, 27 Aug 2015 13:31:17 -0400 Subject: [PATCH] Remove un-needed templates; add color styles to status messages, closes #12. --- views/core-edit.hbs | 24 ------------------------ views/core.hbs | 42 ------------------------------------------ views/default.hbs | 5 +++-- views/index.hbs | 12 ++++-------- 4 files changed, 7 insertions(+), 76 deletions(-) delete mode 100644 views/core-edit.hbs delete mode 100644 views/core.hbs diff --git a/views/core-edit.hbs b/views/core-edit.hbs deleted file mode 100644 index 16f3ed5..0000000 --- a/views/core-edit.hbs +++ /dev/null @@ -1,24 +0,0 @@ -{{!< default}} - -
- {{#form url class="form-horzontal"}} - -
- {{label "deviceName" "Edit Device Name:"}} - {{input "deviceName" coreName class="form-control"}} - {{#if values.0.coreName}} -

* Current value is, {{values.0.coreName}}

- {{/if}} -
- -
- {{label "locationDesc" "Edit Location:"}} - {{input "locationDesc" locationDesc class="form-control"}} - {{#if values.0.locationDesc}} -

* Current value is, {{values.0.locationDesc}}

- {{/if}} -
- - {{submit "save" "Save details" class="btn btn-primary"}} - {{/form}} -
diff --git a/views/core.hbs b/views/core.hbs deleted file mode 100644 index 4f297fb..0000000 --- a/views/core.hbs +++ /dev/null @@ -1,42 +0,0 @@ -{{!< default}} - -

- - {{! Grab 1st coreName value (it will be same value for entire set).}} - {{#if alerts.0.coreName}} - Alerts from Particle Core: {{alerts.0.coreName}} - {{else}} - Alerts from Particle Core: # No Name # - {{/if}} - - - Edit Details - Back to Device Listing -

- - - - - - - - - - - {{#each alerts}} - - - - - - {{/each}} - -
DateTimeStatus
{{this.pubDate}}{{this.pubTime}}{{this.status}}
- - diff --git a/views/default.hbs b/views/default.hbs index af6de45..19f1018 100644 --- a/views/default.hbs +++ b/views/default.hbs @@ -14,12 +14,13 @@ - + +
-

Tennis Courts Open?

+

TT Tennis Courts Are...

{{! Everything else gets inserted here }} diff --git a/views/index.hbs b/views/index.hbs index 118efa5..de4a4f1 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -1,16 +1,12 @@ {{!< default}} -

TT Tennis Courts Are...

- {{! Index-0 is the most recent message. }} -
-

{{values.0.status}}

+
+

{{values.0.status}}

-
-

Update received: {{values.0.pubDate}}, {{values.0.pubTime}}

+

Update received: {{values.0.pubDate}}, {{values.0.pubTime}}

-
-

Prior update was: {{values.1.status}} at {{values.1.pubDate}}, {{values.1.pubTime}}

+

Prior update was: {{values.1.status}} at {{values.1.pubDate}}, {{values.1.pubTime}}