update rcr migration app

This commit is contained in:
Ross
2023-11-12 18:58:45 +00:00
parent 0fad480db4
commit b7fb96633e
10 changed files with 179 additions and 11 deletions
+21 -2
View File
@@ -2,6 +2,21 @@
{% block content %}
{% if completed %}
<h2>Completed items:</h2>
{% else %}
<h2>Items to assess:</h2>
{% endif %}
{% if items %}
<a href="{% url 'rcr:radiology_update_next_view' %}">Click to assess next item</a>
{% endif %}
<ul>
{% for item in items %}
@@ -10,10 +25,14 @@
<a href="{% url 'rcr:radiology_detail_view' item.pk %}">view</a>
<a href="{% url 'rcr:radiology_update_view' item.pk %}">edit</a>
</li>
{% empty %}
No items found.
{% endfor %}
</ul>
TEST
<a href="{% url 'rcr:radiology_index_view' %}">Todo</a>
<a href="{% url 'rcr:radiology_index_completed_view' %}">Done</a>
{% endblock %}
+16
View File
@@ -2,6 +2,22 @@
{% block content %}
<h2>Item: {{object.name}}</h2>
<p>Category: {{object.category}}</p>
<p>
Level(s):
{% for level in object.level.all %}
{{level}},
{% endfor %}
</p>
<p>
Completed: {{object.completed}}
</p>
<p><a href='{% url "rcr:radiology_update_view" object.pk %}'>Edit</a></p>
<details><summary> </summary>
</details>
{% endblock %}
+2
View File
@@ -5,6 +5,8 @@
{% comment %} {% if request.user.is_superuser %}
(<a href="{% url 'admin:auth_user_change' object.id %}" title="Edit the user using the admin interface">Admin Edit</a>)
{% endif %} {% endcomment %}
<p>Link: <a href="" title="Link to content on learning hub">click here</a></p>
<form method="post">{% csrf_token %}
{{ form|crispy }}
<input type="submit" value="Update">