Revision e1dc6dec snf-astakos-app/astakos/im/templates/im/astakosgroup_list.html

b/snf-astakos-app/astakos/im/templates/im/astakosgroup_list.html
1 1
{% extends "im/account_base.html" %}
2

  
2
{% load astakos_tags %}
3 3
{% load filters %}
4 4

  
5 5
{% block page.body %}
......
66 66
    <!-- Search group -->
67 67
    {% if object_list %}
68 68
        <div class="full-dotted">
69
        	{% comment %}
69 70
        	<form method="GET" class="minimal" action="#searchResults"> 
70 71
				<div class="form-row">
71 72
					<select name="sorting" onchange="this.form.submit();" class="dropkicked" tabindex="1">
......
78 79
					<input type="hidden" name="q" value="{{q}}"/>
79 80
				</div>
80 81
			</form>
82
			{% endcomment %}
81 83
            <table class="alt-style complex" id="searchResults">
82 84
                <caption>
83 85
                    {% if q %}SEARCH RESULTS{% else %}ALL PROJECTS{% endif %}
84 86
                </caption>
85 87
                <thead>
86
                  <tr>
87
                    <th>Name</th>
88
                    <!--<th>Type</th>-->
89
                    <th>Start date</th>
90
                    <th>End date</th>
91
                     
92
                    <th>Members</th>
93
                   
94
                     
95
                    <th>Status</th>
96
                    <th>&nbsp;</th>
97
			        <th>Moderated</th>
98
                   <!-- <th>&nbsp;</th>-->
99
                  
100
                  </tr>
101
                </thead>
88
                      <tr>
89
                        <th><a href="?{% if q %}q={{q}}&{% endif %}sorting=groupname&ordering={% if ordering == 'ASC' and sorting == 'groupname' %}DESC{% else %}ASC{% endif %}#allGroups">Name</a></th>
90
                        <!--th>Type</th-->
91
                        <th><a href="?{% if q %}q={{q}}&{% endif %}sorting=issue_date&ordering={% if ordering == 'ASC' and sorting == 'issue_date' %}DESC{% else %}ASC{% endif %}#allGroups">Start date</a></th>
92
                        <th><a href="?{% if q %}q={{q}}&{% endif %}sorting=expiration_date&ordering={% if ordering == 'ASC' %}DESC{% else %}ASC{% endif %}#allGroups">End date</a></th>
93
                        <th><a href="?{% if q %}q={{q}}&{% endif %}sorting=approved_members_num&ordering={% if ordering == 'ASC' %}DESC{% else %}ASC{% endif %}#allGroups">Members</a></th>
94
                        <th><a href="javascript:void(0)">Status</a></th>
95
                        <th>&nbsp;</th>
96
                        <th class="centered"><a href="?{% if q %}q={{q}}&{% endif %}sorting=moderation_enabled&ordering={% if ordering == 'ASC' %}DESC{% else %}ASC{% endif %}#allGroups">Moderated</a></th>
97
                       <!-- <th>&nbsp;</th>-->
98
                        
99
                      </tr>
100
			            </thead>
102 101
                <tbody>
103 102
                  {% for o in object_list %}
104 103
                   <tr class="{% cycle 'tr1' 'tr2' %}">
......
226 225
            {% with q|paginate:args as page_obj %}
227 226
        	 	{% if page_obj.object_list  %}
228 227
	      	    <div>
228
                    {% comment %}
229 229
					<form method="GET" class="minimal" action="#allGroups" id="mygroups">
230 230
						<div class="form-row">
231 231
						    <select name="sorting"  class="dropkicked"  tabindex="1">
......
238 238
							</select>
239 239
						</div>
240 240
					</form>
241
                    {% endcomment %}
241 242
					<table class="alt-style complex" id="allGroups">
242 243
			            <caption>MY PROJECTS</caption>
243 244
			            <thead>
244 245
			              <tr>
245
			                <th>Name</th>
246
			                <th><a href="{% url group_list %}?sorting=groupname&ordering={% if ordering == 'ASC' and sorting == 'groupname' %}DESC{% else %}ASC{% endif %}#allGroups">Name</a></th>
246 247
			                <!--th>Type</th-->
247
			                <th>Start date</th>
248
			                <th>End date</th>
249
			                <th>Members</th>
250
			                <th>Status</th>
248
			                <th><a href="{% url group_list %}?sorting=issue_date&ordering={% if ordering == 'ASC' and sorting == 'issue_date' %}DESC{% else %}ASC{% endif %}#allGroups">Start date</a></th>
249
			                <th><a href="{% url group_list %}?sorting=expiration_date&ordering={% if ordering == 'ASC' %}DESC{% else %}ASC{% endif %}#allGroups">End date</a></th>
250
			                <th><a href="{% url group_list %}?sorting=approved_members_num&ordering={% if ordering == 'ASC' %}DESC{% else %}ASC{% endif %}#allGroups">Members</a></th>
251
			                <th><a href="javascript:void(0)">Status</a></th>
251 252
			                <th>&nbsp;</th>
252
			                <th class="centered">Moderated</th>
253
			                <th class="centered"><a href="{% url group_list %}?sorting=moderation_enabled&ordering={% if ordering == 'ASC' %}DESC{% else %}ASC{% endif %}#allGroups">Moderated</a></th>
253 254
			               <!-- <th>&nbsp;</th>-->
254 255
			                
255 256
			              </tr>

Also available in: Unified diff