summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/admin/groups/tables.py
diff options
context:
space:
mode:
authorJiri Tomasek <jtomasek@redhat.com>2014-07-02 14:05:54 +0200
committerJiri Tomasek <jtomasek@redhat.com>2014-07-28 16:13:21 +0200
commit92146772b677e9fce57cc11b4a4a1542a05c23b2 (patch)
tree8458f99e3c3d68a537383587724908ee5b2fffe5 /openstack_dashboard/dashboards/admin/groups/tables.py
parentb04f020fc1dce27b47a174259ea3ba542127401b (diff)
downloadhorizon-92146772b677e9fce57cc11b4a4a1542a05c23b2.tar.gz
Update Twitter Bootstrap to version 3
Updated to bootstrap 3.2.0 back to v3.1.1 fix base-line-height variable Revamped grid system Replaced help-inline with help-block Change .control-group to .form-group Add column widths to horizontal form labels and .controls, remove .controls class Datepicker form fix Add btn-default to btn elements with no other color Topbar switcher fix Rename button sizes Replace alert-error with alert-danger Removed alert-block Alerts fixing Updated LinkAction and Action table actions to define icon, replaced btn-default icon with glyphicon Replaced icons with glyphicons, removed btn-icon styling from horizon.scss change Button Icons text in customizing docs Fixed table header Fix page_header h2 margin Nav accordion fix Tables fix Modal fixes added form-control class to input and selects Forms fixes Workflow modal fix Fix quota bar updated customizing docs removed unused styling from horizon.scss make datepicker form inline fix table filter styling added btn-danger to terminate instances button fixed loading spinner form fields and validations Created bootstrap_form_field filter and template to render bootstrap forms properly Style up the datepicker Fixed failing test cases Implements: blueprint bootstrap-update Change-Id: Ic826849be1af7fc6bf06f97dd7a60fc54b862148
Diffstat (limited to 'openstack_dashboard/dashboards/admin/groups/tables.py')
-rw-r--r--openstack_dashboard/dashboards/admin/groups/tables.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/openstack_dashboard/dashboards/admin/groups/tables.py b/openstack_dashboard/dashboards/admin/groups/tables.py
index 1bb6004c0..9d5644e02 100644
--- a/openstack_dashboard/dashboards/admin/groups/tables.py
+++ b/openstack_dashboard/dashboards/admin/groups/tables.py
@@ -37,7 +37,8 @@ class CreateGroupLink(tables.LinkAction):
name = "create"
verbose_name = _("Create Group")
url = constants.GROUPS_CREATE_URL
- classes = ("ajax-modal", "btn-create")
+ classes = ("ajax-modal",)
+ icon = "plus"
policy_rules = (("identity", "identity:create_group"),)
def allowed(self, request, group):
@@ -48,7 +49,8 @@ class EditGroupLink(tables.LinkAction):
name = "edit"
verbose_name = _("Edit Group")
url = constants.GROUPS_UPDATE_URL
- classes = ("ajax-modal", "btn-edit")
+ classes = ("ajax-modal",)
+ icon = "pencil"
policy_rules = (("identity", "identity:update_group"),)
def allowed(self, request, group):
@@ -73,7 +75,7 @@ class ManageUsersLink(tables.LinkAction):
name = "users"
verbose_name = _("Modify Users")
url = constants.GROUPS_MANAGE_URL
- classes = ("btn-edit")
+ icon = "pencil"
policy_rules = (("identity", "identity:get_group"),
("identity", "identity:list_users"),)
@@ -144,7 +146,8 @@ class RemoveMembers(tables.DeleteAction):
class AddMembersLink(tables.LinkAction):
name = "add_user_link"
verbose_name = _("Add...")
- classes = ("ajax-modal", "btn-create")
+ classes = ("ajax-modal",)
+ icon = "plus"
url = constants.GROUPS_ADD_MEMBER_URL
policy_rules = (("identity", "identity:list_users"),
("identity", "identity:add_user_to_group"),)
@@ -181,7 +184,7 @@ class AddMembers(tables.BatchAction):
action_past = _("Added")
data_type_singular = _("User")
data_type_plural = _("Users")
- classes = ("btn-create", )
+ icon = "plus"
requires_input = True
success_url = constants.GROUPS_MANAGE_URL
policy_rules = (("identity", "identity:add_user_to_group"),)