summaryrefslogtreecommitdiff
path: root/fossee_manim/templates/registration
diff options
context:
space:
mode:
Diffstat (limited to 'fossee_manim/templates/registration')
-rw-r--r--fossee_manim/templates/registration/base.html165
-rw-r--r--fossee_manim/templates/registration/password_change_done.html15
-rw-r--r--fossee_manim/templates/registration/password_change_form.html21
-rw-r--r--fossee_manim/templates/registration/password_reset_confirm.html20
-rw-r--r--fossee_manim/templates/registration/password_reset_done.html10
-rw-r--r--fossee_manim/templates/registration/password_reset_form.html22
6 files changed, 129 insertions, 124 deletions
diff --git a/fossee_manim/templates/registration/base.html b/fossee_manim/templates/registration/base.html
index 495831d..e6f7a11 100644
--- a/fossee_manim/templates/registration/base.html
+++ b/fossee_manim/templates/registration/base.html
@@ -1,99 +1,104 @@
<!DOCTYPE html>
<html>
+
<head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>
- {% block title %}
- HomePage
- {% endblock %}
- </title>
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>
+ {% block title %}
+ HomePage
+ {% endblock %}
+ </title>
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.bundle.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
- <link rel="stylesheet" href="{{ URL_ROOT }}/static/css/sticky-footer.css" type="text/css" />
- <!-- favicon -->
- <link rel="shortcut icon" type="image/png" href="{{ URL_ROOT}}/"/>
+ <link rel="stylesheet" href="{{ URL_ROOT }}/static/css/sticky-footer.css" type="text/css" />
+ <!-- favicon -->
+ <link rel="shortcut icon" type="image/png" href="{{ URL_ROOT}}/" />
</head>
- <!-- For js/ajax and other related scripts -->
- {% block extra %}
-
- {% endblock %}
+<!-- For js/ajax and other related scripts -->
+{% block extra %}
+
+{% endblock %}
<body style="overflow: scroll;">
- {% block header %}
- <nav class="navbar navbar-expand-lg navbar-custom">
- <a class="navbar-brand" href="#">FOSSEE Animations</a>
- <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
- aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon">=</span>
- </button>
-
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <ul class="navbar-nav mr-auto">
- <form class="form-inline" method="POST" action="/search/">
- {% csrf_token %}
- <input class="form-control mr-sm-2" id="sbox" name="sbox" type="search" placeholder="Search" aria-label="Search">
- <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
- </form>
- <li class="nav-item dropdown">
- <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- Categories
- </a>
-
- <div class="dropdown-menu" aria-labelledby="navbarDropdown">
- {% for c in categories %}
- <a class="dropdown-item" href="{% url 'search_category' c.name %}">{{c.name}}</a>
- {% endfor %}
- </div>
- </li>
- </ul>
+ {% block header %}
+ <nav class="navbar navbar-expand-lg navbar-custom">
+ <a class="navbar-brand" href="#">FOSSEE Animations</a>
+ <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
+ aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
+ <span class="navbar-toggler-icon">=</span>
+ </button>
+
+ <div class="collapse navbar-collapse" id="navbarSupportedContent">
+ <ul class="navbar-nav mr-auto">
+ <form class="form-inline" method="POST" action="/search/">
+ {% csrf_token %}
+ <input class="form-control mr-sm-2" id="sbox" name="sbox" type="search" placeholder="Search"
+ aria-label="Search">
+ <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
+ </form>
+ <li class="nav-item dropdown">
+ <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
+ aria-haspopup="true" aria-expanded="false">
+ Categories
+ </a>
+
+ <div class="dropdown-menu" aria-labelledby="navbarDropdown">
+ {% for c in categories %}
+ <a class="dropdown-item" href="{% url 'search_category' c.name %}">{{c.name}}</a>
+ {% endfor %}
+ </div>
+ </li>
+ </ul>
- {% if user.is_authenticated %}
- <ul class="navbar-nav ml-auto mr-5">
- <li class="nav-item dropdown">
- <a class="nav-link dropdown-toggle" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
- {{user.first_name}}
- </a>
- {% if request.user.profile.position == 'contributor' %}
- <div class="dropdown-menu" aria-labelledby="navbarDropdown">
- <a class="dropdown-item" href="{% url 'how_to' %}">How To</a>
- <a class="dropdown-item" href="{% url 'send_proposal' %}">Send Proposal</a>
- <a class="dropdown-item" href="{% url 'proposal_status' %}">Proposal Status</a>
- <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a>
- <a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
- </div>
- {% else %}
- <div class="dropdown-menu" aria-labelledby="navbarDropdown">
- <a class="dropdown-item" href="{% url 'proposal_status' %}">Submitted Proposals</a>
- <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a>
- <a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
- </div>
- {% endif %}
- </li>
- </ul>
- {% else %}
- <ul class="navbar-nav ml-auto">
- <li class="nav-item">
- <a class="nav-link" href="{% url 'register' %}">Register</a>
- </li>
- <li class="nav-item">
- <a class="nav-link" href="{% url 'login' %}">Login</a>
- </li>
- </ul>
+ {% if user.is_authenticated %}
+ <ul class="navbar-nav ml-auto mr-5">
+ <li class="nav-item dropdown">
+ <a class="nav-link dropdown-toggle" id="navbarDropdown" role="button" data-toggle="dropdown"
+ aria-haspopup="true" aria-expanded="false">
+ {{user.first_name}}
+ </a>
+ {% if request.user.profile.position == 'contributor' %}
+ <div class="dropdown-menu" aria-labelledby="navbarDropdown">
+ <a class="dropdown-item" href="{% url 'how_to' %}">How To</a>
+ <a class="dropdown-item" href="{% url 'send_proposal' %}">Send Proposal</a>
+ <a class="dropdown-item" href="{% url 'proposal_status' %}">Proposal Status</a>
+ <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a>
+ <a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
+ </div>
+ {% else %}
+ <div class="dropdown-menu" aria-labelledby="navbarDropdown">
+ <a class="dropdown-item" href="{% url 'proposal_status' %}">Submitted Proposals</a>
+ <a class="dropdown-item" href="{% url 'view_profile' %}">View Profile</a>
+ <a class="dropdown-item" href="{% url 'logout' %}">Logout</a>
+ </div>
{% endif %}
- </div>
- </nav>
+ </li>
+ </ul>
+ {% else %}
+ <ul class="navbar-nav ml-auto">
+ <li class="nav-item">
+ <a class="nav-link" href="{% url 'register' %}">Register</a>
+ </li>
+ <li class="nav-item">
+ <a class="nav-link" href="{% url 'login' %}">Login</a>
+ </li>
+ </ul>
+ {% endif %}
+ </div>
+ </nav>
+ {% endblock %}
+
+ {% block content %}
+ <br><br>
+ <h1>Base Template Content. Please override me</h1>
{% endblock %}
- {% block content %}
- <br><br>
- <h1>Base Template Content. Please override me</h1>
- {% endblock %}
-
</body>
<br>
+
</html> \ No newline at end of file
diff --git a/fossee_manim/templates/registration/password_change_done.html b/fossee_manim/templates/registration/password_change_done.html
index d72f7f5..2e81207 100644
--- a/fossee_manim/templates/registration/password_change_done.html
+++ b/fossee_manim/templates/registration/password_change_done.html
@@ -1,20 +1,19 @@
{% extends "registration/base.html" %}
-{% block title %}
- Password change successful
+{% block title %}
+Password change successful
{% endblock %}
{% block script %}
<script type="text/javascript">
- window.setTimeout(function()
- {
- location.href="{{ URL_ROOT }}/login/"
+ window.setTimeout(function () {
+ location.href = "{{ URL_ROOT }}/login/"
}, 3000);
</script>
{% endblock %}
{% block content %}
- <br>
- <h3>Your password has been changed successfully.</h3>
- <h4>Redirecting ...</h4>
+<br>
+<h3>Your password has been changed successfully.</h3>
+<h4>Redirecting ...</h4>
{% endblock %} \ No newline at end of file
diff --git a/fossee_manim/templates/registration/password_change_form.html b/fossee_manim/templates/registration/password_change_form.html
index 5b09d89..3133baa 100644
--- a/fossee_manim/templates/registration/password_change_form.html
+++ b/fossee_manim/templates/registration/password_change_form.html
@@ -4,15 +4,16 @@
{% block content %}
<div class="container">
-<form action="" method="post" >
- {% csrf_token %}
- <center>
- <table class=span1>
- {{ form }}
- </table>
- </center>
- <center><button class="btn" type="submit">Change Password</button>
- <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/login/");'>Cancel</button></center>
-</form>
+ <form action="" method="post">
+ {% csrf_token %}
+ <center>
+ <table class=span1>
+ {{ form }}
+ </table>
+ </center>
+ <center><button class="btn" type="submit">Change Password</button>
+ <button class="btn" type="button" name="button" onClick='location.replace("{{URL_ROOT}}/login/");'>Cancel</button>
+ </center>
+ </form>
</div>
{% endblock content %} \ No newline at end of file
diff --git a/fossee_manim/templates/registration/password_reset_confirm.html b/fossee_manim/templates/registration/password_reset_confirm.html
index 57542b4..f7fc9bb 100644
--- a/fossee_manim/templates/registration/password_reset_confirm.html
+++ b/fossee_manim/templates/registration/password_reset_confirm.html
@@ -2,18 +2,18 @@
{% block title %}Reset Password{% endblock %}
{% block content %}
- <br>
- <div class="container">
+<br>
+<div class="container">
{% if validlink %}
- <p>Please enter your new password twice so we can verify you typed it in correctly</p>.
- <form method="post">
- {% csrf_token %}
- {{ form.as_p }}
- <button class= "btn btn-success" type="submit">Submit</button>
- </form>
+ <p>Please enter your new password twice so we can verify you typed it in correctly</p>.
+ <form method="post">
+ {% csrf_token %}
+ {{ form.as_p }}
+ <button class="btn btn-success" type="submit">Submit</button>
+ </form>
{% else %}
- <p>This reset link is no longer valid!</p>
+ <p>This reset link is no longer valid!</p>
{% endif %}
- </div>
+</div>
{% endblock %} \ No newline at end of file
diff --git a/fossee_manim/templates/registration/password_reset_done.html b/fossee_manim/templates/registration/password_reset_done.html
index e91ff73..c1f0e84 100644
--- a/fossee_manim/templates/registration/password_reset_done.html
+++ b/fossee_manim/templates/registration/password_reset_done.html
@@ -1,14 +1,14 @@
{% extends "registration/base.html" %}
{% block title %}
- Password reset successful
+Password reset successful
{% endblock %}
{% block content %}
- <div class="container">
+<div class="container">
<br>
- <h3>Instruction for setting new password has been mailed
- to your registered email address
+ <h3>Instruction for setting new password has been mailed
+ to your registered email address
</h3>
- </div>
+</div>
{% endblock %} \ No newline at end of file
diff --git a/fossee_manim/templates/registration/password_reset_form.html b/fossee_manim/templates/registration/password_reset_form.html
index 5bf049f..71507b2 100644
--- a/fossee_manim/templates/registration/password_reset_form.html
+++ b/fossee_manim/templates/registration/password_reset_form.html
@@ -1,21 +1,21 @@
{% extends "registration/base.html" %}
-{% block title %}
- Forgot Password
+{% block title %}
+Forgot Password
{% endblock %}
{% block content %}
<br>
<br>
<div class="container">
-<h3>Email will be send to the registered email address</h3>
-<form action="" method="post">
- {% csrf_token %}
- <table class="table table-bordered">
- {{ form }}
- </table>
- <button class="btn btn-success btn-sm" type="submit">Request</button>
- <a class="btn" href="{{URL_ROOT}}/login/">Cancel</a>
-</form>
+ <h3>Email will be send to the registered email address</h3>
+ <form action="" method="post">
+ {% csrf_token %}
+ <table class="table table-bordered">
+ {{ form }}
+ </table>
+ <button class="btn btn-success btn-sm" type="submit">Request</button>
+ <a class="btn" href="{{URL_ROOT}}/login/">Cancel</a>
+ </form>
</div>
{% endblock content %} \ No newline at end of file