mirror of https://github.com/fspc/workstand.git
Drew Larson
9 years ago
4 changed files with 34 additions and 2 deletions
@ -0,0 +1,22 @@ |
|||||
|
{% extends 'dashboard.html' %} |
||||
|
|
||||
|
{% block content %} |
||||
|
<div class="mdl-cell mdl-cell--6-col"> |
||||
|
<ul class="demo-list-three mdl-list"> |
||||
|
{% for member in members %} |
||||
|
<li class="mdl-list__item mdl-list__item--three-line"> |
||||
|
<span class="mdl-list__item-primary-content"> |
||||
|
<i class="material-icons mdl-list__item-avatar">person</i> |
||||
|
<span>{{ member.full_name }}</span> |
||||
|
<span class="mdl-list__item-text-body"> |
||||
|
{{ member.email }} |
||||
|
</span> |
||||
|
</span> |
||||
|
<span class="mdl-list__item-secondary-content"> |
||||
|
<a class="mdl-list__item-secondary-action" href="{% url 'member_edit' member_id=member.id %}"><i class="material-icons">edit</i></a> |
||||
|
</span> |
||||
|
</li> |
||||
|
{% endfor %} |
||||
|
</ul> |
||||
|
</div> |
||||
|
{% endblock %} |
@ -1,9 +1,10 @@ |
|||||
from django.conf.urls import url |
from django.conf.urls import url |
||||
|
|
||||
from .views import MemberFormView, MemberSearchView, MemberSignIn |
from .views import MemberFormView, MemberSearchView, MemberSignIn, Members |
||||
urlpatterns = [ |
urlpatterns = [ |
||||
url(r'^new/$', MemberFormView.as_view(), name='member_new'), |
url(r'^new/$', MemberFormView.as_view(), name='member_new'), |
||||
url(r'^search/(?P<query>[\w@\.\+]+)/$', MemberSearchView.as_view(), name='member_search'), |
url(r'^search/(?P<query>[\w@\.\+]+)/$', MemberSearchView.as_view(), name='member_search'), |
||||
url(r'^edit/(?P<member_id>[0-9]+)/$', MemberFormView.as_view(), name='member_edit'), |
url(r'^edit/(?P<member_id>[0-9]+)/$', MemberFormView.as_view(), name='member_edit'), |
||||
url(r'^signin/$', MemberSignIn.as_view(), name='member_signin') |
url(r'^signin/$', MemberSignIn.as_view(), name='member_signin'), |
||||
|
url(r'^$', Members.as_view(), name='members'), |
||||
] |
] |
||||
|
Loading…
Reference in new issue