summaryrefslogtreecommitdiff
path: root/lib/okpush
diff options
context:
space:
mode:
Diffstat (limited to 'lib/okpush')
-rw-r--r--lib/okpush/index.js4
-rw-r--r--lib/okpush/templates/new.liquid13
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>