Compare commits

..

12 commits

Author SHA1 Message Date
Benjamin aead09ef42 Add license header to source files 2023-03-19 16:18:16 +01:00
Benjamin 8df693a05d Add url patterns 2023-03-19 16:18:16 +01:00
Benjamin 9509d02508 Add views 2023-03-19 16:18:16 +01:00
Benjamin ffa1f3c0d2 Add HTML templates 2023-03-19 16:18:16 +01:00
Benjamin efc2b1f390 Add forms 2023-03-19 16:18:16 +01:00
Benjamin 69b1ee1d2d Register models to admin 2023-03-19 16:18:16 +01:00
Benjamin a528b17ff5 Add models 2023-03-19 16:18:16 +01:00
Benjamin 81baffde98 Add links to recipes add to nav list and index 2023-03-19 16:18:14 +01:00
Benjamin 39963b8161 Add recipes/ url pattern 2023-03-19 16:17:15 +01:00
Benjamin 2955010907 Start App Recipes 2023-03-19 16:17:15 +01:00
Benjamin 1c039d403e Add link to source code 2023-03-19 16:16:50 +01:00
Benjamin 98ee7de8cb Add license header to source files 2023-03-19 15:56:08 +01:00
13 changed files with 60 additions and 29 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.
#}
-->
{% extends "base_main.html" %}
{% block title %}{{ recipe.title }}{% 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 title %}{{ recipe.title }}{% 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 title %}{{ recipe.title }}{% 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,11 +15,11 @@
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 %}{{ recipe.title }}{% endblock %}
{% block main %}
<form action="" method="post" id="edit-version-form"> {# TODO refactor with add-version.html#}
<form action="" method="post" id="edit-version-form"> <!-- TODO refactor with add-version.html-->
{%csrf_token %}
<table>
{{ version_form.as_table }}

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 %}{{ recipe.title }}{% 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 title %}Recipes{% 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 title %}{{ recipe.title }}{% 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.
#}
-->
<!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,7 +38,17 @@
<form action="{% url 'login' %}" method="post">
{% csrf_token %}
{{ form.as_div }}
<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>
<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,7 +34,28 @@
<form method="post" action="{% url 'new-user' %}">
{% csrf_token %}
{{ form.as_div }}
<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>
<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 %}