Commit d75b6645 authored by Stefan Gomez's avatar Stefan Gomez

Added 'widgetusers/' to the URLs of the per user, add new user and edit user pages

parent c19afbc2
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</h3> </h3>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<a href="/dashboard/add"><input type="submit" value="Add Widget User"></a><br> <a href="/dashboard/widgetusers/add"><input type="submit" value="Add Widget User"></a><br>
<a href="/announcement">Announcement Board</a><br> <a href="/announcement">Announcement Board</a><br>
<a href="/forum">Forum</a><br> <a href="/forum">Forum</a><br>
<a href="/assignments">Assignments</a><br> <a href="/assignments">Assignments</a><br>
......
...@@ -7,5 +7,5 @@ ...@@ -7,5 +7,5 @@
<h3>{{ widgetuser.department.home_unit}}</h3> <h3>{{ widgetuser.department.home_unit}}</h3>
{% endblock %} {% endblock %}
{% block scripts %} {% block scripts %}
<a href="/dashboard/{{ widgetuser.pk }}/edit"><input type="submit" value="Edit Widget User"></a> <a href="/dashboard/widgetusers/{{ widgetuser.pk }}/edit"><input type="submit" value="Edit Widget User"></a>
{% endblock %} {% endblock %}
...@@ -5,9 +5,9 @@ from .views import index, WidgetUserDetailView, WidgetUserCreateView, WidgetUser ...@@ -5,9 +5,9 @@ from .views import index, WidgetUserDetailView, WidgetUserCreateView, WidgetUser
urlpatterns = [ urlpatterns = [
path('', index, name='index'), path('', index, name='index'),
path('<int:pk>/details', WidgetUserDetailView.as_view(), name='widgetuser-details'), path('widgetusers/<int:pk>/details', WidgetUserDetailView.as_view(), name='widgetuser-details'),
path('add/', WidgetUserCreateView.as_view(), name='add-widgetuser'), path('widgetusers/add/', WidgetUserCreateView.as_view(), name='widgetuser-add'),
path('<int:pk>/edit', WidgetUserUpdateView.as_view(), name='edit-widgetuser'), path('widgetusers/<int:pk>/edit', WidgetUserUpdateView.as_view(), name='widgetuser-edit'),
] ]
app_name = "dashboard" app_name = "dashboard"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment