Commit b0764d5f authored by Liam Sharpe's avatar Liam Sharpe Committed by Robert Lyon

Added a icon to the generate button on webservices - Bug #1545375

And allow the generate button to have right side when delete button is
not present

behatnotneeded

Change-Id: Ib1fca4c19b0edcc3e7129601f53169b5a16e0f60
parent fa9ce1dd
......@@ -43,3 +43,7 @@
border-bottom-right-radius: 3px !important;
border-right-width: 1px !important;
}
.btn-group.only-button-top .btn {
border-top-right-radius: 3px !important;
}
......@@ -166,7 +166,7 @@ if (!empty($dbservices)) {
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn-default btn-sm',
'value' => get_string('gen', 'auth.webservice'),
'value' => '<span class="icon icon-refresh"></span> ' . get_string('gen', 'auth.webservice'),
'elementtitle' => get_string('gen', 'auth.webservice')
),
),
......@@ -195,7 +195,7 @@ if (!empty($dbservices)) {
,
'type' => 'html',
'key' => $service->id,
'class' => 'webserviceconfigcontrols btn-group',
'class' => 'webserviceconfigcontrols btn-group' . (empty($service->token) ? ' only-button only-button-top' : ''),
);
}
$pieform = pieform_instance($userform);
......
Markdown is supported
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