Changeset bd72d5c for asadb/template


Ignore:
Timestamp:
Sep 15, 2011, 3:34:54 PM (15 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
5c68184
Parents:
ceaf3bd (diff), fbb362a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Alex Dehnert <adehnert@…> (09/15/11 15:34:54)
git-committer:
Alex Dehnert <adehnert@…> (09/15/11 15:34:54)
Message:

Merge remote branch 'remotes/origin/new-db'

Location:
asadb/template
Files:
15 added
4 edited

Legend:

Unmodified
Added
Removed
  • asadb/template/base.html

    r37b65d6 rfbb362a  
    1212    <ul class='tab-navigation'>
    1313        <li{% ifequal pagename "homepage" %} class='selected'{% endifequal %}><a href="{% url homepage   %}">Home</a></li>
    14         <li{% ifequal pagename "groups"   %} class='selected'{% endifequal %}><a href="{% url group-list %}">Groups</a></li>
     14        <li{% ifequal pagename "groups"   %} class='selected'{% endifequal %}><a href="{% url groups:list %}">Groups</a></li>
    1515        <li{% ifequal pagename "fysm"     %} class='selected'{% endifequal %}><a href="{% url fysm       %}">FYSM</a></li>
     16        {% if user.is_staff %}<li><a href='{% url admin:index %}'>Admin</a></li>{% endif %}
    1617    </ul>
    1718    <div id='content'>
  • asadb/template/groups/group_list.html

    r140fc9e rfbb362a  
    66<h1>MIT Student Groups</h1>
    77
     8<h2>Search</h2>
     9
     10<form action="" method="get">
     11    <table class='pretty-table'>
     12    {{ filter.form.as_table }}
     13    </table>
     14    <input type="submit" value="Search" />
     15</form>
     16
     17<h2>The Groups</h2>
     18
    819<table class='pretty-table'>
    920<thead>
    1021    <tr>
    1122        <th>Name</th>
     23        <th>Website</th>
     24        <th>ASA DB</th>
     25        <th>Description</th>
    1226        <th>Meeting Time</th>
    1327    </tr>
     
    1630{% for group in group_list %}
    1731    <tr>
    18         <td>{% if group.website_url %}<a href='{{group.website_url}}'>{% endif %}{{group.name}}{%if group.website_url%}</a>{%endif%}</td>
     32        <th>{{group.name}}</th>
     33        <td>{% if group.website_url %}<a href='{{group.website_url}}'>Website</a>{%endif%}</td>
     34        <td><a href='{% url groups:group-detail group.pk %}'>DB Entry</a></td>
     35        <td>{{group.description}}</td>
    1936        <td>{{group.meeting_times}}</td>
    2037    </tr>
  • asadb/template/index.html

    r653a0e8 rfbb362a  
    77
    88<ul>
    9     <li><a href='{%url group-list%}'>List of groups</a></li>
     9    <li><a href='{%url groups:search%}'>Search groups</a></li>
     10    <li><a href='{%url groups:list%}'>List of groups</a></li>
    1011    <li>First Year Summer Mailing<ul>
    1112        <li><a href='{%url fysm%}'>View the entries</a></li>
    1213        <li><a href='{%url fysm-select%}'>Submit an entry</a></li>
    1314    </ul></li>
     15    {%if perms.groups.view_signatories %}<li><a href='{% url groups:signatories %}'>View Signatories</a></li>{%endif%}
    1416</ul>
    1517
     18<h2>My Groups</h2>
     19
     20{% if user.is_anonymous %}
     21<p><a href='{% url login %}'>Login</a> to see your groups.</p>
     22{% else %}
     23{%if not groups %}
     24<p>You do not currently appear to be listed with any groups.</p>
     25{% endif %}
     26{% endif %}
     27
     28{% if groups %}
     29<ul>
     30{% for group in groups %}
     31    <li><a href='{% url groups:group-detail group.pk %}'>{{group}}</a></li>
     32{%endfor%}
     33</ul>
     34{% endif %}
     35
     36{% if has_perms %}
     37<h2>Permissions</h2>
     38
     39<p>You have the following permissions:</p>
     40
     41<table class='pretty-table'>
     42<tr>
     43    <th>Name</th>
     44    <th>Description</th>
     45</tr>
     46{% for perm_name, perm_desc in has_perms %}
     47<tr>
     48    <td>{{perm_name}}</td>
     49    <td>{{perm_desc}}</td>
     50</tr>
     51{% endfor %}
     52</table>
     53{% endif %}
     54
    1655{% endblock %}
  • asadb/template/registration/login.html

    rad48c42 r9879d18  
    1515<p>In the unlikely event that you have a username and password, you can log in below.</p>
    1616
    17 <form method="post" action="{% url login %}">
     17<form method="post" action="{% url login-password %}">
    1818{% csrf_token %}
    1919<table>
Note: See TracChangeset for help on using the changeset viewer.