horizon/openstack_dashboard/dashboards/project/firewalls
Akihiro Motoki c8cd03189a Use BooleanField for admin_state_up form
admin_state_up is a boolean value but the network and port edit forms
expected a string version of True/False. As a result, True/False string
was shown as the default value in these forms. The field is implemented
as ChoiceField, but there is no special reason not to use BooleanField
for a boolean field and admin_state(_up) fields are the only exceptions
in horizon. This commit replaces all admin_state(_up) fields to
use BooleanField.

As far as I checked, this pattern is used only in the networking
related panels and this patch clean them up.

Change-Id: I9286f6c29d67fec7a88b74661bc8eca945fd9061
Closes-Bug: #1672213
2017-04-14 19:40:48 +00:00
..
templates/firewalls SCSS refactor for shared sort list UI 2017-01-30 14:19:47 +00:00
__init__.py FWaaS Horizon panel 2013-09-10 18:03:12 +09:00
forms.py Use BooleanField for admin_state_up form 2017-04-14 19:40:48 +00:00
panel.py Revert "Add policy rules to project panels" 2017-01-03 19:35:35 +00:00
tables.py Angular vs. Django Table Danger Button Inconsistency 2016-04-13 09:13:34 -07:00
tabs.py Add firewall detail actions and breadcrumb nav 2015-11-09 22:07:46 +00:00
tests.py hacking: noqa cleanup in openstack_dashboard 2017-03-17 19:38:47 +00:00
urls.py Update URLs to Django 1.8+ style 2016-03-28 11:03:08 +01:00
views.py Remove duplicated modal_header statements 2017-01-04 13:31:36 +00:00
workflows.py Use BooleanField for admin_state_up form 2017-04-14 19:40:48 +00:00