Added event items to the event form.

Need to get this working, thinking probably best to serialize the data and submit it that way so changes are only saved on update
This commit is contained in:
Tom Price
2014-12-03 12:13:13 +00:00
parent 1368224be6
commit 5cf73d441c
5 changed files with 17 additions and 5 deletions

View File

@@ -294,7 +294,6 @@
value="{{ object.mic.name|default_if_none:"" }}"/>
</div>
</div>
{#% include 'RIGS/eventitem_table.html' %#}
</div>
<div class="col-sm-12">
<div class="pull-right">
@@ -307,6 +306,18 @@
</div>
</div>
</div>
<!-- /.col-md-6 -->
<div class="col-sm-12">
<div class="panel panel-default form-hws form-is_rig {% if object.pk and not object.is_rig %}hidden{% endif %}">
<div class="panel-body">
<div class="form-group">
<label for="{{ form.notes.id_for_label }}">{{ form.notes.label }}</label>
{% render_field form.notes class+="form-control" %}
</div>
{% include "RIGS/item_table.html" %}
</div>
</div>
</div>
</form>
<div class="modal fade" id="itemModal" role="dialog" aria-labelledby="itemModal" aria-hidded="true">
<div class="modal-dialog">