templates/send_acco_cnf.html
author anoop
Sun, 08 Aug 2010 13:53:17 +0530
branchanoop
changeset 227 1a6c97e02355
parent 221 b0fd3cb56e0b
permissions -rw-r--r--
updated schedule.

{% extends 'base.html' %}
{% block title %}
  Send Accomodation Confirmation
{% endblock %}
{% block content %}
<br />
<form action="" method=post><form action="" method=post>
  Dear so and so,<br /><br/>
  Your request for accomodation during Sage Days 25, India has been approved.
  <br />
  message:<br />
  <textarea name="message" rows=15 cols=95></textarea><br />

  Not Selected people: {{not_selected.count}}<br >

  <table cellspacing=2 cellpadding=2>
  <tr>
    <th>Select</th>
    <th>Name</th>
    <th>Sex</th>
    <th>Profession</th>
    <th>Organization</th>
    <th>Laptop</th>
    <th>Will sprint</th>
    <th>Already sprinted</th>
    <th>Allotment</th>
  </tr>

  {% for m in not_selected %}
    <tr>
      <td>
        <input type="checkbox" name="selected_users" value="{{m.id}}"
            id="id_selected_users_0" />
      </td>
      <td>{{m}}</td>
      <td>{{m.gender}}</td>
      <td>{{m.profession}}</td>
      <td>{{m.affiliated_to}}</td>
      <td>
        {% if m.participantinfo_set.get.has_laptop_for_sagedays %}
          Yes
        {% else %}
          No
        {% endif %}
      </td>
      <td>
        {% ifequal m.participantinfo_set.get.will_sprint '1' %}
          No
        {% else %}{% ifequal m.participantinfo_set.get.will_sprint '2' %}
          May be
        {% else %}
          Yes
        {% endifequal %}{% endifequal %}
      </td>
      <td>
        {% if m.participantinfo_set.get.sprinted_already %}
          Yes
        {% else %}
          No
        {% endif %}
      </td>
      <td>
        {% ifequal m.registrantinfo_set.get.acco_location '0' %}
          IITB Hostel
        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '1' %}
          IITB Guest House
        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '2' %}
          NITIE
        {% else %}
          Not alloted
        {% endifequal %}{% endifequal %}{% endifequal %}
      </td>
    </tr>
  {% endfor %}
</table>
<br />

Rejected People: {{rejected.count}}<br />
<table cellspacing=2 cellpadding=2>
  <tr>
    <th>Name</th>
    <th>Sex</th>
    <th>Profession</th>
    <th>Organization</th>
    <th>Laptop</th>
    <th>Will sprint</th>
    <th>Already sprinted</th>
    <th>Allotment</th>
  </tr>
  {% for m in rejected %}
    <tr>
    <td>
      <input type="checkbox" name="selected_users" value="{{m.id}}"
          id="id_selected_users_0" />
    </td>
    <td>{{m}}</td>
    <td>{{m.gender}}</td>
    <td>{{m.profession}}</td>
    <td>{{m.affiliated_to}}</td>
    <td>
        {% if m.participantinfo_set.get.has_laptop_for_sagedays %}
          Yes
        {% else %}
          No
        {% endif %}
      </td>
      <td>
        {% ifequal m.participantinfo_set.get.will_sprint '1' %}
          No
        {% else %}{% ifequal m.participantinfo_set.get.will_sprint '2' %}
          May be
        {% else %}
          Yes
        {% endifequal %}{% endifequal %}
      </td>
      <td>
        {% if m.participantinfo_set.get.sprinted_already %}
          Yes
        {% else %}
          No
        {% endif %}
      </td>
      <td>
        {% ifequal m.registrantinfo_set.get.acco_location '0' %}
          IITB Hostel
        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '1' %}
          IITB Guest House
        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '2' %}
          NITIE
        {% else %}
          Not alloted
        {% endifequal %}{% endifequal %}{% endifequal %}
      </td>
    </tr>
  {% endfor %}
</table>

<input type=submit value="Send confirmation email"  />
</form>
<br /><br />
Selected People: {{selected_confirmed.count}}<br />
<table cellspacing=2 cellpadding=2>
  <tr>
    <th>Name</th>
    <th>Sex</th>
    <th>Profession</th>
    <th>Organization</th>
    <th>Laptop</th>
    <th>Will sprint</th>
    <th>Already sprinted</th>
    <th>Allotment</th>
  </tr>
  {% for m in selected %}
    <tr>
      <td>{{m}}</td>
      <td>{{m.gender}}</td>
      <td>{{m.profession}}</td>
      <td>{{m.affiliated_to}}</td>
      <td>
        {% if m.participantinfo_set.get.has_laptop_for_sagedays %}
          Yes
        {% else %}
          No
        {% endif %}
      </td>
      <td>
        {% ifequal m.participantinfo_set.get.will_sprint '1' %}
          No
        {% else %}{% ifequal m.participantinfo_set.get.will_sprint '2' %}
          May be
        {% else %}
          Yes
        {% endifequal %}{% endifequal %}
      </td>
      <td>
        {% if m.participantinfo_set.get.sprinted_already %}
          Yes
        {% else %}
          No
        {% endif %}
      </td>
      <td>
        {% ifequal m.registrantinfo_set.get.acco_location '0' %}
          IITB Hostel
        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '1' %}
          IITB Guest House
        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '2' %}
          NITIE
        {% else %}
          Not alloted
        {% endifequal %}{% endifequal %}{% endifequal %}
      </td>
    </tr>
  {% endfor %}
</table>

{% endblock %}