-
Notifications
You must be signed in to change notification settings - Fork 18
Add Success message #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
49c01e3
ba2845c
c8e9a04
caa20e3
72a64f9
0a130c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,14 @@ | |
| <link href="{% static 'css/font-awesome.min.css' %}" rel="stylesheet"> | ||
| <link href='http://fonts.googleapis.com/css?family=Montserrat' rel='stylesheet' type='text/css'> | ||
| <link rel="shortcut icon" type="image/ico" href="{% static 'img/favicon.ico' %}"/> | ||
|
|
||
|
|
||
| <style> | ||
| img { | ||
| display: block; | ||
| margin-left: auto; | ||
| margin-right: auto; | ||
| } | ||
| </style> | ||
|
|
||
| </head> | ||
|
|
||
|
|
@@ -89,6 +96,22 @@ <h2>Add new ride</h2> | |
|
|
||
| </div><!-- end .col-lg-12 --> | ||
|
|
||
| <div class="messages"> | ||
| <font align = "center"> | ||
| {% if messages %} | ||
| <img src = "{% static "images/success.gif" %}"> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The image is quite large and doesn't disappear automatically. Can you hide it after some time using jquery or just js?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can also use a smaller image. |
||
|
|
||
| {% for message in messages %} | ||
|
|
||
| <div class="alert alert-success"> {{ message }} </div> | ||
|
|
||
| {% endfor %} | ||
|
|
||
| {% endif %} | ||
| </font> | ||
| </div> | ||
|
|
||
|
|
||
| <div class="col-sm-12 col-md-12 col-xs-12 add-rideclass"> | ||
|
|
||
| <div class="page-content add-new-ride"> | ||
|
|
@@ -112,42 +135,6 @@ <h2>Add new ride</h2> | |
| <div class="field buttons"> | ||
| <button type="submit" class="btn btn-lg green-color">Submit</button> | ||
| </div> | ||
| <!-- <div class="field"> | ||
| <select id="destination" name="destination"> | ||
| <option value="default">From</option> | ||
| <option>Mandi</option> | ||
| <option>South Campus</option> | ||
| <option>North Campus</option> | ||
| </select> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <select id="destinationd" name="destinationd"> | ||
| <option value="default">To</option> | ||
| <option>Mandi</option> | ||
| <option>South Campus</option> | ||
| <option>North Campus</option> | ||
| </select> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <input name="event" type="text" placeholder="Date" class="datepicker"> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <select id="destination" name="destination"> | ||
| <option value="default">Number of seats</option> | ||
| <option>1</option> | ||
| <option>2</option> | ||
| <option>3</option> | ||
| </select> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <input type="number" id="text" name="text" placeholder="Amount"> | ||
| </div> --> | ||
|
|
||
|
|
||
| </form> | ||
|
|
||
| </div><!-- end .page-content --> | ||
|
|
@@ -177,95 +164,6 @@ <h2>Add new ride</h2> | |
|
|
||
| </footer><!-- end #footer --> | ||
|
|
||
| <div class="modal fade" id="loginModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | ||
| <div class="modal-dialog"> | ||
| <div class="modal-content"> | ||
|
|
||
| <div class="modal-header"> | ||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
| </div><!-- end .modal-header --> | ||
|
|
||
| <div class="modal-body"> | ||
| <form action="" novalidate autocomplete="off" class="idealforms login"> | ||
|
|
||
| <div class="log-header"> | ||
| <span class="log-in">Log in</span> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <input name="username" type="text" placeholder="Username"> | ||
| <span class="error"></span> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <input type="password" name="password" placeholder="Password"> | ||
| <span class="error"></span> | ||
| </div> | ||
|
|
||
| <div class="field buttons"> | ||
| <button type="submit" class="submit btn green-color">Log in</button> | ||
| </div> | ||
|
|
||
| <a href="#" class="log-twitter twitter"><i class="fa fa-twitter"></i>Twitter</a> | ||
| <a href="#" class="log-facebook facebook"><i class="fa fa-facebook"></i>Facebook</a> | ||
|
|
||
| <div class="clearfix"></div> | ||
|
|
||
| </form><!-- end .login --> | ||
| </div><!-- end .modal-body --> | ||
|
|
||
| </div><!-- end .modal-content --> | ||
| </div><!-- end .modal-dialog --> | ||
| </div><!-- end .modal --> | ||
|
|
||
| <div class="modal fade" id="regModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | ||
| <div class="modal-dialog"> | ||
| <div class="modal-content"> | ||
|
|
||
| <div class="modal-header"> | ||
| <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> | ||
| </div> | ||
|
|
||
| <div class="modal-body"> | ||
| <form action="" novalidate autocomplete="off" class="idealforms reg"> | ||
|
|
||
| <div class="log-header"> | ||
| <span class="log-in">Sign up</span> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <input name="username" type="text" placeholder="Username"> | ||
| <span class="error"></span> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <input name="email" type="email" placeholder="E-Mail"> | ||
| <span class="error"></span> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <input type="password" name="password" placeholder="Password"> | ||
| <span class="error"></span> | ||
| </div> | ||
|
|
||
| <div class="field"> | ||
| <input name="confirmpass" type="password" placeholder="Password"> | ||
| <span class="error"></span> | ||
| </div> | ||
|
|
||
| <div class="field buttons"> | ||
| <button type="submit" class="submit btn green-color">Sign up</button> | ||
| </div> | ||
|
|
||
| <div class="clearfix"></div> | ||
|
|
||
| </form><!-- end .reg --> | ||
| </div><!-- end .modal-body --> | ||
|
|
||
| </div><!-- end .modal-content --> | ||
| </div><!-- end .modal-dialog --> | ||
| </div><!-- end .modal --> | ||
|
|
||
| <!-- Javascript --> | ||
| <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | ||
| <!-- Bootstrap --> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put this in
styles.css.