{% extends 'sstreasury/base.html' %} {# Society Self-Service Copyright © 2018-2019 Yingtong Li (RunasSudo) This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . #} {% block title %}{{ claim.purpose }}{% endblock %} {% block maincontent %}

{{ claim.purpose }}

Status: {{ claim.get_state_display() }} {% if claim.can_submit(request.user) %} {% endif %} {% if claim.can_approve(request.user) %} {% endif %} {% if claim.can_withdraw(request.user) %} {% endif %} {% if claim.can_edit(request.user) %} Edit {% endif %} Print {% if not claim.can_edit(request.user) and claim.can_withdraw(request.user) %}

This claim has been submitted and is now awaiting processing. If you wish to edit this claim, you must first withdraw it. This will revert the claim to a draft.

{% endif %}
ID RE-{{ claim.id }}
Purpose {{ claim.purpose }}
Expenditure date {{ claim.date }}
Submitter
Budget ID {{ claim.budget_id }}
Comments {{ claim.comments }}
Items
{% if claim.can_approve(request.user) %} {% endif %}
{% for item in history %} {% if item.__class__.__name__ == 'ClaimComment' %}
{{ item.author.first_name }} {{ item.author.last_name }} commented
{{ localtime(item.time) }}
{{ item.content|markdown }}
{% elif item.__class__.__name__ == 'ClaimHistory' %}
{% if item.action == import('sstreasury.models').ClaimAction.CREATE.value %} {{ item.author.first_name }} {{ item.author.last_name }} created the claim {% elif item.action == import('sstreasury.models').ClaimAction.EDIT.value %} {{ item.author.first_name }} {{ item.author.last_name }} edited the claim {% elif item.action == import('sstreasury.models').ClaimAction.UPDATE_STATE.value %} {{ item.author.first_name }} {{ item.author.last_name }} changed the state to: {{ item.get_state_display() }} {% else %} {{ item.author.first_name }} {{ item.author.last_name }} modified the claim {% endif %}
{{ localtime(item.time) }}
{% endif %} {% endfor %}
{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block script %} {{ super() }} {% endblock %}