diff options
author | Akshen | 2017-05-15 17:18:00 +0530 |
---|---|---|
committer | Akshen | 2017-05-19 15:30:31 +0530 |
commit | a6c1e34cbbf09e16a78d33f4d275c35f89d14ddc (patch) | |
tree | d0a24f8f48090e5b63fd4369a69da4dec4349c8b /workshop_app | |
parent | aef28fae505089994f10c7d1786f8007c5023641 (diff) | |
download | workshop_booking-a6c1e34cbbf09e16a78d33f4d275c35f89d14ddc.tar.gz workshop_booking-a6c1e34cbbf09e16a78d33f4d275c35f89d14ddc.tar.bz2 workshop_booking-a6c1e34cbbf09e16a78d33f4d275c35f89d14ddc.zip |
Workshop Booking Domain Added
Diffstat (limited to 'workshop_app')
20 files changed, 122 insertions, 122 deletions
diff --git a/workshop_app/templates/workshop_app/activation.html b/workshop_app/templates/workshop_app/activation.html index 10a1353..01a85bc 100644 --- a/workshop_app/templates/workshop_app/activation.html +++ b/workshop_app/templates/workshop_app/activation.html @@ -12,9 +12,9 @@ </div> <ul class="nav navbar-nav navbar-right"> {% if user.profile.is_email_verified %} - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile</a></li> {% endif %} - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/booking.html b/workshop_app/templates/workshop_app/booking.html index 13af37c..dd9f1e9 100644 --- a/workshop_app/templates/workshop_app/booking.html +++ b/workshop_app/templates/workshop_app/booking.html @@ -18,7 +18,7 @@ function sendData(d){ var check_count; //For queue - var URL = "{{ URL_ROOT }}/book_workshop/"; + var URL = "{{ URL_ROOT }}/workshop_booking/book_workshop/"; c = d + ',0'; $.ajax({ url: URL, @@ -62,7 +62,7 @@ } function booking_confirmed(d){ - var URL = "{{ URL_ROOT }}/book_workshop/"; + var URL = "{{ URL_ROOT }}/workshop_booking/book_workshop/"; $.ajax({ url: URL, @@ -89,13 +89,13 @@ <a class="navbar-brand" href="#">Coordinator Profile</a> </div> <ul class="nav navbar-nav"> - <li class="active"><a href="{{ URL_ROOT}}/book/">Book</a></li> - <li><a href="{{ URL_ROOT}}/my_workshops/">My Workshops</a></li> - <li><a href="{{ URL_ROOT }}/propose_workshop/">Propose a Workshop</a></li> + <li class="active"><a href="{{ URL_ROOT}}/workshop_booking/book/">Book</a></li> + <li><a href="{{ URL_ROOT}}/workshop_booking/my_workshops/">My Workshops</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/propose_workshop/">Propose a Workshop</a></li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/create_workshop.html b/workshop_app/templates/workshop_app/create_workshop.html index 2977a58..f98d7a1 100644 --- a/workshop_app/templates/workshop_app/create_workshop.html +++ b/workshop_app/templates/workshop_app/create_workshop.html @@ -18,14 +18,14 @@ <a class="navbar-brand" href="#">Instructor Profile</a> </div> <ul class="nav navbar-nav"> - <li ><a href="{{ URL_ROOT }}/manage/">Manage</a></li> - <li class="active"><a href="{{ URL_ROOT }}/create_workshop/">Create Workshop</a></li> - <li ><a href="{{ URL_ROOT }}/view_workshoptype_list/">View Workshop List</a></li> - <li ><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> + <li ><a href="{{ URL_ROOT }}/workshop_booking/manage/">Manage</a></li> + <li class="active"><a href="{{ URL_ROOT }}/workshop_booking/create_workshop/">Create Workshop</a></li> + <li ><a href="{{ URL_ROOT }}/workshop_booking/view_workshoptype_list/">View Workshop List</a></li> + <li ><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/edit_profile.html b/workshop_app/templates/workshop_app/edit_profile.html index 414b931..f8928e6 100644 --- a/workshop_app/templates/workshop_app/edit_profile.html +++ b/workshop_app/templates/workshop_app/edit_profile.html @@ -12,21 +12,21 @@ </div> {% if request.user.profile.position == 'instructor' %} <ul class="nav navbar-nav"> - <li><a href="{{ URL_ROOT }}/manage/">Manage</a></li> - <li><a href="{{ URL_ROOT }}/create_workshop/">Create Workshop</a></li> - <li><a href="{{ URL_ROOT }}/view_workshoptype_list/">View Workshop List</a></li> - <li><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/manage/">Manage</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/create_workshop/">Create Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_workshoptype_list/">View Workshop List</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> </ul> {% else %} <ul class="nav navbar-nav"> - <li><a href="{{ URL_ROOT }}/book/">Book</a></li> - <li><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> - <li><a href="{{ URL_ROOT }}/propose_workshop/">Propose a Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/book/">Book</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/propose_workshop/">Propose a Workshop</a></li> </ul> {% endif %} <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/how_to_participate.html b/workshop_app/templates/workshop_app/how_to_participate.html index 0d8cc6f..1661cf0 100644 --- a/workshop_app/templates/workshop_app/how_to_participate.html +++ b/workshop_app/templates/workshop_app/how_to_participate.html @@ -16,11 +16,11 @@ <nav class="navbar navbar-default navbar-custom"> <div class="container-fluid"> <div class="navbar-header"> - <a class="navbar-brand" href="{{URL_ROOT}}/">Booking</a> + <a class="navbar-brand" href="{{URL_ROOT}}/workshop_booking/">Booking</a> </div> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> - <li><a href="{{ URL_ROOT }}/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/index.html b/workshop_app/templates/workshop_app/index.html index 5ce8907..f304624 100644 --- a/workshop_app/templates/workshop_app/index.html +++ b/workshop_app/templates/workshop_app/index.html @@ -37,9 +37,9 @@ </form> </div> - <h4 style="margin-left: 27%; color: grey;">If not Registered yet, <br> please <a href="{{ URL_ROOT}}/register/" target="_blank">register here.</a></h4> + <h4 style="margin-left: 27%; color: grey;">If not Registered yet, <br> please <a href="{{ URL_ROOT}}/workshop_booking/register/" target="_blank">register here.</a></h4> <br><br> - <button style="margin-left: 30%; width:20%;height:35%;margin-bottom:3%;border-radius:25%;background:#6D5847;color: white" class="demo-button"><h4>Demo</h4></button> + </div> </div> @@ -48,21 +48,21 @@ <div class="icons col-sm-12"> <figure class="item" style="margin-left: 10%;"> - <a href="{{ URL_ROOT }}/view_workshoptype_details/" style="color: #6D5847;"> + <a href="{{ URL_ROOT }}/workshop_booking/view_workshoptype_details/" style="color: #6D5847;"> <img class="caption-img" src="{{ URL_ROOT }}/static/workshop_app/img/list.png" > <figcaption class="caption">Course List</figcaption> </a> </figure> <figure class="item" style="margin-left: 15%;"> - <a href="{{ URL_ROOT }}/benefits/" style="color: #6D5847;"> + <a href="{{ URL_ROOT }}/workshop_booking/benefits/" style="color: #6D5847;"> <img class="caption-img" src="{{ URL_ROOT }}/static/workshop_app/img/bnft.png" > <figcaption class="caption" >Benefits</figcaption> </a> </figure> <figure class="item" style="margin-left: 15%;"> - <a href="{{ URL_ROOT }}/faq/" style="color: #6D5847;"> + <a href="{{ URL_ROOT }}/workshop_booking/faq/" style="color: #6D5847;"> <img class="caption-img" src="{{ URL_ROOT }}/static/workshop_app/img/faq.png" > <figcaption class="caption" >FAQs</figcaption> </a> diff --git a/workshop_app/templates/workshop_app/login.html b/workshop_app/templates/workshop_app/login.html index 47f5827..022badd 100644 --- a/workshop_app/templates/workshop_app/login.html +++ b/workshop_app/templates/workshop_app/login.html @@ -8,12 +8,12 @@ <nav class="navbar navbar-default navbar-custom"> <div class="container-fluid"> <div class="navbar-header"> - <a class="navbar-brand" href="{{ URL_ROOT }}/">Booking</a> + <a class="navbar-brand" href="{{ URL_ROOT }}/workshop_booking/">Booking</a> </div> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> - <li><a href="{{ URL_ROOT }}/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/logout.html b/workshop_app/templates/workshop_app/logout.html index 5dd9587..580fb3f 100644 --- a/workshop_app/templates/workshop_app/logout.html +++ b/workshop_app/templates/workshop_app/logout.html @@ -8,12 +8,12 @@ <nav class="navbar navbar-default navbar-custom"> <div class="container-fluid"> <div class="navbar-header"> - <a class="navbar-brand" href="{{ URL_ROOT }}/">Booking</a> + <a class="navbar-brand" href="{{ URL_ROOT }}/workshop_booking/">Booking</a> </div> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> - <li><a href="{{ URL_ROOT }}/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> </ul> </div> </nav> @@ -24,7 +24,7 @@ <div class="container" align="center"> <br> <h3>You have logged out successfully.</h3> - <h4>If you want to Login again please <a href="{{ URL_ROOT}}/login/">click here</a></h4> + <h4>If you want to Login again please <a href="{{ URL_ROOT}}/workshop_booking/login/">click here</a></h4> <br> </div> diff --git a/workshop_app/templates/workshop_app/manage.html b/workshop_app/templates/workshop_app/manage.html index e210e5e..ee0b575 100644 --- a/workshop_app/templates/workshop_app/manage.html +++ b/workshop_app/templates/workshop_app/manage.html @@ -7,14 +7,14 @@ <a class="navbar-brand" href="#">Instructor Profile</a> </div> <ul class="nav navbar-nav"> - <li class="active"><a href="{{ URL_ROOT }}/manage/">Manage</a></li> - <li ><a href="{{ URL_ROOT }}/create_workshop/">Create Workshop</a></li> - <li ><a href="{{ URL_ROOT }}/view_workshoptype_list/">View Workshop List</a></li> - <li ><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> + <li class="active"><a href="{{ URL_ROOT }}/workshop_booking/manage/">Manage</a></li> + <li ><a href="{{ URL_ROOT }}/workshop_booking/create_workshop/">Create Workshop</a></li> + <li ><a href="{{ URL_ROOT }}/workshop_booking/view_workshoptype_list/">View Workshop List</a></li> + <li ><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> @@ -37,7 +37,7 @@ }); function sendData(d){ - var URL = "{{ URL_ROOT }}/my_workshops/" + var URL = "{{ URL_ROOT }}/workshop_booking/my_workshops/" console.log(d); $.ajax({ url: URL, diff --git a/workshop_app/templates/workshop_app/my_workshops.html b/workshop_app/templates/workshop_app/my_workshops.html index a6bda66..3785eca 100644 --- a/workshop_app/templates/workshop_app/my_workshops.html +++ b/workshop_app/templates/workshop_app/my_workshops.html @@ -20,7 +20,7 @@ }); function sendData(d){ - var URL = "{{ URL_ROOT }}/my_workshops/" + var URL = "{{ URL_ROOT }}/workshop_booking/my_workshops/" console.log(d); $.ajax({ url: URL, @@ -46,22 +46,22 @@ </div> {% if request.user.profile.position == 'instructor' %} <ul class="nav navbar-nav"> - <li><a href="{{ URL_ROOT }}/manage/">Manage</a></li> - <li><a href="{{ URL_ROOT }}/create_workshop/">Create Workshop</a></li> - <li><a href="{{ URL_ROOT }}/view_workshoptype_list/">View Workshop List</a></li> - <li class="active"><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/manage/">Manage</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/create_workshop/">Create Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_workshoptype_list/">View Workshop List</a></li> + <li class="active"><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> </ul> {% else %} <ul class="nav navbar-nav"> - <li><a href="{{ URL_ROOT }}/book/">Book</a></li> - <li class="active"><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> - <li><a href="{{ URL_ROOT }}/propose_workshop/">Propose a Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/book/">Book</a></li> + <li class="active"><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/propose_workshop/">Propose a Workshop</a></li> </ul> {% endif %} <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/profile_updated.html b/workshop_app/templates/workshop_app/profile_updated.html index c90e176..6373172 100644 --- a/workshop_app/templates/workshop_app/profile_updated.html +++ b/workshop_app/templates/workshop_app/profile_updated.html @@ -12,19 +12,19 @@ </div> <ul class="nav navbar-nav"> {% if request.user.profile.position == 'instructor' %} - <li><a href="{{ URL_ROOT }}/manage/">Manage</a> + <li><a href="{{ URL_ROOT }}/workshop_booking/manage/">Manage</a> </li> - <li><a href="{{ URL_ROOT }}/create_workshop/">Create Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/create_workshop/">Create Workshop</a></li> {% else %} - <li><a href="{{ URL_ROOT }}/book/">Book</a></li> - <li><a href="{{ URL_ROOT }}/propose_workshop/">Propose a Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/book/">Book</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/propose_workshop/">Propose a Workshop</a></li> {% endif %} - <li><a href="{{ URL_ROOT }}/view_workshoptype_list/">View Workshop Details</a></li> - <li><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_workshoptype_list/">View Workshop Details</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/propose_workshop.html b/workshop_app/templates/workshop_app/propose_workshop.html index da2e22d..44000d3 100644 --- a/workshop_app/templates/workshop_app/propose_workshop.html +++ b/workshop_app/templates/workshop_app/propose_workshop.html @@ -26,16 +26,16 @@ <nav class="navbar navbar-default navbar-custom"> <div class="container-fluid"> <div class="navbar-header"> - <a class="navbar-brand" href="{{ URL_ROOT}}/book/">WebSiteName</a> + <a class="navbar-brand" href="{{ URL_ROOT}}/workshop_booking/book/">WebSiteName</a> </div> <ul class="nav navbar-nav"> - <li><a href="{{ URL_ROOT }}/book/">Book</a></li> - <li><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> - <li class="active"><a href="{{ URL_ROOT }}/propose_workshop/">Propose a Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/book/">Book</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> + <li class="active"><a href="{{ URL_ROOT }}/workshop_booking/propose_workshop/">Propose a Workshop</a></li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/register.html b/workshop_app/templates/workshop_app/register.html index 6e688d5..4164c40 100644 --- a/workshop_app/templates/workshop_app/register.html +++ b/workshop_app/templates/workshop_app/register.html @@ -8,12 +8,12 @@ <nav class="navbar navbar-default navbar-custom"> <div class="container-fluid"> <div class="navbar-header"> - <a class="navbar-brand" href="{{ URL_ROOT }}/">Booking</a> + <a class="navbar-brand" href="{{ URL_ROOT }}/workshop_booking/">Booking</a> </div> <ul class="nav navbar-nav navbar-right"> - <li class="active"><a href="{{ URL_ROOT }}/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> - <li><a href="{{ URL_ROOT }}/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> + <li class="active"><a href="{{ URL_ROOT }}/workshop_booking/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/registeration_error.html b/workshop_app/templates/workshop_app/registeration_error.html index ad1e73b..8a48114 100644 --- a/workshop_app/templates/workshop_app/registeration_error.html +++ b/workshop_app/templates/workshop_app/registeration_error.html @@ -8,6 +8,6 @@ <div class="container" > <br> <h1>Error Occurred While registration</h1> - <h3>Please try to <a href="{{ URL_ROOT }}/register/"> register again</a> using different username or email and see to it that you fill all the fields.</h3> + <h3>Please try to <a href="{{ URL_ROOT }}/workshop_booking/register/"> register again</a> using different username or email and see to it that you fill all the fields.</h3> </div> {% endblock %}
\ No newline at end of file diff --git a/workshop_app/templates/workshop_app/view_benefits.html b/workshop_app/templates/workshop_app/view_benefits.html index 9b56244..7e970ce 100644 --- a/workshop_app/templates/workshop_app/view_benefits.html +++ b/workshop_app/templates/workshop_app/view_benefits.html @@ -16,11 +16,11 @@ <nav class="navbar navbar-default navbar-custom"> <div class="container-fluid"> <div class="navbar-header"> - <a class="navbar-brand" href="{{URL_ROOT}}/">Booking</a> + <a class="navbar-brand" href="{{URL_ROOT}}/workshop_booking/">Booking</a> </div> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> - <li><a href="{{ URL_ROOT }}/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/view_faq.html b/workshop_app/templates/workshop_app/view_faq.html index 77ec095..c608bd8 100644 --- a/workshop_app/templates/workshop_app/view_faq.html +++ b/workshop_app/templates/workshop_app/view_faq.html @@ -18,11 +18,11 @@ <nav class="navbar navbar-default navbar-custom"> <div class="container-fluid"> <div class="navbar-header"> - <a class="navbar-brand" href="{{URL_ROOT}}/">Booking</a> + <a class="navbar-brand" href="{{URL_ROOT}}/workshop_booking/">Booking</a> </div> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> - <li><a href="{{ URL_ROOT }}/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/view_profile.html b/workshop_app/templates/workshop_app/view_profile.html index 72b3548..23df8ed 100644 --- a/workshop_app/templates/workshop_app/view_profile.html +++ b/workshop_app/templates/workshop_app/view_profile.html @@ -12,22 +12,22 @@ </div> {% if request.user.profile.position == 'instructor' %} <ul class="nav navbar-nav"> - <li><a href="{{ URL_ROOT }}/manage/">Manage</a></li> - <li><a href="{{ URL_ROOT }}/create_workshop/">Create Workshop</a></li> - <li><a href="{{ URL_ROOT }}/view_workshoptype_list/">View Workshop List</a></li> - <li><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/manage/">Manage</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/create_workshop/">Create Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_workshoptype_list/">View Workshop List</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> </ul> {% else %} <ul class="nav navbar-nav"> - <li><a href="{{ URL_ROOT }}/book/">Book</a></li> - <li><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a> - <li><a href="{{ URL_ROOT }}/propose_workshop/">Propose a Workshop</a></li></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/book/">Book</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a> + <li><a href="{{ URL_ROOT }}/workshop_booking/propose_workshop/">Propose a Workshop</a></li></li> </ul> {% endif %} <ul class="nav navbar-nav navbar-right"> - <li class="active"><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li class="active"><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> @@ -68,6 +68,6 @@ </tr> </table> <br> - <a class="btn btn-primary pull-right" href="{{ URL_ROOT }}/edit_profile/">Edit Profile</a> + <a class="btn btn-primary pull-right" href="{{ URL_ROOT }}/workshop_booking/edit_profile/">Edit Profile</a> </div> {% endblock %} diff --git a/workshop_app/templates/workshop_app/view_workshoptype_details.html b/workshop_app/templates/workshop_app/view_workshoptype_details.html index 0cb989e..e488158 100644 --- a/workshop_app/templates/workshop_app/view_workshoptype_details.html +++ b/workshop_app/templates/workshop_app/view_workshoptype_details.html @@ -16,11 +16,11 @@ <nav class="navbar navbar-default navbar-custom"> <div class="container-fluid"> <div class="navbar-header"> - <a class="navbar-brand" href="{{URL_ROOT}}/">Booking</a> + <a class="navbar-brand" href="{{URL_ROOT}}/workshop_booking/">Booking</a> </div> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> - <li><a href="{{ URL_ROOT }}/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/register/"><span class="glyphicon glyphicon-user"></span> Register</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/login/"><span class="glyphicon glyphicon-log-in"></span> Login</a></li> </ul> </div> </nav> diff --git a/workshop_app/templates/workshop_app/view_workshoptype_list.html b/workshop_app/templates/workshop_app/view_workshoptype_list.html index dddd119..16ee38e 100644 --- a/workshop_app/templates/workshop_app/view_workshoptype_list.html +++ b/workshop_app/templates/workshop_app/view_workshoptype_list.html @@ -14,19 +14,19 @@ </div> <ul class="nav navbar-nav"> {% if request.user.profile.position == 'instructor'%} - <li><a href="{{ URL_ROOT }}/manage/">Manage</a></li> - <li><a href="{{ URL_ROOT }}/create_workshop/">Create Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/manage/">Manage</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/create_workshop/">Create Workshop</a></li> {% else %} - <li><a href="{{ URL_ROOT }}/book/">Book</a></li> - <li><a href="{{ URL_ROOT }}/propose_workshop/">Propose a Workshop</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/book/">Book</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/propose_workshop/">Propose a Workshop</a></li> {% endif %} - <li class="active"><a href="{{ URL_ROOT }}/view_workshoptype_list/">View Workshop List</a></li> - <li><a href="{{ URL_ROOT }}/my_workshops/">My Workshops</a></li> + <li class="active"><a href="{{ URL_ROOT }}/workshop_booking/view_workshoptype_list/">View Workshop List</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/my_workshops/">My Workshops</a></li> </ul> <ul class="nav navbar-nav navbar-right"> - <li><a href="{{ URL_ROOT }}/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> - <li><a href="{{ URL_ROOT }}/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/view_profile/"><span class="glyphicon glyphicon-user"></span> Profile </a></li> + <li><a href="{{ URL_ROOT }}/workshop_booking/logout/"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li> </ul> </div> </nav> @@ -61,7 +61,7 @@ <td>{{ w.workshoptype_duration }}</td> <td><button class="btn btn-default btn-sm" class="accordion-toggle" data-toggle="collapse" href="#collapseOne{{ forloop.counter }}">View Workshop Details</button></td> {% if request.user.profile.position == 'coordinator' %} - <td><button class="btn btn-default btn-sm" ><a href="{{ URL_ROOT }}/book/">Book</a></button></td> + <td><button class="btn btn-default btn-sm" ><a href="{{ URL_ROOT }}/workshop_booking/book/">Book</a></button></td> {% endif %} </tr> diff --git a/workshop_app/views.py b/workshop_app/views.py index 270902e..11bd003 100644 --- a/workshop_app/views.py +++ b/workshop_app/views.py @@ -44,16 +44,16 @@ def index(request): form = UserLoginForm() if user.is_authenticated(): if user.groups.filter(name='instructor').count() > 0: - return redirect('/manage/') - return redirect('/book/') + return redirect('/workshop_booking/manage/') + return redirect('/workshop_booking/book/') elif request.method == "POST": form = UserLoginForm(request.POST) if form.is_valid(): user = form.cleaned_data login(request, user) if user.groups.filter(name='instructor').count() > 0: - return redirect('/manage/') - return redirect('/book/') + return redirect('/workshop_booking/manage/') + return redirect('/workshop_booking/book/') return render(request, "workshop_app/index.html", {"form": form}) @@ -68,8 +68,8 @@ def user_login(request): user = request.user if user.is_authenticated(): if user.groups.filter(name='instructor').count() > 0: - return redirect('/manage/') - return redirect('/book/') + return redirect('/workshop_booking/manage/') + return redirect('/workshop_booking/book/') if request.method == "POST": form = UserLoginForm(request.POST) @@ -77,8 +77,8 @@ def user_login(request): user = form.cleaned_data login(request, user) if user.groups.filter(name='instructor').count() > 0: - return redirect('/manage/') - return redirect('/book/') + return redirect('/workshop_booking/manage/') + return redirect('/workshop_booking/book/') else: return render(request, 'workshop_app/login.html', {"form": form}) else: @@ -96,7 +96,7 @@ def activate_user(request, key): try: user = Profile.objects.get(activation_key=key) except: - return redirect('/register/') + return redirect('/workshop_booking/register/') if user.is_email_verified: status = "Your email is already verified" @@ -112,7 +112,7 @@ def activate_user(request, key): status = "Your account has been activated" else: logout(request) - return redirect('/logout/') + return redirect('/workshop_booking/logout/') return render(request, 'workshop_app/activation.html', {"status": status}) @@ -150,7 +150,7 @@ def book(request): if user.is_authenticated(): if is_email_checked(user): if user.groups.filter(name='instructor').count() > 0: - return redirect('/manage/') + return redirect('/workshop_booking/manage/') workshop_details = Workshop.objects.all() @@ -227,7 +227,7 @@ def book(request): else: return render(request, "workshop_app/activation.html") else: - return redirect('/login/') + return redirect('/workshop_booking/login/') @login_required @@ -383,9 +383,9 @@ def manage(request): {"workshop_occurence_list": workshops} ) - return redirect('/book/') + return redirect('/workshop_booking/book/') else: - return redirect('/login/') + return redirect('/workshop_booking/login/') @login_required @@ -624,7 +624,7 @@ def my_workshops(request): return render(request, 'workshop_app/my_workshops.html', {"workshop_occurences": workshop_occurences}) else: - return redirect('/login/') + return redirect('/workshop_booking/login/') @login_required @@ -634,7 +634,7 @@ def propose_workshop(request): user = request.user if is_email_checked(user): if is_instructor(user): - return redirect('/manage/') + return redirect('/workshop_booking/manage/') else: if request.method == 'POST': form = ProposeWorkshopDateForm(request.POST) @@ -643,7 +643,7 @@ def propose_workshop(request): form_data.proposed_workshop_coordinator = user form_data.proposed_workshop_coordinator.save() form_data.save() - return redirect('/my_workshops/') + return redirect('/workshop_booking/my_workshops/') else: form = ProposeWorkshopDateForm() return render( @@ -712,7 +712,7 @@ def create_workshop(request): form_data.workshop_instructor = user form_data.workshop_instructor.save() form_data.save() - return redirect('/manage/') + return redirect('/workshop_booking/manage/') else: form = CreateWorkshop() return render( @@ -720,7 +720,7 @@ def create_workshop(request): {"form": form } ) else: - return redirect('/book/') + return redirect('/workshop_booking/book/') @login_required @@ -747,7 +747,7 @@ def view_workshoptype_list(request): {'workshoptype': workshoptype} ) else: - return redirect('/activate_user/') + return redirect('/workshop_booking/activate_user/') def view_workshoptype_details(request): |