diff options
Diffstat (limited to 'app/budget/templates')
-rw-r--r-- | app/budget/templates/budget/base.html | 34 | ||||
-rw-r--r-- | app/budget/templates/budget/create_form.html | 26 |
2 files changed, 60 insertions, 0 deletions
diff --git a/app/budget/templates/budget/base.html b/app/budget/templates/budget/base.html new file mode 100644 index 0000000..e17813a --- /dev/null +++ b/app/budget/templates/budget/base.html @@ -0,0 +1,34 @@ +<html> +<head> + <title>{% block pagetitle %}Luxagraf - Trading{% endblock %}</title> + <meta charset="utf-8"> + <meta http-equiv="x-ua-compatible" content="ie=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + {%block stylesheet%}<link rel="stylesheet" + href="/media/trading.css{%comment%}?{% now "u" %}{%endcomment%}" + media="screen">{%endblock%} + <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> +<style> + select { + border: 1px solid #dedddd; + border-radius: 4px; + padding: 2.2rem 0 0.75rem 0.75rem; + width: 96%; + font-size: 24px; + font-size: 1.5rem; + } +</style> + {%block extrahead%}{%endblock%} +</head> + </head> + <body> + <nav> + <span class="nav-item"><a href="{% url 'luxtrade:list' %}">Home</a></span> + </nav> + {% block content %} + {% endblock %} + </body> + {% block js %} + {% endblock %} +</html> + diff --git a/app/budget/templates/budget/create_form.html b/app/budget/templates/budget/create_form.html new file mode 100644 index 0000000..2d38acf --- /dev/null +++ b/app/budget/templates/budget/create_form.html @@ -0,0 +1,26 @@ +{% extends 'budget/base.html' %} +{% load typogrify_tags %} + {% block pagetitle %}Luxagraf - Record Purchase{% endblock %} + {% block content %} + <form id="id_form" action="{% url 'luxbudget:createview' %}" method="post" class="big">{% csrf_token %} + {% for field in form %} + <fieldset> + {{ field.errors }} + {% if field.name == 'status'%} + <label class="hide" for="id_status">Status:</label>{{ field }} + {% else %} + {{ field.label_tag }} {{ field }} + {% endif %} + {% if field.help_text %} + <p class="help">{{ field.help_text|safe }}</p> + {% endif %} + </fieldset> +{% endfor %} + <div class="flex"> + <input type="submit" name="post" class="btn" value="record purchase"/> + </div> + </form> + {% endblock %} + + {% block js %} + {% endblock %} |