2015-04-09 20:58:04 +00:00
|
|
|
{% extends "base.html" %}
|
2015-04-10 21:31:12 +00:00
|
|
|
{% load lifting %}
|
2015-04-09 20:58:04 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
2015-04-10 21:31:12 +00:00
|
|
|
<form method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
|
2015-04-09 20:58:04 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<section class="panel panel-default">
|
|
|
|
<header class="panel-heading font-bold">User Information</header>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-horizontal">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">Email:</label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<input type="text" class="form-control" name="email">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">Password:</label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<input type="password" class="form-control" name="password">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">Confirm Password:</label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<input type="password" class="form-control" name="password2">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section class="panel panel-default">
|
|
|
|
<header class="panel-heading font-bold">Lifting</header>
|
|
|
|
<div class="panel-body">
|
|
|
|
<div class="form-horizontal">
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">Lifting Units:</label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<div class="radio">
|
2015-04-10 21:31:12 +00:00
|
|
|
<input type="radio" name="lifting_units" value="i" {% if lifting_options.lifting_units == "i" %}checked{% endif %} >lb</input>
|
2015-04-09 20:58:04 +00:00
|
|
|
</div>
|
|
|
|
<div class="radio">
|
2015-04-10 21:31:12 +00:00
|
|
|
<input type="radio" name="lifting_units" value="m" {% if lifting_options.lifting_units == "m" %}checked{% endif %}>kg</input>
|
2015-04-09 20:58:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">Barbell:</label>
|
|
|
|
<div class="col-sm-8">
|
2015-04-10 21:31:12 +00:00
|
|
|
{% for bar in bars %}
|
2015-04-09 20:58:04 +00:00
|
|
|
<div class="radio">
|
2015-04-10 21:31:12 +00:00
|
|
|
<input type="radio" name="barbell" value="{{bar.id}}" {% if lifting_options.default_bar_id == bar.id %}checked{% endif %}>{{bar}}</input>
|
2015-04-09 20:58:04 +00:00
|
|
|
</div>
|
2015-04-10 21:31:12 +00:00
|
|
|
{% endfor %}
|
2015-04-09 20:58:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-04-10 16:28:38 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<label class="col-sm-4 control-label">Plates:</label>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr><td>Weight</td><td># of Pairs</td></tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2015-04-10 21:31:12 +00:00
|
|
|
{% for weight, n in plates %}
|
2015-04-10 16:28:38 +00:00
|
|
|
<tr>
|
2015-04-10 21:31:12 +00:00
|
|
|
<td><input type="text" class="form-control" name="plate_weight" value="{{weight|decimal}}"></input></td>
|
|
|
|
<td><input type="text" class="form-control" name="plate_number" value="{{n}}"></input></td>
|
2015-04-10 16:28:38 +00:00
|
|
|
</tr>
|
2015-04-10 21:31:12 +00:00
|
|
|
{% endfor %}
|
2015-04-10 16:28:38 +00:00
|
|
|
<tr>
|
2015-04-10 21:31:12 +00:00
|
|
|
<td><input type="text" class="form-control" name="plate_weight" value=""></input></td>
|
|
|
|
<td><input type="text" class="form-control" name="plate_number" value=""></input></td>
|
2015-04-10 16:28:38 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-04-10 21:31:12 +00:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-12"><input type="submit" class="form-control" value="Save Changes"></input> </div>
|
|
|
|
</div>
|
2015-04-09 20:58:04 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-04-10 21:31:12 +00:00
|
|
|
|
|
|
|
</form>
|
2015-04-09 20:58:04 +00:00
|
|
|
{% endblock %}
|