Skip to content
Snippets Groups Projects
Commit dd3d5a77 authored by yas's avatar yas
Browse files

Refactored the position of buttons at editting a server_template

parent 7041a8d7
No related branches found
No related tags found
No related merge requests found
......@@ -168,6 +168,11 @@ input[disabled].active {
margin-bottom: 15px;
}
#edit-boot-add,
#edit-boot-remove {
float: left;
}
#edit-stop-all-servers,
#edit-terminate {
color: #fff;
......@@ -478,14 +483,6 @@ fieldset .form-inline {
/** dropdown-submenu 2015/05/10 */
/*
.dropdown-submenu {position:relative;}
.dropdown-submenu>.dropdown-menu {top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px;}
.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#cccccc;margin-top:5px;margin-right:-10px;}
.dropdown-submenu:hover>a:after{border-left-color:#555;}
.dropdown-submenu.pull-left{float:none;}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px;}
*/
.dropdown-submenu {
position: relative;
}
......
......@@ -314,21 +314,21 @@ function aws_cloud_server_templates_new($form, $form_submit = '', $cloud_context
'#multiple' => TRUE,
'#attributes' => array('style' => 'width:150px;margin:5px 0 5px 0;'),
);
$script_elem[$script . '_remove' ] = array(
'#type' => 'button',
'#name' => 'removeState',
'#value' => '<<',
'#attributes' => array('onclick' => 'javascript:return moveElement(' . $script . '_selected, ' . $script . '_select )'),
);
$script_elem[$script . '_add' ] = array(
'#type' => 'button',
'#name' => 'addState' ,
'#name' => 'addState',
'#value' => '>>',
'#attributes' => array(
'style' => 'position:absolute;margin-left:0px',
'style' => 'margin-left:0px',
'onclick' => 'javascript:return moveElement(' . $script . '_select, ' . $script . '_selected)',
),
);
$script_elem[$script . '_remove' ] = array(
'#type' => 'button',
'#name' => 'removeState',
'#value' => '<<',
'#attributes' => array('onclick' => 'javascript:return moveElement(' . $script . '_selected, ' . $script . '_select )'),
);
$script_elem[$script . '_selected'] = array(
'#id' => $script . '_selected',
'#type' => 'select',
......@@ -341,7 +341,7 @@ function aws_cloud_server_templates_new($form, $form_submit = '', $cloud_context
'#name' => 'upState' ,
'#value' => '^',
'#attributes' => array(
'style' => 'position:absolute;margin-left:0px',
'style' => 'margin-left:0px',
'onclick' => 'javascript:return moveElementUp(' . $script . '_selected)',
),
);
......@@ -421,7 +421,7 @@ function aws_cloud_server_templates_new($form, $form_submit = '', $cloud_context
'#name' => 'addFailoverScanerio',
'#value' => '>>',
'#attributes' => array(
'style' => 'position:absolute;margin-left:0px',
'style' => 'margin-left:0px',
'onclick' => 'javascript:return moveElement(failover_scenario_id_select, failover_scenario_id_selected)',
),
);
......@@ -502,7 +502,7 @@ function aws_cloud_server_templates_new($form, $form_submit = '', $cloud_context
'#name' => 'addAlert',
'#value' => '>>',
'#attributes' => array(
'style' => 'position:absolute;margin-left:0px',
'style' => 'margin-left:0px',
'onclick' => 'javascript:return moveElement(alert_id_select, alert_id_selected)',
),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment