Commit inicial
Habia trabajado un buen poco pero como vi que tenia que separar los repositorios perdi bastante la historia :c
This commit is contained in:
20
users/templates/users/base.html
Normal file
20
users/templates/users/base.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<title>{% block title %}MusicList{% endblock %}</title>
|
||||
<link rel="stylesheet" type="text/css" href="{% static "users/css/normalize.css" %}">
|
||||
<link rel="stylesheet" type="text/css" href="{% static "users/css/base.css" %}">
|
||||
{% block extrastyle %}{% endblock %}
|
||||
{% block extrahead %}{% endblock %}
|
||||
{% block responsive %}
|
||||
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0">
|
||||
{% endblock %}
|
||||
{% block blockbots %}<meta name="robots" content="NONE,NOARCHIVE">{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
29
users/templates/users/login.html
Normal file
29
users/templates/users/login.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{% extends "users/base.html" %}
|
||||
{% block content %}
|
||||
<div class="login-box">
|
||||
<div class="heading">
|
||||
<p>MusicList Login</p>
|
||||
</div>
|
||||
<div class="form">
|
||||
{% if error %}
|
||||
<div class="error">
|
||||
<p>{{ error }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<form method="POST" action="{% url 'auth:login' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
|
||||
<label for="username">Usuario:</label>
|
||||
<input type="text" name="username" id="username" required>
|
||||
|
||||
<label for="password">Contraseña:</label>
|
||||
<input type="password" name="password" id="password" required>
|
||||
|
||||
<button class="submit" type="submit">Entrar</button>
|
||||
</form>
|
||||
<a href="{% url 'auth:register' %}?next={{ next|urlencode }}">¿No tienes cuenta?</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
33
users/templates/users/register.html
Normal file
33
users/templates/users/register.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{% extends "users/base.html" %}
|
||||
{% block content %}
|
||||
<div class="login-box">
|
||||
<div class="heading">
|
||||
<p>MusicList Registration</p>
|
||||
</div>
|
||||
<div class="form">
|
||||
{% if error %}
|
||||
<div class="error">
|
||||
<p>{{ error }}</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
<form method="POST" action="{% url 'auth:register' %}">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="next" value="{{ next }}">
|
||||
|
||||
<label for="username">Usuario:</label>
|
||||
<input type="text" name="username" id="username" {% if old.username %} value="{{ old.username }}" {% endif%} required>
|
||||
|
||||
<label for="email">Email:</label>
|
||||
<input type="email" name="email" id="email" {% if old.email %} value="{{ old.email}}" {% endif%}required>
|
||||
|
||||
<label for="password">Contraseña:</label>
|
||||
<input type="password" name="password" id="password" required>
|
||||
|
||||
<label for="password_confirm">Confirme Contraseña:</label>
|
||||
<input type="password" name="password_confirm" id="password_confirm" required>
|
||||
|
||||
<button class="submit" type="submit">Entrar</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user