sou 7 лет назад
Родитель
Сommit
68d3f80edb

+ 6 - 6
lib/views/admin/global-notification-detail.html

@@ -80,37 +80,37 @@
               <div class="checkbox checkbox-info">
                 <input type="checkbox" id="trigger-event-pageCreate" name="notificationGlobal[triggerEvent:pageCreate]" value="pageCreate" />
                 <label for="trigger-event-pageCreate">
-                    <i class="icon-note"></i> - When New Page is Created
+                  <span class="label label-info"><i class="icon-doc"></i> CREATE</span> - When New Page is Created
                 </label>
               </div>
               <div class="checkbox checkbox-info">
                 <input type="checkbox" id="trigger-event-pageEdit" name="notificationGlobal[triggerEvent:pageEdit]" value="pageEdit" />
                 <label for="trigger-event-pageEdit">
-                    <i class="icon-note"></i> - When Page is Edited
+                  <span class="label label-info"><i class="icon-doc"></i> EDIT</span> - When Page is Edited
                 </label>
               </div>
               <div class="checkbox checkbox-info">
                 <input type="checkbox" id="trigger-event-pageDelete" name="notificationGlobal[triggerEvent:pageDelete]" value="pageDelete" />
                 <label for="trigger-event-pageDelete">
-                    <i class="icon-note"></i> - When is Deleted
+                  <span class="label label-info"><i class="icon-doc"></i> DELETE</span> - When is Deleted
                 </label>
               </div>
               <div class="checkbox checkbox-info">
                 <input type="checkbox" id="trigger-event-pageMove" name="notificationGlobal[triggerEvent:pageMove]" value="pageMove" />
                 <label for="trigger-event-pageMove">
-                    <i class="icon-note"></i> - When Page is Moved (Renamed)
+                  <span class="label label-info"><i class="icon-doc"></i> MOVE</span> - When Page is Moved (Renamed)
                 </label>
               </div>
               <div class="checkbox checkbox-info">
                   <input type="checkbox" id="trigger-event-pageLike" name="notificationGlobal[triggerEvent:pageLike]" value="pageLike" />
                   <label for="trigger-event-pageLike">
-                      <i class="icon-note"></i> - When Someone Likes Page
+                    <span class="label label-info"><i class="icon-doc"></i> LIKE</span> - When Someone Likes Page
                   </label>
                 </div>
               <div class="checkbox checkbox-info">
                 <input type="checkbox" id="trigger-event-comment" name="notificationGlobal[triggerEvent:comment]" value="comment" />
                 <label for="trigger-event-comment">
-                    <i class="icon-note"></i> - When Someone Comments on Page
+                  <span class="label label-info"><i class="icon-fw icon-bubbles"></i> POST</span> - When Someone Comments on Page
                 </label>
               </div>
             </div>

+ 4 - 27
lib/views/admin/global-notification.html

@@ -15,34 +15,11 @@
 <table class="table table-bordered">
   <thead>
     <th>ON/OFF</th>
-    <th>Pattern</th>
-    <th>Triggers</th>
+    <th>Trigger Path (expression with <code>*</code> is supported)</th>
+    <th>Trigger Events</th>
     <th>Notify To</th>
   </thead>
   <tbody class="admin-notif-list">
-    <form id="">
-    <tr>
-      <td></td>
-      <td>
-        <input class="form-control" type="text" placeholder="e.g. /projects/xxx/MTG/*">
-        <p class="help-block">
-          Path Pattern of wiki. Expression with <code>*</code> is supported.
-        </p>
-      </td>
-      <td>
-        {% for tag in tags %}
-          {{ tag | safe }}
-        {% endfor %}
-      </td>
-      <td>
-        <input class="form-control" type="text" placeholder="e.g. xxx@example.com">
-        <p class="help-block">
-          Notifications are sent to this email.
-        </p>
-      </td>
-    </tr>
-    </form>
-
     {% set detailPageUrl = '/admin/global-notification/detail' %}
     {% for globalNotif in globalNotifications %}
     <tr class="clickable-row" data-href="{{ detailPageUrl }}" data-updatepost-id="{{ globalNotif._id.toString() }}">
@@ -61,8 +38,8 @@
         {% endfor %}
       </td>
       <td>
-        {% if globalNotif.__t == 'mail' %}emailicon {{ globalNotif.toEmail }}
-        {% elseif globalNotif.__t == 'slack' %}slackicon {{ globalNotif.slackChannels }}
+        {% if globalNotif.__t == 'mail' %}<i class="ti-email"></i> {{ globalNotif.toEmail }}
+        {% elseif globalNotif.__t == 'slack' %}<i class="fa fa-slack"></i> {{ globalNotif.slackChannels }}
         {% endif %}
       </td>
     </tr>