from django.conf.urls import url
from vutman import views

urlpatterns = [
    url(r'^search/$', views.search, name='search'),

    url(r'^user/(?P<pk>\d+)/$', views.emailuser_details,
        name='emailuser.details'),
    url(r'^user/(?P<pk>\d+)/delete/$', views.emailuser_delete,
        name='emailuser.delete'),
    url(r'^user/new/$', views.emailuser_details,
        name='emailuser.new'),
    url(r'^alias/(?P<pk>\d+)/$', views.emailalias_details,
        name='emailalias.details'),
    url(r'^alias/new/$', views.emailalias_details,
        name='emailalias.new'),
    url(r'^alias/(?P<pk>\d+)/delete/$', views.emailalias_delete,
        name='emailalias.delete'),

    url(r'^render_vut/$', views.render_virtual_user_table, name="render_vut"),

    url(r'^$', views.index, name='index'),
]
