This repository has been archived by the owner on Jan 7, 2024. It is now read-only.
/
add_activity.html
51 lines (51 loc) · 1.92 KB
/
add_activity.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{% extends 'lib/base.html' %}
{% load static %}
{% block body %}
<style>
#id_date {
max-width: 23ch;
}
</style>
<title>Add new Activity | Workoutizer</title>
<h3>Add new Activity</h3>
<hr>
<br>
<div class="container">
<form action="{% url 'add-activity' %}" method="post" accept-charset="utf-8"
enctype="multipart/form-data">
{% csrf_token %}
{% include "lib/form_errors.html" %}
{% include "lib/messages.html" %}
<div class="form-group row">
<div class="col-sm-3">{{ form.name.label }}</div>
<div class="col-sm-9">{{ form.name }}</div>
</div>
<div class="form-group row">
<div class="col-sm-3">{{ form.sport.label }}:</div>
<div class="col-sm-9">{{ form.sport }}</div>
</div>
<div class="form-group row">
<div class="col-sm-3">{{ form.date.label }}:</div>
<div class="col-sm-9">{{ form.date }}</div>
</div>
<div class="form-group row">
<div class="col-sm-3">{{ form.duration.label }}</div>
<div class="col-sm-9">{{ form.duration }} Format: HH:MM:SS</div>
</div>
<div class="form-group row">
<div class="col-sm-3">{{ form.distance.label }}</div>
<div class="col-sm-9">{{ form.distance }} km</div>
</div>
<div class="form-group row">
<div class="col-sm-3">{{ form.description.label }}</div>
<div class="col-sm-9">{{ form.description }}</div>
</div>
<br>
<br>
<br>
<button id="submit-button" class="btn btn-warning" type="submit" name="action">
<i class="fas fa-check"></i> Submit
</button>
</form>
</div>
{% endblock %}