added services tab

fixed input field to accept tenth of litres
This commit is contained in:
joachim lusiardi 2015-03-15 07:28:34 +01:00
parent 9b767ec1ea
commit e479bc24ac
4 changed files with 4 additions and 6 deletions

View File

@ -1,5 +0,0 @@
{% extends "layout.html" %}
{% block body %}
<a href='{{ url_for('getPitStops') }}'>Pitstop List</a>
<a href='{{ url_for('createPitStopForm') }}'>Create Pitstop</a>
{% endblock %}

View File

@ -3,6 +3,7 @@
{% block navigation %}
<li><a href='{{ url_for('createPitStopForm') }}' class="active">Create Pitstop</a></li>
<li><a href='{{ url_for('getStatistics') }}'>Statistics</a></li>
<li><a href='{{ url_for('get_services') }}'>Services</a></li>
{% endblock %}
{% block body %}
@ -30,7 +31,7 @@
<div class="form-group {% if data.error['litres'] %}has-error{% endif %}">
<label class="col-sm-2 control-label" for="litres">Litres (l)</label>
<div class="col-sm-10">
<input class="form-control" id="litres" name="litres" placeholder="" type="number" value='{{ data.last.litres }}' />
<input class="form-control" id="litres" name="litres" placeholder="" type="number" step='0.1' value='{{ data.last.litres }}' />
<p class='error'>{{ data.error['litres'] }}</p>
</div>
</div>

View File

@ -3,6 +3,7 @@
{% block navigation %}
<li><a href='{{ url_for('createPitStopForm') }}'>Create Pitstop</a></li>
<li><a href='{{ url_for('getStatistics') }}'>Statistics</a></li>
<li><a href='{{ url_for('get_services') }}'>Services</a></li>
{% endblock %}
{% block body %}

View File

@ -3,6 +3,7 @@
{% block navigation %}
<li><a href='{{ url_for('createPitStopForm') }}'>Create Pitstop</a></li>
<li><a href='{{ url_for('getStatistics') }}' class="active">Statistics</a></li>
<li><a href='{{ url_for('get_services') }}'>Services</a></li>
{% endblock %}
{% block body %}