first commit

This commit is contained in:
ayxan
2022-08-24 17:37:03 +04:00
commit f9930c2476
53 changed files with 785 additions and 0 deletions

View 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 %}

View 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 %}

View 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 %}

View 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 %}

View 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 %}