Refactoring
This commit is contained in:
@@ -15,6 +15,18 @@
|
||||
{{ form.description.label }}
|
||||
{{ form.description(size=20, class='form-control') }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ form.duration.label }}
|
||||
{{ form.duration(size=20, class='form-control') }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ form.status_id.label }}
|
||||
{{ form.status_id(class='form-control') }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ form.notes.label }}
|
||||
{{ form.notes(class='form-control') }}
|
||||
</div>
|
||||
<input class="btn btn-default" type="submit" value="Create Shot">
|
||||
</form>
|
||||
</div>
|
||||
|
@@ -15,7 +15,23 @@
|
||||
{{ form.description.label }}
|
||||
{{ form.description(size=20, class='form-control') }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ form.duration.label }}
|
||||
{{ form.duration(size=20, class='form-control') }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ form.status_id.label }}
|
||||
{{ form.status_id(class='form-control') }}
|
||||
</div>
|
||||
<div class="form-group">
|
||||
{{ form.notes.label }}
|
||||
{{ form.notes(class='form-control') }}
|
||||
</div>
|
||||
<input class="btn btn-default" type="submit" value="Edit Shot">
|
||||
<div class="pull-right">
|
||||
<a class="btn btn-default" href="{{url_for('shots.index')}}">Cancel</a>
|
||||
<a class="btn btn-danger" href="{{url_for('shots.delete', shot_id=shot_id)}}">Delete</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -20,11 +20,19 @@
|
||||
{% for shot in shots %}
|
||||
<tr id="row_{{shot['id']}}">
|
||||
<td><a href="{{url_for('shots.view', shot_id=shot['id'])}}">{{shot['name']}}</a></td>
|
||||
<td>{{shot['description']}}</td>
|
||||
<td></td>
|
||||
<td>
|
||||
{% if shot['description'] %}
|
||||
{{shot['description']|truncate(25)}}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>{{shot['duration']}}</td>
|
||||
<td><span class="label label-default" style="background-color:<?php echo $shot['status_color'] ?>">{{shot['status']}}</span></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>
|
||||
{% if shot['notes'] %}
|
||||
{{shot['notes']|truncate(25)}}
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
<a class="btn btn-default btn-xs" href="{{url_for('shots.edit', shot_id=shot['id'])}}"><i class="glyphicon glyphicon-edit"></i> Edit</a>
|
||||
</td>
|
||||
|
@@ -9,6 +9,13 @@
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<p>{{shot['description']}}</p>
|
||||
<p>
|
||||
{% if notes %}
|
||||
{{notes}}
|
||||
{% else %}
|
||||
No notes at the moment
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user