author | Lennard de Rijk <ljvderijk@gmail.com> |
Mon, 16 Mar 2009 15:33:27 +0000 | |
changeset 1889 | 4356a9201d20 |
parent 756 | a0c0b48563cb |
child 1891 | 563d6e544011 |
permissions | -rw-r--r-- |
730 | 1 |
{% extends "soc/base.html" %} |
2 |
{% comment %} |
|
3 |
Licensed under the Apache License, Version 2.0 (the "License"); |
|
4 |
you may not use this file except in compliance with the License. |
|
5 |
You may obtain a copy of the License at |
|
6 |
||
7 |
http://www.apache.org/licenses/LICENSE-2.0 |
|
8 |
||
9 |
Unless required by applicable law or agreed to in writing, software |
|
10 |
distributed under the License is distributed on an "AS IS" BASIS, |
|
11 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
12 |
See the License for the specific language governing permissions and |
|
13 |
limitations under the License. |
|
14 |
{% endcomment %} |
|
731
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
15 |
{% load forms_helpers %} |
730 | 16 |
|
17 |
{% block page_title %} |
|
18 |
Notification |
|
19 |
{% endblock %} |
|
20 |
||
21 |
{% block header_title %} |
|
22 |
Notification about: {{ entity.subject }} |
|
23 |
{% endblock %} |
|
24 |
||
25 |
{% block body %} |
|
731
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
26 |
<table> |
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
27 |
|
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
28 |
{% if entity.from_user %} |
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
29 |
{% readonly_field_as_table_row entity.fields.from_user.label entity.from_user.name %} |
730 | 30 |
{% else %} |
1889
4356a9201d20
Use site_name if the system sends a message.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
756
diff
changeset
|
31 |
{% readonly_field_as_table_row entity.fields.from_user.label site_name %} |
731
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
32 |
{% endif %} |
730 | 33 |
|
731
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
34 |
{% readonly_field_as_table_row "To" entity.scope.name %} |
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
35 |
{% readonly_field_as_table_row "Sent On" entity.created_on %} |
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
36 |
{% readonly_field_as_table_row entity.fields.subject.label entity.subject %} |
756
a0c0b48563cb
Changed invitation email and into a notification.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
731
diff
changeset
|
37 |
|
a0c0b48563cb
Changed invitation email and into a notification.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
731
diff
changeset
|
38 |
<tr title="{{ field.help_text }}"> |
a0c0b48563cb
Changed invitation email and into a notification.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
731
diff
changeset
|
39 |
<td class="formfieldlabel"> |
a0c0b48563cb
Changed invitation email and into a notification.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
731
diff
changeset
|
40 |
{{ entity.fields.message.label }}: |
a0c0b48563cb
Changed invitation email and into a notification.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
731
diff
changeset
|
41 |
</td> |
a0c0b48563cb
Changed invitation email and into a notification.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
731
diff
changeset
|
42 |
<td class="formfieldvalue"> |
a0c0b48563cb
Changed invitation email and into a notification.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
731
diff
changeset
|
43 |
{{ entity.message|safe|linebreaks }} |
a0c0b48563cb
Changed invitation email and into a notification.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
731
diff
changeset
|
44 |
</td> |
731
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
45 |
|
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
46 |
<tr> |
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
47 |
<td> |
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
48 |
<input type="button" onclick="location.href='/{{ entity_type_url|lower }}/delete/{{ entity_suffix }}'" value="Delete"/> |
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
49 |
</td> |
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
50 |
</tr> |
3e1aafcf2671
Make use of readonly_field_as_table_row
Sverre Rabbelier <srabbelier@gmail.com>
parents:
730
diff
changeset
|
51 |
</table> |
730 | 52 |
|
53 |
{% endblock %} |