From 9ee6c91d47486a6498de9305bd8b9c231d289b37 Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Tue, 4 Apr 2017 16:41:29 +0200
Subject: [PATCH] bug fix: when editing subject there was no way to submit
 changes

---
 smash/web/templates/subjects/edit.html | 30 +++++++++++++-------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/smash/web/templates/subjects/edit.html b/smash/web/templates/subjects/edit.html
index 9356646e..0a016361 100644
--- a/smash/web/templates/subjects/edit.html
+++ b/smash/web/templates/subjects/edit.html
@@ -42,9 +42,9 @@
                         <h3>Subject details</h3>
                     </div>
 
-                    <div class="box-body">
-                        <div class="col-md-12">
-                            <form method="post" action="" class="form-horizontal">
+                    <form method="post" action="" class="form-horizontal">
+                        <div class="box-body">
+                            <div class="col-md-12">
                                 {% csrf_token %}
 
                                 {% for field in form %}
@@ -64,20 +64,20 @@
                                 {% endfor %}
 
 
-                            </form>
-                        </div>
-                    </div><!-- /.box-body -->
+                            </div>
+                        </div><!-- /.box-body -->
 
 
-                    <div class="box-footer">
-                        <div class="col-sm-6">
-                            <button type="submit" class="btn btn-block btn-success">Save</button>
-                        </div>
-                        <div class="col-sm-6">
-                            <a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default"
-                               onclick="history.back()">Cancel</a>
-                        </div>
-                    </div><!-- /.box-footer -->
+                        <div class="box-footer">
+                            <div class="col-sm-6">
+                                <button type="submit" class="btn btn-block btn-success">Save</button>
+                            </div>
+                            <div class="col-sm-6">
+                                <a href="{% url 'web.views.subjects' %}" class="btn btn-block btn-default"
+                                   onclick="history.back()">Cancel</a>
+                            </div>
+                        </div><!-- /.box-footer -->
+                    </form>
                 </div><!-- /.box -->
             </div><!-- /.col-md-12 -->
         </div><!-- /.row -->
-- 
GitLab