Private
Public Access
1
0

addmanual

This commit is contained in:
Sander Roosendaal
2018-10-03 18:29:14 +02:00
parent f0b20517ec
commit b2c7f2ab30
2 changed files with 27 additions and 26 deletions

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %} {% extends "newbase.html" %}
{% load staticfiles %} {% load staticfiles %}
{% load rowerfilters %} {% load rowerfilters %}
{% load tz %} {% load tz %}
@@ -35,33 +35,33 @@ $('#id_workouttype').change();
</script> </script>
{% endblock %} {% endblock %}
{% block content %} {% block main %}
<div class="grid_12 alpha"> <h1>Add Workout Manually</h1>
<h1>Add Workout Manually</h1> <ul class="main-content">
<div class="grid_6 alpha"> <li class="grid_2">
{% if form.errors %} {% if form.errors %}
<p style="color: red;"> <p style="color: red;">
Please correct the error{{ form.errors|pluralize }} below. Please correct the error{{ form.errors|pluralize }} below.
</p>
{% endif %}
<form id="importantform"
enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<p>
<input class="button green" type="submit" value="Save">
</p> </p>
{% endif %} </form>
</li>
<form id="importantform" </ul>
enctype="multipart/form-data" action="" method="post">
<table width=100%>
{{ form.as_table }}
</table>
{% csrf_token %}
<div id="formbutton" class="grid_1 suffix_1 omega">
<input class="button green" type="submit" value="Save">
</div>
</form>
</div>
<div id="images" class="grid_6 omega">
<p>&nbsp;</p>
</div>
</div>
{% endblock %}
{% block sidebar %}
{% include 'menu_workouts.html' %}
{% endblock %} {% endblock %}

View File

@@ -3188,6 +3188,7 @@ def addmanual_view(request):
return render(request,'manualadd.html', return render(request,'manualadd.html',
{'form':form, {'form':form,
'active':'nav-workouts',
}) })
@login_required() @login_required()