|
|
@@ -1,28 +1,42 @@
|
|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
{% include 'hackathon/base.html' %}
|
|
|
+ <link rel="stylesheet" href="/static/css/form.css">
|
|
|
<body>
|
|
|
- <h1>Register with Django Hackathon Starter</h1>
|
|
|
-
|
|
|
{% if registered %}
|
|
|
- Django Hackathon says: <strong>thank you for registering!</strong>
|
|
|
- <a href="/hackathon/">Return to the homepage.</a><br />
|
|
|
+ <strong>Thank you for registering!</strong>
|
|
|
+ <a href="/hackathon/">Return to the homepage.</a><br />
|
|
|
+
|
|
|
{% else %}
|
|
|
- Django Hackathon says: <strong>register here!</strong><br />
|
|
|
-
|
|
|
- <form id="user_form" method="post" action="/hackathon/register/"
|
|
|
+ <div class='container text-center'>
|
|
|
+ <h2 class="form-signin-heading">Sign Up</h2>
|
|
|
+ <br>
|
|
|
+ <form class="form-horizontal" id="user_form" method="post" action="/hackathon/register/"
|
|
|
enctype="multipart/form-data">
|
|
|
+ {% csrf_token %}
|
|
|
+ {% load bootstrap %}
|
|
|
|
|
|
- {% csrf_token %}
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <td class="container text-center">{{ user_form.username | bootstrap_horizontal}}</td>
|
|
|
+ </tr>
|
|
|
|
|
|
- <!-- Display each form. The as_p method wraps each element in a paragraph
|
|
|
- (<p>) element. This ensures each element appears on a new line,
|
|
|
- making everything look neater. -->
|
|
|
- {{ user_form.as_p }}
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <td class="container text-center">{{ user_form.email | bootstrap_horizontal}}</td>
|
|
|
+ </tr>
|
|
|
|
|
|
- <!-- Provide a button to click to submit the form. -->
|
|
|
- <input type="submit" name="submit" value="Register" />
|
|
|
- </form>
|
|
|
- {% endif %}
|
|
|
+ <tr>
|
|
|
+
|
|
|
+ <td class="container text-center">{{ user_form.password | bootstrap_horizontal}}</td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
+ <button class="btn btn-lg btn-primary" type="submit">Register</button>
|
|
|
+ <input type="hidden" name="submit" value="Register" />
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ {% endif %}
|
|
|
</body>
|
|
|
-</html>
|
|
|
+</html>
|
|
|
+
|