from django.urls import path
from App import views
from django.contrib.auth import views as v

urlpatterns = [
	path('',views.home,name="hm"),
	path('lgi/',v.LoginView.as_view(template_name="html/login.html"),name="lg"),
	path('lgo/',v.LogoutView.as_view(template_name="html/logout.html"),name="lgt"),
	path('main/',views.mainpage,name="mn"),
	path('reg/',views.register,name="rg"),
	path('pfe/',views.profile,name="pf"),
	path('upfle/',views.updpfle,name="upf"),
	path('rlreq/',views.rolereq,name="rq"),
	path('gvperm/',views.gvper,name="gv"),
	path('aprrl/<int:t>/',views.aprvrl,name="apr"),
	path('orgf/',views.orgform,name="og"),
	path('dnprf/',views.dnrpfle,name="dntpf"),
	path('don/',views.donate,name="don"),
    path('up/<int:a>/',views.update,name="up"),
    path('dele/<int:b>/',views.delete,name='dele'),
    path('msg/<int:m>/',views.message,name='msg'),
    path('occdet/<int:bi>/',views.occdetails,name="occdet"),
    path('odel/<int:ai>/',views.occdelete,name="odel"),
    path('occmsg/<int:om>/',views.occmsg,name="occmsg"),
    path('details/',views.details,name="details"),
    path('join/',views.joinus,name="join"),  
    path('jmsg/',views.joinmsg,name="jm"), 
    path('chinfo/',views.childinfo,name="ci"),
   	path('worinfo/',views.workerinfo,name="wi"),
    path('doninfo/',views.donorinfo,name="di"),
    path('chtab/',views.childtable,name="ct"),
    path('wortab/',views.workertable,name="wt"),
    path('chpas/',views.change,name="chpas"),
    path('rst/',v.PasswordResetView.as_view(template_name="html/resetpassword.html"),name="rt"),
    path('rst_done/',v.PasswordResetDoneView.as_view(template_name="html/resetpassworddone.html"),name="password_reset_done"),
    path('rst_cf/<uidb64>/<token>/',v.PasswordResetConfirmView.as_view(template_name="html/reset_password_confirm.html"),name="password_reset_confirm"),
    path('rst_cmplt/',v.PasswordResetCompleteView.as_view(template_name="html/reset_password_complete.html"),name="password_reset_complete"),
    path('dash/',views.dashboard,name="dash"),
    path('chup/<int:cu>/',views.childupdate,name="chupd"),
    path('cdel/<int:cd>/',views.childdelete,name="chdel"),
    path('wup/<int:wu>/',views.workerupdate,name="worup"),
    path('wdel/<int:wd>/',views.workerdelete,name="wordel"),
    path('dup/<int:du>/',views.donorinfoupdate,name="diup"),
    path('ddel/<int:dd>/',views.donorinfodelete,name="dondel"),
    path('dontab1/',views.donationtable1,name="dtab1"),
    path('dontab2/',views.donationtable2,name="dtab2"),
    path('info/',views.information,name="info"),
    path('vis/',views.visible,name="vi"),
    path('chview/<int:cv>/',views.childview,name="chv"),
    path('worview/<int:wv>/',views.workerview,name="worv"),
    path('cont/',views.contactus,name="con"),
    path('abus/',views.aboutus,name="aus"),

]