Commit 594b95c9 authored by HERBERT Ryan's avatar HERBERT Ryan
Browse files

/views/notification/*.html added fields and columns to forms and views for notification titles

parent 744a5a59
......@@ -27,6 +27,11 @@
<span>*</span></td>
<td></td>
</tr>
<tr>
<td><label for="notification_title" id="notification_title__label">title: </label></td>
<td><input class="string" id="notification_title" name="title" type="text" value="" /><span>*</span></td>
<td></td>
</tr>
<tr>
<td><label for="notification_message_content" id="notification_message_content__label">message: </label></td>
<td><textarea class="string" id="notification_message_content" name="message_content" type="text" value=""></textarea><span>*</span></td>
......
......@@ -34,6 +34,11 @@ info = db.notification[request.vars["id"]]
<span>*</span></td>
<td></td>
</tr>
<tr>
<td><label for="notification_title" id="notification_title__label">title: </label></td>
<td><input class="string" id="notification_title" name="title" type="text" value="{{=info.title}}" /><span>*</span></td>
<td></td>
</tr>
<tr>
<td><label for="notification_message_content" id="notification_message_content__label">message: </label></td>
<td><textarea class="string" id="notification_message_content" name="message_content" type="text">{{=info.message_content}}</textarea><span>*</span></td>
......
......@@ -11,6 +11,7 @@
<td class="column_100"> Creator </td>
<td class="column_100"> Type </td>
<td class="column_100"> Priority </td>
<td class="column_100"> Title </td>
<td class="column_100"> Message </td>
<td class="column_100"> Expiration Date </td>
......@@ -22,13 +23,14 @@
<tbody>
{{for row in query:}}
<tr>
<td>{{=row.creator}}</td>
<td>{{=row.message_type}}</td>
<td>{{=row.priority}}</td>
<td>{{=row.message_content}}</td>
<td>{{=row.expiration}}</td>
<td onclick="db.call('notification/edit', {'id' : '{{=row.id}}'})">e</td>
<td onclick="db.call('notification/delete', {'id' : '{{=row.id}}'})">X</td>
<td class="pointer" onclick="db.call('notification/info', {'id' : '{{=row.id}}'})">{{=row.creator}}</td>
<td class="pointer" onclick="db.call('notification/info', {'id' : '{{=row.id}}'})">{{=row.message_type}}</td>
<td class="pointer" onclick="db.call('notification/info', {'id' : '{{=row.id}}'})">{{=row.priority}}</td>
<td class="pointer" onclick="db.call('notification/info', {'id' : '{{=row.id}}'})">{{=row.title}}</td>
<td class="pointer" onclick="db.call('notification/info', {'id' : '{{=row.id}}'})">{{=row.message_content}}</td>
<td class="pointer" onclick="db.call('notification/info', {'id' : '{{=row.id}}'})">{{=row.expiration}}</td>
<td class="pointer" onclick="db.call('notification/edit', {'id' : '{{=row.id}}'})">e</td>
<td class="pointer" onclick="db.call('notification/delete', {'id' : '{{=row.id}}'})">X</td>
</tr>
{{pass}}
</tbody>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment