mirror of
https://github.com/chibicitiberiu/ytsm.git
synced 2024-02-24 05:43:31 +00:00
Added docker support
This commit is contained in:
27
app/YtManagerApp/templates/registration/logged_out.html
Normal file
27
app/YtManagerApp/templates/registration/logged_out.html
Normal file
@ -0,0 +1,27 @@
|
||||
{% extends 'YtManagerApp/master_default.html' %}
|
||||
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
|
||||
window.setTimeout(function(){
|
||||
window.location.href = "/";
|
||||
}, 3000);
|
||||
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="alert-card mx-auto">
|
||||
|
||||
<div class="alert alert-info" role="alert">
|
||||
You have been logged out!
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
44
app/YtManagerApp/templates/registration/login.html
Normal file
44
app/YtManagerApp/templates/registration/login.html
Normal file
@ -0,0 +1,44 @@
|
||||
{% extends 'YtManagerApp/master_default.html' %}
|
||||
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{% static 'YtManagerApp/css/login.css' %}">
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="login-card mx-auto">
|
||||
|
||||
{% if next %}
|
||||
{% if user.is_authenticated %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
Your account doesn't have access to this page. To proceed,
|
||||
please login with an account that has access.
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
Please login or register to see this page.
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<h5>Login</h5>
|
||||
|
||||
<form method="post" action="{% url 'login' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ next }}"/>
|
||||
|
||||
{{ form | crispy }}
|
||||
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="submit" value="login"/>
|
||||
|
||||
<a class="ml-2" href="{% url 'password_reset' %}">Recover password</a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,26 @@
|
||||
{% extends 'YtManagerApp/master_default.html' %}
|
||||
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
|
||||
window.setTimeout(function(){
|
||||
window.location.href = "/";
|
||||
}, 5000);
|
||||
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="alert-card mx-auto">
|
||||
|
||||
<div class="alert alert-info" role="alert">
|
||||
The password has been changed!
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,33 @@
|
||||
{% extends 'YtManagerApp/master_default.html' %}
|
||||
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{% static 'YtManagerApp/css/login.css' %}">
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
{% if validlink %}
|
||||
<div class="login-card mx-auto">
|
||||
<h5>Confirm password reset</h5>
|
||||
|
||||
<form method="post" action="">
|
||||
{% csrf_token %}
|
||||
{{ form | crispy }}
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="submit" value="change password"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert-card mx-auto">
|
||||
<div class="alert alert-danger" role="alert">
|
||||
The password reset link was invalid, possibly because it has already been used. Please request a new password reset.
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,28 @@
|
||||
{% extends 'YtManagerApp/master_default.html' %}
|
||||
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
|
||||
window.setTimeout(function(){
|
||||
window.location.href = "/";
|
||||
}, 10000);
|
||||
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="alert-card mx-auto">
|
||||
|
||||
<div class="alert alert-info" role="alert">
|
||||
<p>We've emailed you instructions for resetting your password.</p>
|
||||
<p>If they haven't arrived in a few minutes, check your spam folder.</p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,2 @@
|
||||
Someone asked for password reset for email {{ email }}. Follow the link below:
|
||||
{{ protocol}}://{{ domain }}{% url 'password_reset_confirm' uidb64=uid token=token %}
|
@ -0,0 +1,45 @@
|
||||
{% extends 'YtManagerApp/master_default.html' %}
|
||||
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{% static 'YtManagerApp/css/login.css' %}">
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="login-card mx-auto">
|
||||
|
||||
{% if next %}
|
||||
{% if user.is_authenticated %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
Your account doesn't have access to this page. To proceed,
|
||||
please login with an account that has access.
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
Please login or register to see this page.
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<h5>Password reset</h5>
|
||||
|
||||
<form method="post" action="{% url 'password_reset' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ next }}"/>
|
||||
|
||||
{{ form | crispy }}
|
||||
|
||||
<p>If there is any account associated with the given e-mail address,
|
||||
an e-mail will be sent containing the password reset link.</p>
|
||||
|
||||
<div class="form-group">
|
||||
<input class="btn btn-primary" type="submit" value="reset"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
38
app/YtManagerApp/templates/registration/register.html
Normal file
38
app/YtManagerApp/templates/registration/register.html
Normal file
@ -0,0 +1,38 @@
|
||||
{% extends 'YtManagerApp/master_default.html' %}
|
||||
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{% static 'YtManagerApp/css/login.css' %}">
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="register-card mx-auto">
|
||||
|
||||
{% if next %}
|
||||
{% if user.is_authenticated %}
|
||||
<div class="alert alert-warning" role="alert">
|
||||
Your account doesn't have access to this page. To proceed,
|
||||
please login with an account that has access.
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
Please login or register to see this page.
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if is_first_user %}
|
||||
<div class="alert alert-info" role="alert">
|
||||
Since this is the first user to register, it will be the system administrator.
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h5>Register</h5>
|
||||
|
||||
{% crispy form %}
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
27
app/YtManagerApp/templates/registration/register_done.html
Normal file
27
app/YtManagerApp/templates/registration/register_done.html
Normal file
@ -0,0 +1,27 @@
|
||||
{% extends 'YtManagerApp/master_default.html' %}
|
||||
|
||||
{% load static %}
|
||||
{% load crispy_forms_tags %}
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
|
||||
window.setTimeout(function(){
|
||||
window.location.href = "/";
|
||||
}, 3000);
|
||||
|
||||
</script>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
||||
<div class="alert-card mx-auto">
|
||||
|
||||
<div class="alert alert-info" role="alert">
|
||||
You have registered successfully!
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
Reference in New Issue
Block a user