Changeset 07caee0


Ignore:
Timestamp:
May 26, 2010, 9:16:40 PM (16 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, fysm-4-1, space-access, stable, stage, test-hooks
Children:
9d8d5a0
Parents:
a2315e6
git-author:
Alex Dehnert <adehnert@…> (05/26/10 21:16:40)
git-committer:
Alex Dehnert <adehnert@…> (05/26/10 21:16:40)
Message:

Add category descriptions to submit page

Location:
asadb
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/views.py

    ra10dd4b r07caee0  
    195195        'fysm':fysm_obj,
    196196        'form':form,
     197        'categories':forms.models.FYSMCategory.objects.all(),
    197198        'pagename':'fysm',
    198199    }
  • asadb/template/fysm/submit.html

    r80194d8 r07caee0  
    1616</form>
    1717
     18<h2>Categories</h2>
     19
     20<p>Below you can find the descriptions of the categories that you can choose among.</p>
     21
     22<table class='pretty-table'>
     23<thead>
     24<tr>
     25    <th>Name</th>
     26    <th>Description</th>
     27</tr>
     28</thead>
     29<tbody>
     30{% for category in categories %}
     31<tr>
     32    <th>{{category.name}}</th>
     33    <td>{{category.blurb}}</td>
     34</tr>
     35{% endfor %}
     36</tbody>
     37</table>
     38
    1839</div>
    1940{% endblock %}
Note: See TracChangeset for help on using the changeset viewer.