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,9 +11,9 @@
</h3>
{% endblock %}
{% 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="/forum">Forum</a><br>
<a href="/assignments">Assignments</a><br>
<a href="/calendar">Calendar</a>
{% endblock %}
\ No newline at end of file
{% endblock %}
......@@ -7,5 +7,5 @@
<h3>{{ widgetuser.department.home_unit}}</h3>
{% endblock %}
{% block scripts %}
<a href="/dashboard/{{ widgetuser.pk }}/edit"><input type="submit" value="Edit Widget User"></a>
{% endblock %}
\ No newline at end of file
<a href="/dashboard/widgetusers/{{ widgetuser.pk }}/edit"><input type="submit" value="Edit Widget User"></a>
{% endblock %}
......@@ -5,9 +5,9 @@ from .views import index, WidgetUserDetailView, WidgetUserCreateView, WidgetUser
urlpatterns = [
path('', index, name='index'),
path('<int:pk>/details', WidgetUserDetailView.as_view(), name='widgetuser-details'),
path('add/', WidgetUserCreateView.as_view(), name='add-widgetuser'),
path('<int:pk>/edit', WidgetUserUpdateView.as_view(), name='edit-widgetuser'),
path('widgetusers/<int:pk>/details', WidgetUserDetailView.as_view(), name='widgetuser-details'),
path('widgetusers/add/', WidgetUserCreateView.as_view(), name='widgetuser-add'),
path('widgetusers/<int:pk>/edit', WidgetUserUpdateView.as_view(), name='widgetuser-edit'),
]
app_name = "dashboard"
\ No newline at end of file
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