SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit 75aad307 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Add Subsidy status info in list and detail views

parent bdad5855
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,10 @@ ...@@ -41,6 +41,10 @@
<tr> <tr>
<td>Renewable?</td><td>{% if subsidy.renewable == True %}Yes, renewal action date: <span class="bg-{{ subsidy.renewal_action_date_color_class }}">{{ subsidy.renewal_action_date }}</span>{% elif subsidy.renewable == None %}Undetermined [please update]{% else %}No{% endif %}</td> <td>Renewable?</td><td>{% if subsidy.renewable == True %}Yes, renewal action date: <span class="bg-{{ subsidy.renewal_action_date_color_class }}">{{ subsidy.renewal_action_date }}</span>{% elif subsidy.renewable == None %}Undetermined [please update]{% else %}No{% endif %}</td>
</tr> </tr>
<tr>
<td>Status</td>
<td>{{ subsidy.get_status_display }}</td>
</tr>
{% endif %} {% endif %}
</table> </table>
......
...@@ -54,6 +54,7 @@ $(document).ready(function($) { ...@@ -54,6 +54,7 @@ $(document).ready(function($) {
{% endif %} {% endif %}
</th> </th>
{% if perms.scipost.can_manage_subsidies %} {% if perms.scipost.can_manage_subsidies %}
<th>Status</th>
<th><span class="small" style="writing-mode: vertical-lr;">attachments?</span></th> <th><span class="small" style="writing-mode: vertical-lr;">attachments?</span></th>
{% endif %} {% endif %}
<th>From date <th>From date
...@@ -96,6 +97,7 @@ $(document).ready(function($) { ...@@ -96,6 +97,7 @@ $(document).ready(function($) {
{% if subsidy.renewed_by.all|length > 0 %}<br/><span class="small text-muted">Renewed by:<ul class="list-unstyled">{% for newsub in subsidy.renewed_by.all %}<li>{{ newsub }}</li>{% endfor %}</ul></span>{% endif %} </td> {% if subsidy.renewed_by.all|length > 0 %}<br/><span class="small text-muted">Renewed by:<ul class="list-unstyled">{% for newsub in subsidy.renewed_by.all %}<li>{{ newsub }}</li>{% endfor %}</ul></span>{% endif %} </td>
<td>{% if subsidy.amount_publicly_shown or perms.scipost.can_manage_subsidies %}&euro;{{ subsidy.amount }}{% else %}-{% endif %}</td> <td>{% if subsidy.amount_publicly_shown or perms.scipost.can_manage_subsidies %}&euro;{{ subsidy.amount }}{% else %}-{% endif %}</td>
{% if perms.scipost.can_manage_subsidies %} {% if perms.scipost.can_manage_subsidies %}
<td>{{ subsidy.get_status_display }}</td>
<td>{% if subsidy.attachments.all|length > 0 %}<i class="fa fa-check-circle text-success"></i>{% else %}<i class="fa fa-times-circle text-danger"></i>{% endif %}</td> <td>{% if subsidy.attachments.all|length > 0 %}<i class="fa fa-check-circle text-success"></i>{% else %}<i class="fa fa-times-circle text-danger"></i>{% endif %}</td>
{% endif %} {% endif %}
<td>{{ subsidy.date }}</td> <td>{{ subsidy.date }}</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment