mirror of
https://github.com/aykhans/series-robot-web.git
synced 2025-09-10 00:00:43 +00:00
first commit
This commit is contained in:
23
src/account/templates/change_password.html
Normal file
23
src/account/templates/change_password.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
|
||||
{% block title %} Change Password {% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<form enctype="multipart/form-data" method="POST">
|
||||
{% csrf_token %}
|
||||
{{form.media}}
|
||||
{{form|crispy}}
|
||||
<style>
|
||||
.btn:hover {
|
||||
background: #fff;
|
||||
color: #0069D9;
|
||||
}
|
||||
</style>
|
||||
<input type="submit" value="Change Password" class="btn btn-primary mt-3 mb-5">
|
||||
</form>
|
||||
|
||||
{% endblock content %}
|
||||
|
24
src/account/templates/login.html
Normal file
24
src/account/templates/login.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
|
||||
{% block title %} Login {% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
{% include 'components/message.html' %}
|
||||
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
{{form|crispy}}
|
||||
<style>
|
||||
.btn:hover {
|
||||
background: #fff;
|
||||
color: #0069D9;
|
||||
}
|
||||
</style>
|
||||
<input type="submit" value="Login" class="btn btn-primary mt-3 mb-3">
|
||||
<p class="mb-5">No account? <a href="{% url 'register' %}">Signup</a></p>
|
||||
</form>
|
||||
|
||||
{% endblock content %}
|
||||
|
24
src/account/templates/profile_detail.html
Normal file
24
src/account/templates/profile_detail.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %} Profile {% endblock title %}
|
||||
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="card mb-3">
|
||||
<div class="card-body">
|
||||
<h5>Username: <small>{{profile.username}}</small></h5>
|
||||
<h5>Email: <small>{{profile.email|default:""}}</small></h5>
|
||||
<h5>IMDB API Key: <small>{{profile.imdb_api_key}}</small></h5>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<a href="/account/profile-editing" style="color: inherit; text-decoration: none;">
|
||||
<button type="button" class="btn btn-primary">Edit Profile</button>
|
||||
</a>
|
||||
<a href="/account/change-password" style="color: inherit; text-decoration: none;">
|
||||
<button type="button" class="btn btn-primary">Change Password</button>
|
||||
</a>
|
||||
|
||||
{% endblock content %}
|
23
src/account/templates/profile_editing.html
Normal file
23
src/account/templates/profile_editing.html
Normal file
@@ -0,0 +1,23 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
|
||||
{% block title %} Profil Güncəllə {% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<form enctype="multipart/form-data" method="POST">
|
||||
{% csrf_token %}
|
||||
{{form.media}}
|
||||
{{form|crispy}}
|
||||
<style>
|
||||
.btn:hover {
|
||||
background: #fff;
|
||||
color: #0069D9;
|
||||
}
|
||||
</style>
|
||||
<input type="submit" value="Update Profile" class="btn btn-primary mt-3 mb-5">
|
||||
</form>
|
||||
|
||||
{% endblock content %}
|
||||
|
25
src/account/templates/register.html
Normal file
25
src/account/templates/register.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
|
||||
{% block title %} Signup {% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
{{form.media}}
|
||||
{{form|crispy}}
|
||||
<a href="https://imdb-api.com/Identity/Account/Register">Get API Key</a><br>
|
||||
<style>
|
||||
.btn:hover {
|
||||
background: #fff;
|
||||
color: #0069D9;
|
||||
}
|
||||
</style>
|
||||
<input type="submit" value="Signup" class="btn btn-primary mt-3 mb-3">
|
||||
<p class="mb-5">Already have an account? <a href="{% url 'login' %}">Login</a></p>
|
||||
</form>
|
||||
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user