--- a/frontend/views/index.jade
+++ b/frontend/views/index.jade
@@ -1,37 +1,12 @@
.card#c2net
.card-header
- h1 #{__('C2NET')}
+ h1 #{__('Notification Manager')}
.card-body.card-padding
- p {{::message}}
- form(action='/c2net/api/sendNotification', method='post', onsubmit="alert('success: user will be notified!');")
- .form-group
- label(for='userId') User id:
- input#userId.form-control(aria-describedby='userID', placeholder='56e1827370434e7b2809564f', name='userId')
- small#userID.form-text.text-muted Make sure user id is correct.
- .form-group
- label(for='title') Title:
- input#userId.form-control(aria-describedby='title', name='title')
- .form-group
- label(for='msg') Message:
- br
- textarea(rows='4', cols='50', name='msg')
- fieldset.form-group
- label(for='type') Type:
- .form-check
- label.form-check-label
- input#login.form-check-input(type='radio', name='type', value='login', checked='')
- | plan
- .form-check
- label.form-check-label
- input#community.form-check-input(type='radio', name='type', value='community')
- | community
- .form-check
- label.form-check-label
- input#calendar.form-check-input(type='radio', name='type', value='calendar')
- | calendar
- .form-check
- label.form-check-label
- input#calendar.form-check-input(type='radio', name='type', value='others')
- | others
- button.btn.btn-primary(type='submit') Send
-
+ ul.arrow(ng-controller='c2netNotificationController')
+ li.notification-item.read.text-center(ng-show="!notifications.length") #{__('You have no notifications.')}
+ li.notification-item.read.text-center(ng-show="error") #{__('Error while getting notifications')}.
+ li.notification-item.read.text-center(ng-show="loading")
+ | #{__('Loading notifications')}...
+ li.notification-item(ng-repeat="notification in notifications")
+ tut-external-user-notification(notification='notification')
+