Skip to content

Commit

Permalink
profile edited
Browse files Browse the repository at this point in the history
  • Loading branch information
prshnt19 committed Feb 13, 2019
1 parent 27ad08c commit 47721bb
Show file tree
Hide file tree
Showing 68 changed files with 125 additions and 149 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
readme
*.pyc
__pycache__/
.idea/
.idea/workspace.xml
241 changes: 99 additions & 142 deletions .idea/workspace.xml

Large diffs are not rendered by default.

Binary file removed forms/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed forms/__pycache__/admin.cpython-36.pyc
Binary file not shown.
Binary file removed forms/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file removed forms/__pycache__/task.cpython-36.pyc
Binary file not shown.
Binary file removed forms/__pycache__/tokens.cpython-36.pyc
Binary file not shown.
Binary file removed forms/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file removed forms/__pycache__/views.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed forms/migrations/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed home/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed home/__pycache__/admin.cpython-36.pyc
Binary file not shown.
Binary file removed home/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file removed home/__pycache__/views.cpython-36.pyc
Binary file not shown.
Binary file removed home/__pycache__/views_home.cpython-36.pyc
Binary file not shown.
Binary file removed home/migrations/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed members/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed members/__pycache__/admin.cpython-36.pyc
Binary file not shown.
Binary file removed members/__pycache__/models.cpython-36.pyc
Binary file not shown.
Binary file removed members/__pycache__/url.cpython-36.pyc
Binary file not shown.
Binary file removed members/__pycache__/view.cpython-36.pyc
Binary file not shown.
Binary file removed members/__pycache__/views.cpython-36.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed members/migrations/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions members/url.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
path('register/',view.register,name='register'),
path('login/',view.loginuser,name='login'),
path('profile/',view.profile,name='profile'),
path('bookings/',view.bookings,name='bookings'),
path('logout/',view.logoutuser,name="logout"),
path('roombooking/', view.roombook, name='roombook'),
path('roombooking/formsubmit/', view.submit, name='submit'),
Expand Down
5 changes: 5 additions & 0 deletions members/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
from forms.task import send_verification_email
@login_required
def profile(request):
user=request.user
formsubmits=(FormSubmit.objects.filter(userbookings=user))
return render(request, 'room/index.html',{'user':user,'formsubmits':formsubmits})
@login_required
def bookings(request):
user=request.user
formsubmits=(FormSubmit.objects.filter(userbookings=user))
return render(request, 'bookings.html',{'user':user,'formsubmits':formsubmits})
Expand Down
7 changes: 2 additions & 5 deletions templates/bookings.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<section class="navigation">
<div class="nav-container">
<div class="brand">
<a href="#!">Hi {{user.username}}!</a>
<a href="#">Hi {{user.username}}!</a>
</div>
<nav>
<div class="nav-mobile"><a id="nav-toggle" href="#!"><span></span></a></div>
Expand All @@ -49,14 +49,11 @@
<a href="/">Home</a>
</li>
<li>
<a href="/membership/roombooking">Book a room</a>
<a href="/membership/roombooking">Book A New Room</a>
</li>
<li>
<a href="/membership/logout">Logout</a>
</li>
<li>
<a href="">bookings</a>
</li>
</ul>
</nav>
</div>
Expand Down
13 changes: 12 additions & 1 deletion templates/room/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,14 @@ <h1 class="brand"><a href="https://www.iiitm.ac.in/">Home</a></h1>
<!-- navigation -->
<nav class="pull-right nav-collapse collapse">
<ul id="menu-main" class="nav">
{% if user.username != "" %}
<li><a href="#">Hi {{user.username}}!</a></li>
{% endif %}
<li><a title="team" href="#about">About</a></li>
<li><a title="rooms" href="#rooms">Rooms</a></li>
{% if user.username != "" %}
<li><a href="/membership/roombooking">Book A Room</a></li>
{% endif %}
<li><a title="services" href="#services">Services</a></li>

<!--<li><a title="Book Your Room" href="/bookroom/">BOOK YOUR ROOM</a></li>-->
Expand All @@ -307,7 +313,12 @@ <h1 class="brand"><a href="https://www.iiitm.ac.in/">Home</a></h1>
<!-- <li><a title="blog" href="#blog">Blog</a></li> -->
<li><a title="contact" href="#contact">Contact</a></li>
<li><a title="Admin login" href="/admin/">Administrative Login </a></li>
<li><a title="Members" href="/membership/">Members </a></li>
{% if user.username != "" %}
<li><a title="Members" href="/membership/bookings">Bookings </a></li>
<li><a href="/membership/logout">Logout</a></li>
{% else %}
<li><a title="Members" href="/membership/">LogIn/SignUp </a></li>
{% endif %}
</ul>
</nav>
</div>
Expand Down
Binary file removed website/__pycache__/__init__.cpython-36.pyc
Binary file not shown.
Binary file removed website/__pycache__/celery.cpython-36.pyc
Binary file not shown.
Binary file removed website/__pycache__/settings.cpython-36.pyc
Binary file not shown.
Binary file removed website/__pycache__/urls.cpython-36.pyc
Binary file not shown.
Binary file removed website/__pycache__/wsgi.cpython-36.pyc
Binary file not shown.
2 changes: 1 addition & 1 deletion website/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'form8',
'NAME': 'Form',
'USER': 'arpit',
'PASSWORD': 'arpitarpit',
'HOST': 'localhost',
Expand Down

0 comments on commit 47721bb

Please sign in to comment.