pedagogy: complete CRUD for UV model

This commit is contained in:
2019-06-16 00:04:36 +02:00
parent ec33311715
commit ab344ba02f
4 changed files with 81 additions and 5 deletions

View File

@ -6,7 +6,18 @@
{% endblock %}
{% block content %}
{% if can_create_uv(user) %}
<p>
<a href="{{ url('pedagogy:uv_create') }}">{% trans %}Create UV{% endtrans %}</a>
</p>
{% endif %}
{% for uv in object_list %}
{{ uv.code }}
<p>
{{ uv.code }}
{% if user.is_owner(uv) -%}
<a href="{{ url('pedagogy:uv_update', uv_id=uv.id) }}">{% trans %}Edit{% endtrans %}</a>
<a href="{{ url('pedagogy:uv_delete', uv_id=uv.id) }}">{% trans %}Delete{% endtrans %}</a>
{%- endif -%}
</p>
{% endfor %}
{% endblock content %}