app/soc/templates/soc/group_app/review.html
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 11 Apr 2009 22:57:23 +0000
changeset 2159 a1f1eaaf458b
parent 1814 0c4fd663704b
permissions -rw-r--r--
Use key.id_or_name in templates rather than key.name This is to allow for usage of auto-id's. Patch by: Sverre Rabbelier
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1206
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
{% extends "soc/base.html" %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
{% comment %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
Licensed under the Apache License, Version 2.0 (the "License");
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
you may not use this file except in compliance with the License.
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
You may obtain a copy of the License at
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
  http://www.apache.org/licenses/LICENSE-2.0
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
Unless required by applicable law or agreed to in writing, software
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
distributed under the License is distributed on an "AS IS" BASIS,
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
See the License for the specific language governing permissions and
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
limitations under the License.
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
{% endcomment %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    15
{% load forms_helpers %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    16
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    17
{% block header_title %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    18
{{ page_name }} for {{ entity.name }}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    19
{% endblock %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    20
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    21
{% block body %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    22
<p>
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    23
 <table>
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    24
  {% readonly_field_as_twoline_table_row entity.fields.name.label entity.name %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    25
  {% readonly_field_as_twoline_table_row entity.fields.applicant.label entity.applicant.link_id %}
1587
7a61eff82b9d Make use of readonly_url_field where appropriate
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1206
diff changeset
    26
  {% readonly_url_field_as_twoline_table_row entity.fields.home_page.label entity.home_page %}
7a61eff82b9d Make use of readonly_url_field where appropriate
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1206
diff changeset
    27
  {% readonly_url_field_as_twoline_table_row entity.fields.email.label entity.email %}
1589
6a9bb0f8cde6 Use the new readonly_safe_field where appropriate
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1587
diff changeset
    28
  {% readonly_safe_field_as_twoline_table_row entity.fields.description.label entity.description %}
1206
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    29
  {% readonly_field_as_twoline_table_row entity.fields.why_applying.label entity.why_applying %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    30
  {% block group_details %}{% endblock %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    31
  {% readonly_field_as_table_row entity.fields.status.label entity.status %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    32
  {% readonly_field_as_table_row "Created on" entity.created_on %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    33
  {% readonly_field_as_table_row "Last Modified on" entity.last_modified_on %}
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    34
 </table>
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    35
</p>
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    36
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    37
<tr>
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    38
  <td>
1814
0c4fd663704b Some code re-use in templates
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1589
diff changeset
    39
{% block buttons %}
2159
a1f1eaaf458b Use key.id_or_name in templates rather than key.name
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1814
diff changeset
    40
    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.key.id_or_name }}?status=accepted'" value="Accept"/>
a1f1eaaf458b Use key.id_or_name in templates rather than key.name
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1814
diff changeset
    41
    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.key.id_or_name }}?status=rejected'" value="Reject"/>
a1f1eaaf458b Use key.id_or_name in templates rather than key.name
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1814
diff changeset
    42
    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.key.id_or_name }}?status=ignored'" value="Ignore"/>
a1f1eaaf458b Use key.id_or_name in templates rather than key.name
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1814
diff changeset
    43
    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/delete/{{ entity.key.id_or_name }}'" value="Delete"/>
1814
0c4fd663704b Some code re-use in templates
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1589
diff changeset
    44
{% endblock buttons %}
1206
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    45
  </td>
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    46
</tr>
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    47
</table>
1814
0c4fd663704b Some code re-use in templates
Sverre Rabbelier <srabbelier@gmail.com>
parents: 1589
diff changeset
    48
1206
657da4693f4b Refactored the application review template into group_app.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    49
{% endblock body %}