diff options
| author | stone <jules+okfprojz@okfoc.us> | 2017-09-23 16:01:40 -0400 |
|---|---|---|
| committer | stone <jules+okfprojz@okfoc.us> | 2017-09-23 16:01:40 -0400 |
| commit | 20544c056ad5e8a03ce61061028194a4ce501a76 (patch) | |
| tree | 44c9c48f1f60cef67da49c809d042926bbd7f01b | |
| parent | a535ce2d8ec540f9c2d263e3c52d6c95d8251a75 (diff) | |
| parent | fc8e58d8dc7edcfc7786ae6a2633adf19411eddb (diff) | |
Merge branch 'cms' of ghghgh.us:stone-island into cms
| -rw-r--r-- | lib/okpush/index.js | 4 | ||||
| -rw-r--r-- | lib/okpush/templates/new.liquid | 13 |
2 files changed, 11 insertions, 6 deletions
diff --git a/lib/okpush/index.js b/lib/okpush/index.js index 08ab15ae..49fc5363 100644 --- a/lib/okpush/index.js +++ b/lib/okpush/index.js @@ -94,6 +94,10 @@ function OKPush (options) { }) router.get('/new', function (req, res) { + var data = { + meta: meta, + notifications: config.notifications, + } templates['new'].render(data).then(function(rendered) { res.send(rendered); }).fail(error(req, res, 500)) diff --git a/lib/okpush/templates/new.liquid b/lib/okpush/templates/new.liquid index b16d0ae0..21170b75 100644 --- a/lib/okpush/templates/new.liquid +++ b/lib/okpush/templates/new.liquid @@ -13,14 +13,15 @@ <h2>Custom Push Notification</h2> - <form id='custom'> - - <div> + <form id='custom' id="resource_form"> + <input type="hidden" name="_method" value="PUT"> + + <div class="property string"> <label for='message'>Message</label> <input type='text' name='message' id='message'> </div> - <div> + <div class="property string"> <label for='url'>Destination</label> <select id='url' name='url'> <option>/</option> @@ -29,11 +30,11 @@ <option>/story</option> <option>/archive</option> </select> - (will open after push is tapped) </div> <div> - <input type='submit' value='Send Push Notification'> + <label></label> + <button type='submit' class='btn'>Send Push Notification</button> </div> </form> |
