mirror of
https://github.com/leaders-of-digital-9-task/backend.git
synced 2024-11-22 01:16:33 +03:00
removed unused templates
This commit is contained in:
parent
635b2ea571
commit
91b99c35c5
|
@ -1,9 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
|
|
||||||
{% block title %}Forbidden (403){% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>Forbidden (403)</h1>
|
|
||||||
|
|
||||||
<p>{% if exception %}{{ exception }}{% else %}You're not allowed to access this page.{% endif %}</p>
|
|
||||||
{% endblock content %}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
|
|
||||||
{% block title %}Page not found{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>Page not found</h1>
|
|
||||||
|
|
||||||
<p>{% if exception %}{{ exception }}{% else %}This is not the page you were looking for.{% endif %}</p>
|
|
||||||
{% endblock content %}
|
|
|
@ -1,11 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
|
|
||||||
{% block title %}Server Error{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>Ooops!!! 500</h1>
|
|
||||||
|
|
||||||
<h3>Looks like something went wrong!</h3>
|
|
||||||
|
|
||||||
<p>We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing.</p>
|
|
||||||
{% endblock content %}
|
|
|
@ -1,11 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Account Inactive" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Account Inactive" %}</h1>
|
|
||||||
|
|
||||||
<p>{% translate "This account is inactive." %}</p>
|
|
||||||
{% endblock %}
|
|
|
@ -1,10 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
{% block title %}{% block head_title %}{% endblock head_title %}{% endblock title %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-6 offset-md-3">
|
|
||||||
{% block inner %}{% endblock %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
|
@ -1,78 +0,0 @@
|
||||||
|
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Account" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "E-mail Addresses" %}</h1>
|
|
||||||
|
|
||||||
{% if user.emailaddress_set.all %}
|
|
||||||
<p>{% translate 'The following e-mail addresses are associated with your account:' %}</p>
|
|
||||||
|
|
||||||
<form action="{% url 'account_email' %}" class="email_list" method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
<fieldset class="blockLabels">
|
|
||||||
|
|
||||||
{% for emailaddress in user.emailaddress_set.all %}
|
|
||||||
<div class="radio">
|
|
||||||
<label for="email_radio_{{forloop.counter}}" class="{% if emailaddress.primary %}primary_email{%endif%}">
|
|
||||||
|
|
||||||
<input id="email_radio_{{forloop.counter}}" type="radio" name="email" {% if emailaddress.primary or user.emailaddress_set.count == 1 %}checked="checked"{%endif %} value="{{emailaddress.email}}"/>
|
|
||||||
|
|
||||||
{{ emailaddress.email }}
|
|
||||||
{% if emailaddress.verified %}
|
|
||||||
<span class="verified">{% translate "Verified" %}</span>
|
|
||||||
{% else %}
|
|
||||||
<span class="unverified">{% translate "Unverified" %}</span>
|
|
||||||
{% endif %}
|
|
||||||
{% if emailaddress.primary %}<span class="primary">{% translate "Primary" %}</span>{% endif %}
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
<div class="form-group">
|
|
||||||
<button class="secondaryAction btn btn-primary" type="submit" name="action_primary" >{% translate 'Make Primary' %}</button>
|
|
||||||
<button class="secondaryAction btn btn-primary" type="submit" name="action_send" >{% translate 'Re-send Verification' %}</button>
|
|
||||||
<button class="primaryAction btn btn-primary" type="submit" name="action_remove" >{% translate 'Remove' %}</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
<p><strong>{% translate 'Warning:'%}</strong> {% translate "You currently do not have any e-mail address set up. You should really add an e-mail address so you can receive notifications, reset your password, etc." %}</p>
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
|
|
||||||
<h2>{% translate "Add E-mail Address" %}</h2>
|
|
||||||
|
|
||||||
<form method="post" action="{% url 'account_email' %}" class="add_email">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ form|crispy }}
|
|
||||||
<button class="btn btn-primary" name="action_add" type="submit">{% translate "Add E-mail" %}</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{% block inline_javascript %}
|
|
||||||
{{ block.super }}
|
|
||||||
<script type="text/javascript">
|
|
||||||
window.addEventListener('DOMContentLoaded',function() {
|
|
||||||
const message = "{% translate 'Do you really want to remove the selected e-mail address?' %}";
|
|
||||||
const actions = document.getElementsByName('action_remove');
|
|
||||||
if (actions.length) {
|
|
||||||
actions[0].addEventListener("click",function(e) {
|
|
||||||
if (!confirm(message)) {
|
|
||||||
e.preventDefault();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Array.from(document.getElementsByClassName('form-group')).forEach(x => x.classList.remove('row'));
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
{% endblock %}
|
|
|
@ -1,31 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% load account %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Confirm E-mail Address" %}{% endblock %}
|
|
||||||
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Confirm E-mail Address" %}</h1>
|
|
||||||
|
|
||||||
{% if confirmation %}
|
|
||||||
|
|
||||||
{% user_display confirmation.email_address.user as user_display %}
|
|
||||||
|
|
||||||
<p>{% blocktranslate with confirmation.email_address.email as email %}Please confirm that <a href="mailto:{{ email }}">{{ email }}</a> is an e-mail address for user {{ user_display }}.{% endblocktranslate %}</p>
|
|
||||||
|
|
||||||
<form method="post" action="{% url 'account_confirm_email' confirmation.key %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
<button class="btn btn-primary" type="submit">{% translate 'Confirm' %}</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
|
|
||||||
{% url 'account_email' as email_url %}
|
|
||||||
|
|
||||||
<p>{% blocktranslate %}This e-mail confirmation link expired or is invalid. Please <a href="{{ email_url }}">issue a new e-mail confirmation request</a>.{% endblocktranslate %}</p>
|
|
||||||
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% endblock %}
|
|
|
@ -1,59 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% load account socialaccount %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Sign In" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
|
|
||||||
<h1>{% translate "Sign In" %}</h1>
|
|
||||||
|
|
||||||
{% get_providers as socialaccount_providers %}
|
|
||||||
|
|
||||||
{% if socialaccount_providers %}
|
|
||||||
<p>
|
|
||||||
{% translate "Please sign in with one of your existing third party accounts:" %}
|
|
||||||
{% if ACCOUNT_ALLOW_REGISTRATION %}
|
|
||||||
{% blocktranslate trimmed %}
|
|
||||||
Or, <a href="{{ signup_url }}">sign up</a>
|
|
||||||
for a {{ site_name }} account and sign in below:
|
|
||||||
{% endblocktranslate %}
|
|
||||||
{% endif %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<div class="socialaccount_ballot">
|
|
||||||
|
|
||||||
<ul class="socialaccount_providers">
|
|
||||||
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<div class="login-or">{% translate "or" %}</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% include "socialaccount/snippets/login_extra.html" %}
|
|
||||||
|
|
||||||
{% else %}
|
|
||||||
{% if ACCOUNT_ALLOW_REGISTRATION %}
|
|
||||||
<p>
|
|
||||||
{% blocktranslate trimmed %}
|
|
||||||
If you have not created an account yet, then please
|
|
||||||
<a href="{{ signup_url }}">sign up</a> first.
|
|
||||||
{% endblocktranslate %}
|
|
||||||
</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<form class="login" method="POST" action="{% url 'account_login' %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ form|crispy }}
|
|
||||||
{% if redirect_field_value %}
|
|
||||||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
|
|
||||||
{% endif %}
|
|
||||||
<a class="button secondaryAction" href="{% url 'account_reset_password' %}">{% translate "Forgot Password?" %}</a>
|
|
||||||
<button class="primaryAction btn btn-primary" type="submit">{% translate "Sign In" %}</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
|
@ -1,19 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Sign Out" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Sign Out" %}</h1>
|
|
||||||
|
|
||||||
<p>{% translate 'Are you sure you want to sign out?' %}</p>
|
|
||||||
|
|
||||||
<form method="post" action="{% url 'account_logout' %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
{% if redirect_field_value %}
|
|
||||||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/>
|
|
||||||
{% endif %}
|
|
||||||
<button class="btn btn-danger" type="submit">{% translate 'Sign Out' %}</button>
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
|
@ -1,16 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Change Password" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Change Password" %}</h1>
|
|
||||||
|
|
||||||
<form method="POST" action="{% url 'account_change_password' %}" class="password_change">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ form|crispy }}
|
|
||||||
<button class="btn btn-primary" type="submit" name="action">{% translate "Change Password" %}</button>
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
|
@ -1,25 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% load account %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Password Reset" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
|
|
||||||
<h1>{% translate "Password Reset" %}</h1>
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
{% include "account/snippets/already_logged_in.html" %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<p>{% translate "Forgotten your password? Enter your e-mail address below, and we'll send you an e-mail allowing you to reset it." %}</p>
|
|
||||||
|
|
||||||
<form method="POST" action="{% url 'account_reset_password' %}" class="password_reset">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ form|crispy }}
|
|
||||||
<input class="btn btn-primary" type="submit" value="{% translate 'Reset My Password' %}" />
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<p>{% blocktranslate %}Please contact us if you have any trouble resetting your password.{% endblocktranslate %}</p>
|
|
||||||
{% endblock %}
|
|
|
@ -1,16 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% load account %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Password Reset" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Password Reset" %}</h1>
|
|
||||||
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
{% include "account/snippets/already_logged_in.html" %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
<p>{% blocktranslate %}We have sent you an e-mail. Please contact us if you do not receive it within a few minutes.{% endblocktranslate %}</p>
|
|
||||||
{% endblock %}
|
|
|
@ -1,24 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
{% block head_title %}{% translate "Change Password" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% if token_fail %}{% translate "Bad Token" %}{% else %}{% translate "Change Password" %}{% endif %}</h1>
|
|
||||||
|
|
||||||
{% if token_fail %}
|
|
||||||
{% url 'account_reset_password' as passwd_reset_url %}
|
|
||||||
<p>{% blocktranslate %}The password reset link was invalid, possibly because it has already been used. Please request a <a href="{{ passwd_reset_url }}">new password reset</a>.{% endblocktranslate %}</p>
|
|
||||||
{% else %}
|
|
||||||
{% if form %}
|
|
||||||
<form method="POST" action=".">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ form|crispy }}
|
|
||||||
<input class="btn btn-primary" type="submit" name="action" value="{% translate 'change password' %}"/>
|
|
||||||
</form>
|
|
||||||
{% else %}
|
|
||||||
<p>{% translate 'Your password is now changed.' %}</p>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
|
@ -1,9 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% block head_title %}{% translate "Change Password" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Change Password" %}</h1>
|
|
||||||
<p>{% translate 'Your password is now changed.' %}</p>
|
|
||||||
{% endblock %}
|
|
|
@ -1,16 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Set Password" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Set Password" %}</h1>
|
|
||||||
|
|
||||||
<form method="POST" action="{% url 'account_set_password' %}" class="password_set">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ form|crispy }}
|
|
||||||
<input class="btn btn-primary" type="submit" name="action" value="{% translate 'Set Password' %}"/>
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
|
@ -1,22 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Signup" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Sign Up" %}</h1>
|
|
||||||
|
|
||||||
<p>{% blocktranslate %}Already have an account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktranslate %}</p>
|
|
||||||
|
|
||||||
<form class="signup" id="signup_form" method="post" action="{% url 'account_signup' %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ form|crispy }}
|
|
||||||
{% if redirect_field_value %}
|
|
||||||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
|
|
||||||
{% endif %}
|
|
||||||
<button class="btn btn-primary" type="submit">{% translate "Sign Up" %} »</button>
|
|
||||||
</form>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
|
@ -1,11 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Sign Up Closed" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Sign Up Closed" %}</h1>
|
|
||||||
|
|
||||||
<p>{% translate "We are sorry, but the sign up is currently closed." %}</p>
|
|
||||||
{% endblock %}
|
|
|
@ -1,12 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Verify Your E-mail Address" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Verify Your E-mail Address" %}</h1>
|
|
||||||
|
|
||||||
<p>{% blocktranslate %}We have sent an e-mail to you for verification. Follow the link provided to finalize the signup process. Please contact us if you do not receive it within a few minutes.{% endblocktranslate %}</p>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
|
@ -1,21 +0,0 @@
|
||||||
{% extends "account/base.html" %}
|
|
||||||
|
|
||||||
{% load i18n %}
|
|
||||||
|
|
||||||
{% block head_title %}{% translate "Verify Your E-mail Address" %}{% endblock %}
|
|
||||||
|
|
||||||
{% block inner %}
|
|
||||||
<h1>{% translate "Verify Your E-mail Address" %}</h1>
|
|
||||||
|
|
||||||
{% url 'account_email' as email_url %}
|
|
||||||
|
|
||||||
<p>{% blocktranslate %}This part of the site requires us to verify that
|
|
||||||
you are who you claim to be. For this purpose, we require that you
|
|
||||||
verify ownership of your e-mail address. {% endblocktranslate %}</p>
|
|
||||||
|
|
||||||
<p>{% blocktranslate %}We have sent an e-mail to you for
|
|
||||||
verification. Please click on the link inside this e-mail. Please
|
|
||||||
contact us if you do not receive it within a few minutes.{% endblocktranslate %}</p>
|
|
||||||
|
|
||||||
<p>{% blocktranslate %}<strong>Note:</strong> you can still <a href="{{ email_url }}">change your e-mail address</a>.{% endblocktranslate %}</p>
|
|
||||||
{% endblock %}
|
|
|
@ -1,112 +0,0 @@
|
||||||
{% load static i18n %}<!DOCTYPE html>
|
|
||||||
{% get_current_language as LANGUAGE_CODE %}
|
|
||||||
<html lang="{{ LANGUAGE_CODE }}">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
|
||||||
<title>{% block title %}Image markuper{% endblock title %}</title>
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="Backend for ЛЦТ 9 track">
|
|
||||||
<meta name="author" content="sanspie">
|
|
||||||
|
|
||||||
<link rel="icon" href="{% static 'images/favicons/favicon.ico' %}">
|
|
||||||
|
|
||||||
{% block css %}
|
|
||||||
<!-- Latest compiled and minified Bootstrap CSS -->
|
|
||||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/css/bootstrap.min.css" integrity="sha512-GQGU0fMMi238uA+a/bdWJfpUGKUkBdgfFdgBm72SUQ6BeyWjoY/ton0tEjH+OSH9iP4Dfh+7HM0I9f5eR0L/4w==" crossorigin="anonymous" referrerpolicy="no-referrer" />
|
|
||||||
<!-- Your stuff: Third-party CSS libraries go here -->
|
|
||||||
|
|
||||||
<!-- This file stores project-specific CSS -->
|
|
||||||
<link href="{% static 'css/project.css' %}" rel="stylesheet">
|
|
||||||
{% endblock %}
|
|
||||||
<!-- Le javascript
|
|
||||||
================================================== -->
|
|
||||||
{# Placed at the top of the document so pages load faster with defer #}
|
|
||||||
{% block javascript %}
|
|
||||||
<!-- Bootstrap JS -->
|
|
||||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.1.3/js/bootstrap.min.js" integrity="sha512-OvBgP9A2JBgiRad/mM36mkzXSXaJE9BEIENnVEmeZdITvwT09xnxLtT4twkCa8m/loMbPHsvPl0T8lRGVBwjlQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
|
||||||
<!-- Your stuff: Third-party javascript libraries go here -->
|
|
||||||
|
|
||||||
<!-- place project specific Javascript in this file -->
|
|
||||||
<script defer src="{% static 'js/project.js' %}"></script>
|
|
||||||
|
|
||||||
{% endblock javascript %}
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="mb-1">
|
|
||||||
<nav class="navbar navbar-expand-md navbar-light bg-light">
|
|
||||||
<div class="container-fluid">
|
|
||||||
<button class="navbar-toggler navbar-toggler-right" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
|
||||||
<span class="navbar-toggler-icon"></span>
|
|
||||||
</button>
|
|
||||||
<a class="navbar-brand" href="{% url 'home' %}">Image markuper</a>
|
|
||||||
|
|
||||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
||||||
<ul class="navbar-nav mr-auto">
|
|
||||||
<li class="nav-item active">
|
|
||||||
<a class="nav-link" href="{% url 'home' %}">Home <span class="visually-hidden">(current)</span></a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link" href="{% url 'about' %}">About</a>
|
|
||||||
</li>
|
|
||||||
{% if request.user.is_authenticated %}
|
|
||||||
<li class="nav-item">
|
|
||||||
{# URL provided by django-allauth/account/urls.py #}
|
|
||||||
<a class="nav-link" href="{% url 'users:detail' request.user.username %}">{% translate "My Profile" %}</a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item">
|
|
||||||
{# URL provided by django-allauth/account/urls.py #}
|
|
||||||
<a class="nav-link" href="{% url 'account_logout' %}">{% translate "Sign Out" %}</a>
|
|
||||||
</li>
|
|
||||||
{% else %}
|
|
||||||
{% if ACCOUNT_ALLOW_REGISTRATION %}
|
|
||||||
<li class="nav-item">
|
|
||||||
{# URL provided by django-allauth/account/urls.py #}
|
|
||||||
<a id="sign-up-link" class="nav-link" href="{% url 'account_signup' %}">{% translate "Sign Up" %}</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
<li class="nav-item">
|
|
||||||
{# URL provided by django-allauth/account/urls.py #}
|
|
||||||
<a id="log-in-link" class="nav-link" href="{% url 'account_login' %}">{% translate "Sign In" %}</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
{% if messages %}
|
|
||||||
{% for message in messages %}
|
|
||||||
<div class="alert alert-dismissible {% if message.tags %}alert-{{ message.tags }}{% endif %}">
|
|
||||||
{{ message }}
|
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<p>Use this document as a way to quick start any new project.</p>
|
|
||||||
{% endblock content %}
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
{% block modal %}{% endblock modal %}
|
|
||||||
|
|
||||||
{% block inline_javascript %}
|
|
||||||
{% comment %}
|
|
||||||
Script tags with only code, no src (defer by default). To run
|
|
||||||
with a "defer" so that you run inline code:
|
|
||||||
<script>
|
|
||||||
window.addEventListener('DOMContentLoaded', () => {/* Run whatever you want */});
|
|
||||||
</script>
|
|
||||||
{% endcomment %}
|
|
||||||
{% endblock inline_javascript %}
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
|
@ -1 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
|
@ -1,34 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
{% load static %}
|
|
||||||
|
|
||||||
{% block title %}User: {{ object.username }}{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-sm-12">
|
|
||||||
|
|
||||||
<h2>{{ object.username }}</h2>
|
|
||||||
{% if object.name %}
|
|
||||||
<p>{{ object.name }}</p>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if object == request.user %}
|
|
||||||
<!-- Action buttons -->
|
|
||||||
<div class="row">
|
|
||||||
|
|
||||||
<div class="col-sm-12">
|
|
||||||
<a class="btn btn-primary" href="{% url 'users:update' %}" role="button">My Info</a>
|
|
||||||
<a class="btn btn-primary" href="{% url 'account_email' %}" role="button">E-Mail</a>
|
|
||||||
<!-- Your Stuff: Custom user template urls -->
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- End Action buttons -->
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{% endblock content %}
|
|
|
@ -1,17 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
{% load crispy_forms_tags %}
|
|
||||||
|
|
||||||
{% block title %}{{ user.username }}{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<h1>{{ user.username }}</h1>
|
|
||||||
<form class="form-horizontal" method="post" action="{% url 'users:update' %}">
|
|
||||||
{% csrf_token %}
|
|
||||||
{{ form|crispy }}
|
|
||||||
<div class="control-group">
|
|
||||||
<div class="controls">
|
|
||||||
<button type="submit" class="btn btn-primary">Update</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% endblock %}
|
|
Loading…
Reference in New Issue
Block a user