Self hosted FLOSS fitness/workout, nutrition and weight tracker
Move workout templates to own folder
Roland Geiderb1156af7e2a7
diff --git a/manager/templates/add.html b/manager/templates/add.htmldeleted file mode 100644index ebc7348dd..000000000--- a/manager/templates/add.html+++ /dev/null@@ -1,51 +0,0 @@-{% extends "base.html" %}-{% load i18n %}-{% load staticfiles %}--<!--- Title--->-{% block title %}{% trans "Add a new Workout" %}{% endblock %}---<!--- Main Content--->-{% block content %}---<p>JS, etc</p>--<h1> {% trans "Add a new Workout" %}</h1>--<form action="/workout/add" method="post">{% csrf_token %}-{{ workout_form.as_p }}-<input type="submit" value="Submit" />-</form>---<h2> {% trans "Days" %} </h2>--<p>Form goes here...</p>--<h2> {% trans "Sets on days" %} </h2>-<p>Form goes here...</p>--<h2> {% trans "Exercises on set" %} </h2>-<p>Form goes here...</p>--<ul>-{% for exercise in exercises %}-<li>{{ exercise }}</li>-{% endfor %}-</ul>--<h2> {% trans "Settings for set" %} </h2>-<p>Form goes here...</p>--{% endblock %}---<!--- Side bar?--->\ No newline at end of filediff --git a/manager/templates/workout/add.html b/manager/templates/workout/add.htmlnew file mode 100644index 000000000..44f956e42--- /dev/null+++ b/manager/templates/workout/add.html@@ -0,0 +1,45 @@+{% extends "base.html" %}+{% load i18n %}+{% load staticfiles %}++<!--+ Title+-->+{% block title %}{% trans "Add a new Workout" %}{% endblock %}+++<!--+ Main Content+-->+{% block content %}+<h1> {% trans "Add a new Workout" %}</h1>++<form action="/workout/add" method="post">+ {% csrf_token %}+ {{ workout_form.as_p }}+ <input type="submit" value="Submit" />+</form>++<form action="/workout/add" method="post">+ {% csrf_token %}+ {{ day_form.as_p }}+ <input type="submit" value="Submit" />+</form>+++{% endblock %}+++<!--+ Side bar+-->+{% block sidebar %}+<h3>{% trans "Steps" %}</h3>+<ol>+ <li><strong>{% trans "Days" %}</strong></li>+ <li>{% trans "Sets on days" %}</li>+ <li>{% trans "Exercises on set" %}</li>+ <li>{% trans "Settings for set" %}</li>+</ol>++{% endblock %}\ No newline at end of filediff --git a/manager/templates/detail.html b/manager/templates/workout/view.htmlsimilarity index 100%rename from manager/templates/detail.htmlrename to manager/templates/workout/view.html