Skip to content
Snippets Groups Projects
Commit 9ee6c91d authored by Piotr Gawron's avatar Piotr Gawron
Browse files

bug fix: when editing subject there was no way to submit changes

parent cd289bd3
No related branches found
No related tags found
1 merge request!39Subject additional fields added
...@@ -42,9 +42,9 @@ ...@@ -42,9 +42,9 @@
<h3>Subject details</h3> <h3>Subject details</h3>
</div> </div>
<div class="box-body"> <form method="post" action="" class="form-horizontal">
<div class="col-md-12"> <div class="box-body">
<form method="post" action="" class="form-horizontal"> <div class="col-md-12">
{% csrf_token %} {% csrf_token %}
{% for field in form %} {% for field in form %}
...@@ -64,20 +64,20 @@ ...@@ -64,20 +64,20 @@
{% endfor %} {% endfor %}
</form> </div>
</div> </div><!-- /.box-body -->
</div><!-- /.box-body -->
<div class="box-footer"> <div class="box-footer">
<div class="col-sm-6"> <div class="col-sm-6">
<button type="submit" class="btn btn-block btn-success">Save</button> <button type="submit" class="btn btn-block btn-success">Save</button>
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default" <a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default"
onclick="history.back()">Cancel</a> onclick="history.back()">Cancel</a>
</div> </div>
</div><!-- /.box-footer --> </div><!-- /.box-footer -->
</form>
</div><!-- /.box --> </div><!-- /.box -->
</div><!-- /.col-md-12 --> </div><!-- /.col-md-12 -->
</div><!-- /.row --> </div><!-- /.row -->
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment