horizon/openstack_dashboard/dashboards/project/routers
Akihiro Motoki a7ec524d4a 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.

Conflicts:
	openstack_dashboard/dashboards/project/networks/ports/forms.py
	openstack_dashboard/dashboards/project/networks/workflows.py

Closes-Bug: #1672213
Change-Id: I9286f6c29d67fec7a88b74661bc8eca945fd9061
(cherry picked from commit c8cd03189a)
2017-05-18 21:58:09 +09:00
..
extensions Remove router rules extension 2016-08-15 15:04:23 -07:00
ports Horizon selects are now themable: Project Panels 2016-08-01 14:15:54 -07:00
templates/routers Add default common template to python table views 2017-01-05 08:59:35 +00:00
__init__.py Support Quantum L3 function 2013-01-07 20:24:57 -08:00
forms.py Use BooleanField for admin_state_up form 2017-05-18 21:58:09 +09:00
panel.py Revert "Add policy rules to project panels" 2017-01-03 19:35:35 +00:00
tables.py Fixed inconsistent names set for BatchAction 2016-09-21 12:57:27 -07:00
tabs.py Fix alignment issues for nav-tabs and ul on details panels 2017-01-18 11:40:14 -08:00
tests.py Use BooleanField for admin_state_up form 2017-05-18 21:58:09 +09:00
urls.py Remove router rules extension 2016-08-15 15:04:23 -07:00
views.py Add default common template to python table views 2017-01-05 08:59:35 +00:00