summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/stacks/tests.py
diff options
context:
space:
mode:
authorRadomir Dopieralski <openstack@sheep.art.pl>2014-01-16 13:23:29 +0100
committerRadomir Dopieralski <openstack@sheep.art.pl>2014-09-08 10:38:16 +0200
commit4d22da179facddaa409a8cfa80d0ad942f7554b7 (patch)
tree94b6f5873e4446a8a26c315ab3fb3c6de5201fb3 /openstack_dashboard/dashboards/project/stacks/tests.py
parente7b8b196201cb8fface3afc4a69903d67e42f5bc (diff)
downloadhorizon-4d22da179facddaa409a8cfa80d0ad942f7554b7.tar.gz
Add templates for bootstrap's horizontal forms
Bootstrap's form-horizontal requires a little different HTML structure than the default horiozn's field template uses. This patch adds a _horizontal_fields.html template, that behaves like the _form_fields.html template, only is suitable for use inside a <form class="form-horizontal"> tag. It also splits out the _form_errors.html, _form_field.html and _horizontal_field.html templates, so that it is easier to build custom forms with fieldsets by including those for every field, instead of all the fields at once. Change-Id: I51c8f47ba230c6a78919979cc0ef4e2383d100ba Implements: blueprint horizontal-form
Diffstat (limited to 'openstack_dashboard/dashboards/project/stacks/tests.py')
-rw-r--r--openstack_dashboard/dashboards/project/stacks/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/openstack_dashboard/dashboards/project/stacks/tests.py b/openstack_dashboard/dashboards/project/stacks/tests.py
index 49f770364..6491b3cd5 100644
--- a/openstack_dashboard/dashboards/project/stacks/tests.py
+++ b/openstack_dashboard/dashboards/project/stacks/tests.py
@@ -360,11 +360,11 @@ class StackTests(test.TestCase):
self.assertTemplateUsed(res, 'project/stacks/create.html')
# ensure the fields were rendered correctly
- self.assertContains(res, '<input class=" form-control" '
+ self.assertContains(res, '<input class="form-control" '
'id="id___param_public_string" '
'name="__param_public_string" '
'type="text" />', html=True)
- self.assertContains(res, '<input class=" form-control" '
+ self.assertContains(res, '<input class="form-control" '
'id="id___param_secret_string" '
'name="__param_secret_string" '
'type="password" />', html=True)