Skip to content

Commit

Permalink
Converting security groups to check boxes.
Browse files Browse the repository at this point in the history
Bug 884486

Change-Id: I8b654c854b4c18dc6e28039eecbc8e97447a66bb
  • Loading branch information
jakedahn committed Dec 19, 2011
1 parent 8f25177 commit 22d465e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 1,132 deletions.
Expand Up @@ -134,9 +134,7 @@ def __init__(self, *args, **kwargs):
label=_("Security Groups"),
required=True,
initial=['default'],
widget=forms.SelectMultiple(
attrs={'class': 'chzn-select',
'style': "min-width: 200px"}),
widget=forms.CheckboxSelectMultiple(),
help_text="Launch instance in these Security Groups")
# setting self.fields.keyOrder seems to break validation,
# so ordering fields manually
Expand Down
Expand Up @@ -5,7 +5,7 @@
{% block form_action %}{% url horizon:nova:images_and_snapshots:images:launch image_id %}{% endblock %}

{% block modal_id %}launch_image_{{ image_id }}{% endblock %}

{% block modal_class %}launch_image modal{% endblock %}
{% block modal-header %}Launch Instances{% endblock %}

{% block modal-body %}
Expand Down
340 changes: 0 additions & 340 deletions openstack-dashboard/dashboard/static/dashboard/css/chosen.css

This file was deleted.

5 changes: 5 additions & 0 deletions openstack-dashboard/dashboard/static/dashboard/css/style.css
Expand Up @@ -769,3 +769,8 @@ td.actions ul li input {
td.actions ul {
display: none;
}

.launch_image input[type="checkbox"] {
float: left;
width: 25px;
}

0 comments on commit 22d465e

Please sign in to comment.