Browse Source

Merge pull request #2 from digitalocean/layout-continuity

netbox: IP address form button layout
jeremystretch 9 years ago
parent
commit
8baa7ee410
1 changed files with 12 additions and 12 deletions
  1. 12 12
      netbox/templates/ipam/ipaddress_edit.html

+ 12 - 12
netbox/templates/ipam/ipaddress_edit.html

@@ -45,18 +45,6 @@
                     {% render_field form.description %}
                 </div>
             </div>
-		    <div class="form-group">
-                <div class="col-md-9 col-md-offset-3">
-                    {% if ipaddress %}
-                        <button type="submit" name="_update" class="btn btn-primary">Update</button>
-                        <a href="{% url 'ipam:ipaddress' pk=ipaddress.pk %}" class="btn btn-default">Cancel</a>
-                    {% else %}
-                        <button type="submit" name="_create" class="btn btn-primary">Create</button>
-                        <button type="submit" name="_addanother" class="btn btn-primary">Create and Add Another</button>
-                        <a href="{% url 'ipam:ipaddress_list' %}" class="btn btn-default">Cancel</a>
-                    {% endif %}
-                </div>
-		    </div>
         </div>
         <div class="col-md-6">
             <div class="panel panel-default">
@@ -80,6 +68,18 @@
             </div>
         </div>
     </div>
+    <div class="row">
+        <div class="col-md-12 text-right">
+            {% if ipaddress %}
+                <button type="submit" name="_update" class="btn btn-primary">Update</button>
+                <a href="{% url 'ipam:ipaddress' pk=ipaddress.pk %}" class="btn btn-default">Cancel</a>
+            {% else %}
+                <button type="submit" name="_create" class="btn btn-primary">Create</button>
+                <button type="submit" name="_addanother" class="btn btn-primary">Create and Add Another</button>
+                <a href="{% url 'ipam:ipaddress_list' %}" class="btn btn-default">Cancel</a>
+            {% endif %}
+        </div>
+    </div>
 </form>
 {% endblock %}