Compare commits

..

3 commits

Author SHA1 Message Date
Benjamin 8d0bd23f31 User form.as_div instead of tables 2023-03-19 17:53:01 +01:00
Benjamin b2fbd7bc9f Add link to source code 2023-03-19 17:53:01 +01:00
Benjamin 1e0014b4ea Add license header to source files 2023-03-19 17:52:57 +01:00
6 changed files with 14 additions and 45 deletions

View file

@ -1,4 +1,4 @@
<!--
{#
Barn Web App - A collection of web-apps for my family's personal use,
including a recipe database.
Copyright © 2023 Benjamin Stadlbauer
@ -15,7 +15,7 @@
This program comes with a copy of the GNU Affero General Public License
file at the root of this project.
-->
#}
<!DOCTYPE html>
<html lang="en">

View file

@ -1,4 +1,4 @@
<!--
{#
Barn Web App - A collection of web-apps for my family's personal use,
including a recipe database.
Copyright © 2023 Benjamin Stadlbauer
@ -15,7 +15,7 @@
This program comes with a copy of the GNU Affero General Public License
file at the root of this project.
-->
#}
{% extends "base.html" %}
{% block head %}

View file

@ -1,4 +1,4 @@
<!--
{#
Barn Web App - A collection of web-apps for my family's personal use,
including a recipe database.
Copyright © 2023 Benjamin Stadlbauer
@ -15,7 +15,7 @@
This program comes with a copy of the GNU Affero General Public License
file at the root of this project.
-->
#}
{% extends "base_main.html" %}
{% block title %}Barn{% endblock %}
{% block main %}

View file

@ -1,4 +1,4 @@
<!--
{#
Barn Web App - A collection of web-apps for my family's personal use,
including a recipe database.
Copyright © 2023 Benjamin Stadlbauer
@ -15,7 +15,7 @@
This program comes with a copy of the GNU Affero General Public License
file at the root of this project.
-->
#}
{% extends "base_main.html" %}
{% block main %}
@ -38,17 +38,7 @@
<form action="{% url 'login' %}" method="post">
{% csrf_token %}
<table>
<tr>
<td>{{ form.username.label_tag }}</td>
<td>{{ form.username }}</td>
</tr>
<tr>
<td>{{ form.password.label_tag }}</td>
<td>{{ form.password }}</td>
</tr>
</table>
{{ form.as_div }}
<input type="submit" value="Login">
<input type="hidden" name="next" value="{{ next }}">
</form>

View file

@ -1,4 +1,4 @@
<!--
{#
Barn Web App - A collection of web-apps for my family's personal use,
including a recipe database.
Copyright © 2023 Benjamin Stadlbauer
@ -15,7 +15,7 @@
This program comes with a copy of the GNU Affero General Public License
file at the root of this project.
-->
#}
{% extends "base_main.html" %}
{% block main %}
@ -34,28 +34,7 @@
<form method="post" action="{% url 'new-user' %}">
{% csrf_token %}
<table>
<tr>
<td>{{ form.username.label_tag }}</td>
<td>{{ form.username }}</td>
</tr>
<tr>
<td>{{ form.first_name.label_tag }}</td>
<td>{{ form.first_name }}</td>
</tr>
<tr>
<td>{{ form.last_name.label_tag }}</td>
<td>{{ form.last_name }}</td>
</tr>
<tr>
<td>{{ form.password1.label_tag }}</td>
<td>{{ form.password1 }}</td>
</tr>
<tr>
<td>{{ form.password2.label_tag }}</td>
<td>{{ form.password2 }}</td>
</tr>
</table>
{{ form.as_div }}
<input type="submit" value="Create account">
</form>
{% endblock %}

View file

@ -1,4 +1,4 @@
<!--
{#
Barn Web App - A collection of web-apps for my family's personal use,
including a recipe database.
Copyright © 2023 Benjamin Stadlbauer
@ -15,7 +15,7 @@
This program comes with a copy of the GNU Affero General Public License
file at the root of this project.
-->
#}
{% extends "base_main.html" %}
{% block title %}Profile {{ user.username }}{% endblock %}
{% block main %}