app/soc/templates/soc/club_app/review.html
author Lennard de Rijk <ljvderijk@gmail.com>
Wed, 21 Jan 2009 18:50:22 +0000
changeset 881 1ad41c8d05e9
parent 797 0bc3f950d7cf
child 892 c3cdb581ffd2
permissions -rw-r--r--
Added created and last modified timestamps to the group_app model. Also edited the templates to show some extra information. The review template has the names for the new properties hard coded because the auto_add and auto_add_now datetimeproperties don't show up in the fields of the entity. Patch by: Lennard de Rijk

{% extends "soc/base.html" %}
{% comment %}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
{% endcomment %}
{% load forms_helpers %}

{% block header_title %}
{{ page_name }} for {{ entity.name }}
{% endblock %}

{% block body %}
<p>
 <table>
  {% readonly_field_as_twoline_table_row entity.fields.name.label entity.name %}
  {% readonly_field_as_twoline_table_row entity.fields.applicant.label entity.applicant.link_id %}
  {% readonly_field_as_twoline_table_row entity.fields.home_page.label entity.home_page %}
  {% readonly_field_as_twoline_table_row entity.fields.email.label entity.email %}
  {% readonly_field_as_twoline_table_row entity.fields.description.label entity.description %}
  {% readonly_field_as_twoline_table_row entity.fields.why_applying.label entity.why_applying %}
  {% readonly_field_as_twoline_table_row entity.fields.pub_mailing_list.label entity.pub_mailing_list %}
  {% readonly_field_as_twoline_table_row entity.fields.irc_channel.label entity.irc_channel %}
  {% readonly_field_as_twoline_table_row entity.fields.backup_admin.label entity.backup_admin.link_id %}
  {% readonly_field_as_twoline_table_row entity.fields.member_criteria.label entity.member_criteria %}
  {% readonly_field_as_table_row entity.fields.reviewed.label entity.reviewed %}
  {% readonly_field_as_table_row entity.fields.accepted.label entity.accepted %}
  {% readonly_field_as_table_row entity.fields.application_completed.label entity.application_completed %}
  {% readonly_field_as_table_row "Created on" entity.created_on %}
  {% readonly_field_as_table_row "Last Modified on" entity.last_modified_on %}
 </table>
</p>

<tr>
  <td>
    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.link_id }}?accepted=true'" value="Accept"/>
    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/review/{{ entity.link_id }}?accepted=false'" value="Deny"/>
    <input type="button" onclick="location.href='/{{ entity_type_url|lower }}/delete/{{ entity.link_id }}'" value="Delete"/>
  </td>
</tr>
</table>
{% endblock %}