Skip to content

Commit

Permalink
Removed button for non firmatecknare (#207)
Browse files Browse the repository at this point in the history
* Removed button for non firmatecknare

* Update templates/admin/confirm/overview.html

Co-authored-by: Mathias Magnusson <[email protected]>

---------

Co-authored-by: Mathias Magnusson <[email protected]>
  • Loading branch information
Adasjo and foodelevator authored Oct 3, 2024
1 parent 8a1cb83 commit 8a0ccb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/admin/confirm/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@
</thead>
<tr v-for="expense in expenses" v-if="!(digital && expense.is_digital !== true || analog && expense.is_digital !== false)">
<td v-if="!expense.confirmed">
{% if user.profile.may_confirm %}
<form v-on:submit.prevent="conf(expense)" method="POST" :action="'expense/' + expense.id + '/confirm/'">
{% csrf_token %}
<button class="theme-color btn-color" v-on:click="conf(expense, $event)">Bekräfta giltighet</button>
</form>
{% endif %}
</td>
<td v-else>
Bekräftad
Expand Down

1 comment on commit 8a0ccb3

@DouglasFischer
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nej men den var ju så rolig

Please sign in to comment.