From 2c204429c6061dcae889e1c421256fc531775065 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 7 Sep 2016 22:00:09 +0530 Subject: [PATCH] Remove width management for forms Now all forms will uniformly occupy the full width of the available row. Bootstrap originally designed forms this way. However, we were setting restricted widths on forms as they were too wide. With the new fixed container layout this is no longer necessary. --- .../networks/templates/connections_add.html | 16 ++++++---------- .../networks/templates/connections_create.html | 16 ++++++---------- .../networks/templates/connections_edit.html | 16 ++++++---------- .../templates/connections_type_select.html | 16 ++++++---------- plinth/modules/users/templates/users_create.html | 16 ++++++---------- 5 files changed, 30 insertions(+), 50 deletions(-) diff --git a/plinth/modules/networks/templates/connections_add.html b/plinth/modules/networks/templates/connections_add.html index 5b7ee03b0..02d18264d 100644 --- a/plinth/modules/networks/templates/connections_add.html +++ b/plinth/modules/networks/templates/connections_add.html @@ -23,18 +23,14 @@ {% block content %} -
-
-
- {% csrf_token %} + + {% csrf_token %} - {{ form|bootstrap }} + {{ form|bootstrap }} - -
-
-
+ + {% endblock %} diff --git a/plinth/modules/networks/templates/connections_create.html b/plinth/modules/networks/templates/connections_create.html index e56606b1d..96c84b048 100644 --- a/plinth/modules/networks/templates/connections_create.html +++ b/plinth/modules/networks/templates/connections_create.html @@ -23,17 +23,13 @@ {% block content %} -
-
-
- {% csrf_token %} + + {% csrf_token %} - {{ form|bootstrap }} + {{ form|bootstrap }} - -
-
-
+ + {% endblock %} diff --git a/plinth/modules/networks/templates/connections_edit.html b/plinth/modules/networks/templates/connections_edit.html index ee9fa5740..193f67cbb 100644 --- a/plinth/modules/networks/templates/connections_edit.html +++ b/plinth/modules/networks/templates/connections_edit.html @@ -23,18 +23,14 @@ {% block content %} -
-
-
- {% csrf_token %} + + {% csrf_token %} - {{ form|bootstrap }} + {{ form|bootstrap }} - -
-
-
+ + {% endblock %} diff --git a/plinth/modules/networks/templates/connections_type_select.html b/plinth/modules/networks/templates/connections_type_select.html index 5b7ee03b0..02d18264d 100644 --- a/plinth/modules/networks/templates/connections_type_select.html +++ b/plinth/modules/networks/templates/connections_type_select.html @@ -23,18 +23,14 @@ {% block content %} -
-
-
- {% csrf_token %} + + {% csrf_token %} - {{ form|bootstrap }} + {{ form|bootstrap }} - -
-
-
+ + {% endblock %} diff --git a/plinth/modules/users/templates/users_create.html b/plinth/modules/users/templates/users_create.html index 972184b1e..1e7b0a34f 100644 --- a/plinth/modules/users/templates/users_create.html +++ b/plinth/modules/users/templates/users_create.html @@ -31,18 +31,14 @@ {% block content %} -
-
-
- {% csrf_token %} + + {% csrf_token %} - {{ form|bootstrap }} + {{ form|bootstrap }} - -
-
-
+ + {% endblock %}