mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-16 19:23:27 +00:00
Allow club staff to delete their sellings
This commit is contained in:
parent
ae6a613f9a
commit
ffd4dac2e2
@ -36,6 +36,9 @@
|
|||||||
<td>{{ s.quantity }}</td>
|
<td>{{ s.quantity }}</td>
|
||||||
<td>{{ s.quantity * s.unit_price }} €</td>
|
<td>{{ s.quantity * s.unit_price }} €</td>
|
||||||
<td>{{ s.get_payment_method_display() }}</td>
|
<td>{{ s.get_payment_method_display() }}</td>
|
||||||
|
{% if s.is_owned_by(user) %}
|
||||||
|
<td><a href="{{ url('counter:selling_delete', selling_id=s.id) }}">{% trans %}Delete{% endtrans %}</a></td>
|
||||||
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
<td>{{ i.quantity * i.unit_price }} €</td>
|
<td>{{ i.quantity * i.unit_price }} €</td>
|
||||||
<td>{{ i.get_payment_method_display() }}</td>
|
<td>{{ i.get_payment_method_display() }}</td>
|
||||||
{% if i.is_owned_by(user) %}
|
{% if i.is_owned_by(user) %}
|
||||||
<td><a href="{{ url('counter:selling_delete', selling_id=i.id) }}">Delete</a></td>
|
<td><a href="{{ url('counter:selling_delete', selling_id=i.id) }}">{% trans %}Delete{% endtrans %}</a></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -439,3 +439,4 @@ class UserAccountDetailView(UserAccountBase, YearMixin, MonthMixin):
|
|||||||
pass
|
pass
|
||||||
kwargs['tab'] = "account"
|
kwargs['tab'] = "account"
|
||||||
return kwargs
|
return kwargs
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user