diff options
author | Jiri Tomasek <jtomasek@redhat.com> | 2014-07-02 14:05:54 +0200 |
---|---|---|
committer | Jiri Tomasek <jtomasek@redhat.com> | 2014-07-28 16:13:21 +0200 |
commit | 92146772b677e9fce57cc11b4a4a1542a05c23b2 (patch) | |
tree | 8458f99e3c3d68a537383587724908ee5b2fffe5 /openstack_dashboard/dashboards/admin/projects/tables.py | |
parent | b04f020fc1dce27b47a174259ea3ba542127401b (diff) | |
download | horizon-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/projects/tables.py')
-rw-r--r-- | openstack_dashboard/dashboards/admin/projects/tables.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/openstack_dashboard/dashboards/admin/projects/tables.py b/openstack_dashboard/dashboards/admin/projects/tables.py index ffb47a32a..58fe58b1e 100644 --- a/openstack_dashboard/dashboards/admin/projects/tables.py +++ b/openstack_dashboard/dashboards/admin/projects/tables.py @@ -28,7 +28,8 @@ class ViewMembersLink(tables.LinkAction): name = "users" verbose_name = _("Modify Users") url = "horizon:admin:projects:update" - classes = ("ajax-modal", "btn-edit") + classes = ("ajax-modal",) + icon = "pencil" policy_rules = (("identity", "identity:list_users"), ("identity", "identity:list_roles")) @@ -43,7 +44,8 @@ class ViewGroupsLink(tables.LinkAction): name = "groups" verbose_name = _("Modify Groups") url = "horizon:admin:projects:update" - classes = ("ajax-modal", "btn-edit") + classes = ("ajax-modal",) + icon = "pencil" def allowed(self, request, project): return keystone.VERSIONS.active >= 3 @@ -59,7 +61,7 @@ class UsageLink(tables.LinkAction): name = "usage" verbose_name = _("View Usage") url = "horizon:admin:projects:usage" - classes = ("btn-stats",) + icon = "stats" policy_rules = (("compute", "compute_extension:simple_tenant_usage:show"),) @@ -78,7 +80,8 @@ class UpdateProject(tables.LinkAction): name = "update" verbose_name = _("Edit Project") url = "horizon:admin:projects:update" - classes = ("ajax-modal", "btn-edit") + classes = ("ajax-modal",) + icon = "pencil" policy_rules = (('identity', 'identity:update_project'),) def allowed(self, request, project): @@ -89,7 +92,8 @@ class ModifyQuotas(tables.LinkAction): name = "quotas" verbose_name = _("Modify Quotas") url = "horizon:admin:projects:update" - classes = ("ajax-modal", "btn-edit") + classes = ("ajax-modal",) + icon = "pencil" policy_rules = (('compute', "compute_extension:quotas:update"),) def get_link_url(self, project): |