✨ Added some eye candy ✨
This commit is contained in:
parent
3f21dd295c
commit
4b69cd0251
|
@ -133,3 +133,5 @@ MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
|
||||||
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
|
||||||
|
|
||||||
AUTH_USER_MODEL = 'users.User'
|
AUTH_USER_MODEL = 'users.User'
|
||||||
|
|
||||||
|
LOGIN_REDIRECT_URL = '/'
|
||||||
|
|
|
@ -18,9 +18,15 @@
|
||||||
<a class="nav-item">
|
<a class="nav-item">
|
||||||
<img src="{% static "images/logo.png" %}"/>
|
<img src="{% static "images/logo.png" %}"/>
|
||||||
</a>
|
</a>
|
||||||
<a class="nav-item is-tab is-hidden-mobile">Roms</a>
|
<a class="nav-item is-tab is-hidden-mobile {% block nav_rom_class %}{% endblock %}"
|
||||||
|
href="">
|
||||||
|
Roms
|
||||||
|
</a>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<a class="nav-item is-tab is-hidden-mobile">Rom Hochladen</a>
|
<a class="nav-item is-tab is-hidden-mobile {% block nav_rom_upload_class %}{% endblock %}"
|
||||||
|
href="">
|
||||||
|
Rom Hochladen
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<span class="nav-toggle">
|
<span class="nav-toggle">
|
||||||
|
@ -30,17 +36,35 @@
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="nav-right nav-menu">
|
<div class="nav-right nav-menu">
|
||||||
<a class="nav-item is-tab is-hidden-tablet is-active">Roms</a>
|
<a class="nav-item is-tab is-hidden-tablet {% block nav_mobile_rom_class %}{% endblock %}"
|
||||||
|
href="">
|
||||||
|
Roms
|
||||||
|
</a>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated %}
|
||||||
<a class="nav-item is-tab is-hidden-tablet">Rom Hochladen</a>
|
<a class="nav-item is-tab is-hidden-tablet {% block nav_mobile_rom_upload_class %}{% endblock %}"
|
||||||
|
href="">
|
||||||
|
Rom Hochladen
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if not user.is_authenticated %}
|
{% if not user.is_authenticated %}
|
||||||
<a class="nav-item is-tab">Registrieren</a>
|
<a class="nav-item is-tab {% block nav_signup_class %}{% endblock %}"
|
||||||
<a class="nav-item is-tab">Login</a>
|
href="{% url 'signup' %}">
|
||||||
|
Registrieren
|
||||||
|
</a>
|
||||||
|
<a class="nav-item is-tab {% block nav_login_class %}{% endblock %}"
|
||||||
|
href="{% url 'login' %}">
|
||||||
|
Login
|
||||||
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a class="nav-item is-tab">Profil</a>
|
<a class="nav-item is-tab {% block nav_profile_class %}{% endblock %}"
|
||||||
<a class="nav-item is-tab">Logout</a>
|
href="{% url 'user_update' user_id=user.pk %}">
|
||||||
|
Profil
|
||||||
|
</a>
|
||||||
|
<a class="nav-item is-tab"
|
||||||
|
href="{% url 'logout' %}">
|
||||||
|
Logout
|
||||||
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}Registerierung abgeschlossen{% endblock %}
|
{% block title %}Registerierung abgeschlossen{% endblock %}
|
||||||
|
{% block nav_signup_class %}is-active{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="rom-overview">
|
<div class="rom-overview">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}Einloggen{% endblock %}
|
{% block title %}Einloggen{% endblock %}
|
||||||
|
{% block nav_login_class %}is-active{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="rom-overview">
|
<div class="rom-overview">
|
||||||
|
@ -12,6 +13,16 @@
|
||||||
Du bist doch schon eingeloggt!?<br/>
|
Du bist doch schon eingeloggt!?<br/>
|
||||||
Meinten sie: <a href="{% url 'logout' %}">ausloggen</a> ?
|
Meinten sie: <a href="{% url 'logout' %}">ausloggen</a> ?
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if form.non_field_errors %}
|
||||||
|
<div class="message is-danger">
|
||||||
|
<div class="message-header">
|
||||||
|
<strong>Nope!</strong>
|
||||||
|
</div>
|
||||||
|
<div class="message-body">
|
||||||
|
{{ form.non_field_errors }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,16 @@
|
||||||
Und hast trotzdem dein Passwort vergessen?<br/>
|
Und hast trotzdem dein Passwort vergessen?<br/>
|
||||||
Von mir aus, dann <a href="{% url 'logout' %}">log dich erstm aus</a>.
|
Von mir aus, dann <a href="{% url 'logout' %}">log dich erstm aus</a>.
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if form.non_field_errors %}
|
||||||
|
<div class="message is-danger">
|
||||||
|
<div class="message-header">
|
||||||
|
<strong>Nope!</strong>
|
||||||
|
</div>
|
||||||
|
<div class="message-body">
|
||||||
|
{{ form.non_field_errors }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,16 @@
|
||||||
Wenn ja dann geh nach hause, ansonsten erstmal
|
Wenn ja dann geh nach hause, ansonsten erstmal
|
||||||
<a href="{% url 'logout' %}">ausloggen</a></br>
|
<a href="{% url 'logout' %}">ausloggen</a></br>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if form.non_field_errors %}
|
||||||
|
<div class="message is-danger">
|
||||||
|
<div class="message-header">
|
||||||
|
<strong>Nope!</strong>
|
||||||
|
</div>
|
||||||
|
<div class="message-body">
|
||||||
|
{{ form.non_field_errors }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}Registerierung bestätigen{% endblock %}
|
{% block title %}Registerierung bestätigen{% endblock %}
|
||||||
|
{% block nav_signup_class %}is-active{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="rom-overview">
|
<div class="rom-overview">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}Registrieren{% endblock %}
|
{% block title %}Registrieren{% endblock %}
|
||||||
|
{% block nav_signup_class %}is-active{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="rom-overview">
|
<div class="rom-overview">
|
||||||
|
@ -13,6 +14,16 @@
|
||||||
Du bist eingeloggt und willst du dich registrieren.<br/>
|
Du bist eingeloggt und willst du dich registrieren.<br/>
|
||||||
Geh heim du bist besoffen!
|
Geh heim du bist besoffen!
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if form.non_field_errors %}
|
||||||
|
<div class="message is-danger">
|
||||||
|
<div class="message-header">
|
||||||
|
<strong>Nope!</strong>
|
||||||
|
</div>
|
||||||
|
<div class="message-body">
|
||||||
|
{{ form.non_field_errors }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
|
|
|
@ -1,181 +0,0 @@
|
||||||
{% extends "base.html" %}
|
|
||||||
|
|
||||||
{% block title %}Profil bearbeiten{% endblock %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
<div class="rom-overview">
|
|
||||||
<div class="columns">
|
|
||||||
<div class="column">
|
|
||||||
<div class="box">
|
|
||||||
<h1 class="title is-1">Profil bearbeiten</h1>
|
|
||||||
<form method="post">
|
|
||||||
{% csrf_token %}
|
|
||||||
|
|
||||||
<div class="field is-horizontal">
|
|
||||||
<div class="field-label is-normal">
|
|
||||||
<label class="label" for="{{form.email.id_for_label}}">{{form.email.label}}</label>
|
|
||||||
</div>
|
|
||||||
<div class="field-body">
|
|
||||||
<div class="field is-narrow">
|
|
||||||
<div class="control has-icons-left has-icons-right">
|
|
||||||
<input class="input {% if form.email.errors %}is-danger{% endif %} is-primary"
|
|
||||||
type="text" name="{{form.email.html_name}}"
|
|
||||||
id="{{form.email.id_for_label}}" value="{{form.email.value|default_if_none:''}}" />
|
|
||||||
<span class="icon is-small is-left">
|
|
||||||
<i class="fa fa-envelope"></i>
|
|
||||||
</span>
|
|
||||||
<span class="icon is-small is-right">
|
|
||||||
{% if form.email.errors %}
|
|
||||||
<i class="fa fa-warning"></i>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<p class="help is-danger">
|
|
||||||
{{form.email.errors.as_text}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field is-horizontal">
|
|
||||||
<div class="field-label is-normal">
|
|
||||||
<label class="label" for="{{form.current_password.id_for_label}}">{{form.current_password.label}}</label>
|
|
||||||
</div>
|
|
||||||
<div class="field-body">
|
|
||||||
<div class="field is-narrow">
|
|
||||||
<div class="control has-icons-left has-icons-right">
|
|
||||||
<input class="input {% if form.current_password.errors %}is-danger{% endif %} is-primary"
|
|
||||||
type="password" name="{{form.current_password.html_name}}"
|
|
||||||
id="{{form.current_password.id_for_label}}" value="{{form.current_password.value|default_if_none:'' }}" />
|
|
||||||
<span class="icon is-small is-left">
|
|
||||||
<i class="fa fa-unlock-alt"></i>
|
|
||||||
</span>
|
|
||||||
<span class="icon is-small is-right">
|
|
||||||
{% if form.current_password.errors %}
|
|
||||||
<i class="fa fa-warning"></i>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<p class="help is-danger">
|
|
||||||
{{form.current_password.errors.as_text}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field is-horizontal">
|
|
||||||
<div class="field-label is-normal">
|
|
||||||
<label class="label" for="{{form.new_password1.id_for_label}}">{{form.new_password1.label}}</label>
|
|
||||||
</div>
|
|
||||||
<div class="field-body">
|
|
||||||
<div class="field is-narrow">
|
|
||||||
<div class="control has-icons-left has-icons-right">
|
|
||||||
<input class="input {% if form.new_password1.errors %}is-danger{% endif %} is-primary"
|
|
||||||
type="password" name="{{form.new_password1.html_name}}"
|
|
||||||
id="{{form.new_password1.id_for_label}}" value="{{form.new_password1.value|default_if_none:'' }}" />
|
|
||||||
<span class="icon is-small is-left">
|
|
||||||
<i class="fa fa-unlock-alt"></i>
|
|
||||||
</span>
|
|
||||||
<span class="icon is-small is-right">
|
|
||||||
{% if form.new_password1.errors %}
|
|
||||||
<i class="fa fa-warning"></i>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<p class="help is-danger">
|
|
||||||
{{form.new_password1.errors.as_text}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field is-horizontal">
|
|
||||||
<div class="field-label is-normal">
|
|
||||||
<label class="label" for="{{form.new_password2.id_for_label}}">{{form.new_password2.label}}</label>
|
|
||||||
</div>
|
|
||||||
<div class="field-body">
|
|
||||||
<div class="field is-narrow">
|
|
||||||
<div class="control has-icons-left has-icons-right">
|
|
||||||
<input class="input {% if form.new_password2.errors %}is-danger{% endif %} is-primary"
|
|
||||||
type="password" name="{{form.new_password2.html_name}}"
|
|
||||||
id="{{form.new_password2.id_for_label}}" value="{{form.new_password2.value|default_if_none:'' }}" />
|
|
||||||
<span class="icon is-small is-left">
|
|
||||||
<i class="fa fa-unlock"></i>
|
|
||||||
</span>
|
|
||||||
<span class="icon is-small is-right">
|
|
||||||
{% if form.new_password2.errors %}
|
|
||||||
<i class="fa fa-warning"></i>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<p class="help is-danger">
|
|
||||||
{{form.new_password2.errors.as_text}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field is-horizontal">
|
|
||||||
<div class="field-label is-normal">
|
|
||||||
<label class="label" for="{{form.twitter.id_for_label}}">{{form.twitter.label}}</label>
|
|
||||||
</div>
|
|
||||||
<div class="field-body">
|
|
||||||
<div class="field is-narrow">
|
|
||||||
<div class="control has-icons-left has-icons-right">
|
|
||||||
<input class="input {% if form.twitter.errors %}is-danger{% endif %}"
|
|
||||||
type="text" name="{{form.twitter.html_name}}"
|
|
||||||
id="{{form.twitter.id_for_label}}" value="{{form.twitter.value|default_if_none:'' }}" />
|
|
||||||
<span class="icon is-small is-left">
|
|
||||||
<i class="fa fa-twitter"></i>
|
|
||||||
</span>
|
|
||||||
<span class="icon is-small is-right">
|
|
||||||
{% if form.twitter.errors %}
|
|
||||||
<i class="fa fa-warning"></i>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<p class="help is-danger">
|
|
||||||
{{form.twitter.errors.as_text}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field is-horizontal">
|
|
||||||
<div class="field-label is-normal">
|
|
||||||
<label class="label" for="{{form.github.id_for_label}}">{{form.github.label}}</label>
|
|
||||||
</div>
|
|
||||||
<div class="field-body">
|
|
||||||
<div class="field is-narrow">
|
|
||||||
<div class="control has-icons-left has-icons-right">
|
|
||||||
<input class="input {% if form.github.errors %}is-danger{% endif %}"
|
|
||||||
type="text" name="{{form.github.html_name}}"
|
|
||||||
id="{{form.github.id_for_label}}" value="{{form.github.value|default_if_none:'' }}" />
|
|
||||||
<span class="icon is-small is-left">
|
|
||||||
<i class="fa fa-github"></i>
|
|
||||||
</span>
|
|
||||||
<span class="icon is-small is-right">
|
|
||||||
{% if form.github.errors %}
|
|
||||||
<i class="fa fa-warning"></i>
|
|
||||||
{% endif %}
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<p class="help is-danger">
|
|
||||||
{{form.github.errors.as_text}}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="field is-grouped">
|
|
||||||
<p class="control">
|
|
||||||
<button class="button is-primary">Registrieren</button>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endblock %}
|
|
|
@ -1,6 +1,7 @@
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block title %}Profil bearbeiten{% endblock %}
|
{% block title %}Profil bearbeiten{% endblock %}
|
||||||
|
{% block nav_profile_class %}is-active{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="rom-overview">
|
<div class="rom-overview">
|
||||||
|
@ -8,6 +9,16 @@
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<div class="box">
|
<div class="box">
|
||||||
<h1 class="title is-1">Profil bearbeiten</h1>
|
<h1 class="title is-1">Profil bearbeiten</h1>
|
||||||
|
{% if form.non_field_errors %}
|
||||||
|
<div class="message is-danger">
|
||||||
|
<div class="message-header">
|
||||||
|
<strong>Nope!</strong>
|
||||||
|
</div>
|
||||||
|
<div class="message-body">
|
||||||
|
{{ form.non_field_errors }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue