Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mks2002 committed Aug 3, 2023
1 parent d41d3c7 commit 950df04
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 46 deletions.
Binary file modified db.sqlite3
Binary file not shown.
59 changes: 18 additions & 41 deletions templates/about.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
{% extends 'base.html' %} {% load static %} {% block style %}

<style>

.myimage {
.myimage {
border: 2.5px solid var(--secondary-color);
border-radius: 15px;
margin-right:40px;
margin-right: 40px;
}

</style>

{% endblock style %}
Expand All @@ -30,18 +28,16 @@ <h3 class="text-black">All about us..</h3>
</div>
<hr class="container mb-3" />

<section id="about" >
<section id="about">

<div class="container">

<div class="row flex-lg-row flex-column-reverse mb-5">
<div class="col-lg-6 text-center text-lg-start">
<h3>
Welcome to
<span
>Hotel <br class="d-none d-lg-block" />
the haven</span
>
<span>Hotel <br class="d-none d-lg-block" />
the haven</span>
of your weekend
</h3>
<p>
Expand All @@ -59,32 +55,23 @@ <h3>
</div>

<div class="col-lg-6 mb-4 mb-lg-0 ps-lg-4 text-center">
<img
src="{% static 'images/bg4.jpg' %}"
class="img-fluid myimage"
alt="About Us"
/>
<img src="{% static 'images/bg4.jpg' %}" class="img-fluid myimage" alt="About Us" />
</div>

</div>

<hr class="container " />

<div class="row flex-lg-row flex-column-reverse mt-4 my-2 ">

<div class="col-lg-6 mb-4 mb-lg-0 pe-lg-4 my-3 text-center">
<img
src="{% static 'images/hotel_plaza.jpg' %}"
class="img-fluid myimage"
alt="About Us"
/>
<img src="{% static 'images/hotel_plaza.jpg' %}" class="img-fluid myimage" alt="About Us" />
</div>

<div class="col-lg-6 text-center ps-lg-2 my-3 text-lg-start">
<h3>
We have the
<span
>BEST <br class="d-none d-lg-block" />
<span>BEST <br class="d-none d-lg-block" />
holiday
</span>
plans for your weekend
Expand All @@ -110,8 +97,7 @@ <h3>
<div class="col-lg-6 text-center text-lg-start">
<h3>
Welcome to
<span
>Hotel <br class="d-none d-lg-block" />
<span>Hotel <br class="d-none d-lg-block" />
We have
</span>
best train travel services
Expand All @@ -131,31 +117,22 @@ <h3>
</div>

<div class="col-lg-6 mb-4 mb-lg-0 ps-lg-4 text-center mt-4">
<img
src="{% static 'images/t3.jpg' %}"
class="img-fluid myimage"
alt="About Us"
/>
<img src="{% static 'images/t3.jpg' %}" class="img-fluid myimage" alt="About Us" />
</div>
</div>

<hr class="container my-2">

<div class="row flex-lg-row flex-column-reverse mt-4 my-2 ">
<div class="row flex-lg-row flex-column-reverse mt-4 my-2 ">

<div class="col-lg-6 mb-4 mb-lg-0 pe-lg-4 my-3 text-center">
<img
src="{% static 'images/bgsign3.jpg' %}"
class="img-fluid myimage"
alt="About Us"
/>
<img src="{% static 'images/bgsign3.jpg' %}" class="img-fluid myimage" alt="About Us" />
</div>

<div class="col-lg-6 text-center ps-lg-2 my-3 text-lg-start">
<h3>
We have the
<span
>BEST <br class="d-none d-lg-block" />
<span>BEST <br class="d-none d-lg-block" />
holiday
</span>
plans for your weekend
Expand All @@ -175,7 +152,7 @@ <h3>
</div>
</div>


</div>
</section>

Expand All @@ -186,7 +163,7 @@ <h3>


{% block javascript_files %}

<script src="{% static 'js/main2.js' %}"></script>

{% endblock javascript_files %}
2 changes: 1 addition & 1 deletion templates/hotellist.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

<li class="nav-item">
<a class="nav-link {% if request.path == '/travel_details/'|add:id %}active {% endif %}"
href="{% url 'travel' id%}">Traindetails</a>
href="{% url 'travel' id %}">Traindetails</a>
</li>


Expand Down
12 changes: 9 additions & 3 deletions templates/payment.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,22 @@
<h4>Pay Your Amounts online</h4>

<div class="container">
{% if messages %} {% for message in messages %}
{% if messages %}
{% for message in messages %}

<div class="alert alert-{{message.tags}} alert-dismissible fade show" role="alert">
<strong>{{ message }}</strong>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>

{% endfor %} {% endif %} {% comment %} I have to submit this form in
{% endfor %}
{% endif %}

{% comment %}
I have to submit this form in
the same endpoint where this page is render so we dont need to
mention action attribute in the form .... {% endcomment %}
mention action attribute in the form ....
{% endcomment %}
<form method="post" id="myform">
{% csrf_token %}

Expand Down
9 changes: 8 additions & 1 deletion userreview/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,11 @@ def memory(request, id):
url = '/dashboard/{}'.format(id)
messages.success(request, 'your memory is added successfully that is visible in our blog page !')
data = {'un': username, 'url': url, 'id': id}
return HttpResponseRedirect(url)
return HttpResponseRedirect(url)







0 comments on commit 950df04

Please sign in to comment.