mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-05-05 04:31:49 +02:00
polished archive features
This commit is contained in:
parent
f97e94db8e
commit
28f99c9506
2 changed files with 3 additions and 3 deletions
|
@ -94,6 +94,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span id="new-bill" class="ml-auto pb-2" {% if not g.project.members %} data-toggle="tooltip" title="{{_('You should start by adding participants')}}" {% endif %}>
|
<span id="new-bill" class="ml-auto pb-2" {% if not g.project.members %} data-toggle="tooltip" title="{{_('You should start by adding participants')}}" {% endif %}>
|
||||||
|
<a href="{{ url_for('.list_bills_archived')}}"><button class="btn btn-primary" data-toggle="modal" data-keyboard="false">Go to Archive</button></a>
|
||||||
<a href="{{ url_for('.add_bill') }}" class="btn btn-primary {% if not g.project.members %} disabled {% endif %}" data-toggle="modal" data-keyboard="false" data-target="#bill-form">
|
<a href="{{ url_for('.add_bill') }}" class="btn btn-primary {% if not g.project.members %} disabled {% endif %}" data-toggle="modal" data-keyboard="false" data-target="#bill-form">
|
||||||
<i class="icon icon-white before-text">{{ static_include("images/plus.svg") | safe }}</i>
|
<i class="icon icon-white before-text">{{ static_include("images/plus.svg") | safe }}</i>
|
||||||
{{ _("Add a new bill") }}
|
{{ _("Add a new bill") }}
|
||||||
|
@ -176,5 +177,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div></div>
|
</div></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ url_for('.list_bills_archived')}}">archived</a>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -94,6 +94,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<span id="new-bill" class="ml-auto pb-2" {% if not g.project.members %} data-toggle="tooltip" title="{{_('You should start by adding participants')}}" {% endif %}>
|
<span id="new-bill" class="ml-auto pb-2" {% if not g.project.members %} data-toggle="tooltip" title="{{_('You should start by adding participants')}}" {% endif %}>
|
||||||
|
<a href="{{ url_for('.list_bills')}}"><button class="btn btn-primary" data-toggle="modal" data-keyboard="false">Go to Active Bills</button></a>
|
||||||
<a href="{{ url_for('.add_bill') }}" class="btn btn-primary {% if not g.project.members %} disabled {% endif %}" data-toggle="modal" data-keyboard="false" data-target="#bill-form">
|
<a href="{{ url_for('.add_bill') }}" class="btn btn-primary {% if not g.project.members %} disabled {% endif %}" data-toggle="modal" data-keyboard="false" data-target="#bill-form">
|
||||||
<i class="icon icon-white before-text">{{ static_include("images/plus.svg") | safe }}</i>
|
<i class="icon icon-white before-text">{{ static_include("images/plus.svg") | safe }}</i>
|
||||||
{{ _("Add a new bill") }}
|
{{ _("Add a new bill") }}
|
||||||
|
@ -145,7 +146,7 @@
|
||||||
</form>
|
</form>
|
||||||
<form action="{{ url_for(".archive_bill", bill_id=bill.id) }}" method="POST">
|
<form action="{{ url_for(".archive_bill", bill_id=bill.id) }}" method="POST">
|
||||||
{{ csrf_form.csrf_token }}
|
{{ csrf_form.csrf_token }}
|
||||||
<button class="archive" type="submit" title="{{ _("archive") }}"></button>
|
<button class="archive" type="submit" title="{{ _("unarchive") }}"></button>
|
||||||
</form>
|
</form>
|
||||||
{% if bill.external_link %}
|
{% if bill.external_link %}
|
||||||
<a class="show" href="{{ bill.external_link }}" ref="noopener" target="_blank" title="{{ _("show") }}">{{ _('show') }} </a>
|
<a class="show" href="{{ bill.external_link }}" ref="noopener" target="_blank" title="{{ _("show") }}">{{ _('show') }} </a>
|
||||||
|
@ -176,5 +177,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div></div>
|
</div></div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<a href="{{ url_for('.list_bills')}}">not archived</a>
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue