Commit aebe9e61 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1789051: Adjusting the styles for the webservice buttons



To use the new btn-group-first/btn-group-last classes when the
pieform elements are not in the same div parent

behatnotneeded

Change-Id: I149122ed79231b9931493373ad797369248b3978
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 997a1302
......@@ -108,4 +108,7 @@
.btn-group > .btn-group-first.btn-group-last {
display: inline-block;
margin-left: -4px;
&.webservices {
margin-left: 0;
}
}
......@@ -606,7 +606,7 @@ function webservice_function_groups_form() {
'value' => pieform(array(
'name' => 'webservices_function_groups_edit_' . $service->id,
'renderer' => 'div',
'class' => 'form-as-button pull-left',
'class' => 'btn-group-first' . (!$iscustomservice ? ' btn-group-last webservices' : ''),
'successcallback' => 'webservice_function_groups_submit',
'jsform' => false,
'action' => get_config('wwwroot') . 'webservice/admin/index.php',
......@@ -627,7 +627,7 @@ function webservice_function_groups_form() {
pieform(array(
'name' => 'webservices_function_groups_delete_' . $service->id,
'renderer' => 'div',
'class' => 'form-as-button pull-left',
'class' => 'btn-group-last',
'successcallback' => 'webservice_function_groups_submit',
'jsform' => false,
'action' => get_config('wwwroot') . 'webservice/admin/index.php',
......@@ -855,7 +855,7 @@ function webservice_tokens_form() {
'renderer' => 'div',
'elementclasses' => false,
'successcallback' => 'webservice_token_submit',
'class' => 'form-as-button pull-left',
'class' => 'btn-group-first',
'jsform' => false,
'elements' => array(
'token' => array('type' => 'hidden', 'value' => $token->tokenid),
......@@ -874,7 +874,7 @@ function webservice_tokens_form() {
'renderer' => 'div',
'elementclasses' => false,
'successcallback' => 'webservice_token_submit',
'class' => 'form-as-button pull-left',
'class' => 'btn-group-last',
'jsform' => false,
'elements' => array(
'token' => array('type' => 'hidden', 'value' => $token->tokenid),
......@@ -1117,7 +1117,7 @@ function webservice_users_form() {
'renderer' => 'div',
'elementclasses' => false,
'successcallback' => 'webservice_users_submit',
'class' => 'form-as-button pull-left',
'class' => 'btn-group-first',
'jsform' => false,
'elements' => array(
'suid' => array('type' => 'hidden', 'value' => $user->id),
......@@ -1136,7 +1136,7 @@ function webservice_users_form() {
'renderer' => 'div',
'elementclasses' => false,
'successcallback' => 'webservice_users_submit',
'class' => 'form-as-button pull-left',
'class' => 'btn-group-last',
'jsform' => false,
'elements' => array(
'suid' => array('type' => 'hidden', 'value' => $user->id),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment