mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
replace sc-button + bt- in js and php files
This commit is contained in:
parent
ccee105efb
commit
a740ad29ea
@ -280,10 +280,10 @@ var insertRemoveButton = (zone, zoneData) => {
|
||||
labelCancel = 'Restaurer'
|
||||
;
|
||||
|
||||
removeButton.classList.add('sc-button', 'bt-delete');
|
||||
removeButton.classList.add('btn', 'btn-delete');
|
||||
removeButton.textContent = labelRemove;
|
||||
|
||||
cancelButton.classList.add('sc-button');
|
||||
cancelButton.classList.add('btn', 'btn-cancel');
|
||||
cancelButton.textContent = labelCancel;
|
||||
|
||||
removeButton.addEventListener('click', (e) => {
|
||||
@ -355,7 +355,7 @@ var insertDownloadButton = (zone, zoneData) => {
|
||||
newButton.dataset.labelPreparing = labelPreparing;
|
||||
newButton.dataset.labelReady = labelReady;
|
||||
newButton.dataset.tempUrlGetGenerator = tempUrlGenerator + '?' + tempUrlGeneratorParams.toString();
|
||||
newButton.classList.add('sc-button', 'bt-download', 'dz-bt-below-dropzone');
|
||||
newButton.classList.add('btn', 'btn-download', 'dz-bt-below-dropzone');
|
||||
newButton.textContent = labelQuietButton;
|
||||
|
||||
addBelowButton(newButton, zone, zoneData);
|
||||
|
@ -46,7 +46,7 @@ var download_report = (url, container) => {
|
||||
extension = mime.extension(type);
|
||||
|
||||
link.appendChild(document.createTextNode(download_text));
|
||||
link.classList.add("sc-button", "btn-action");
|
||||
link.classList.add("btn", "btn-action");
|
||||
link.href = content;
|
||||
link.download = alias;
|
||||
if (extension !== false) {
|
||||
|
@ -31,21 +31,21 @@ class DefaultTaskDefinition implements \Chill\TaskBundle\Workflow\TaskWorkflowDe
|
||||
const TRANSITION_METADATA = [
|
||||
'close' => [
|
||||
'verb' => 'close',
|
||||
'class' => 'sc-button bt-task-label bt-task-close',
|
||||
'class' => 'btn btn-task-label btn-task-close',
|
||||
'sentence' => '%user% has closed the task',
|
||||
'sentence_confirmation' => 'Are you sure you want to close this task ?',
|
||||
'apply_transition_submit_label' => 'Close_verb'
|
||||
],
|
||||
'cancel' => [
|
||||
'verb' => 'cancel',
|
||||
'class' => 'sc-button bt-task-label bt-task-cancel',
|
||||
'class' => 'btn btn-task-label btn-task-cancel',
|
||||
'sentence' => '%user% has canceled the task',
|
||||
'sentence_confirmation' => 'Are you sure you want to cancel this task ?',
|
||||
'apply_transition_submit_label' => 'Set this task to cancel state'
|
||||
],
|
||||
'start' => [
|
||||
'verb' => 'start',
|
||||
'class' => 'sc-button bt-task-label bt-task-start',
|
||||
'class' => 'btn btn-task-label btn-task-start',
|
||||
'sentence' => '%user% has started the task',
|
||||
'sentence_confirmation' => 'Are you sure you want to start this task ?',
|
||||
'apply_transition_submit_label' => 'Start_verb'
|
||||
|
Loading…
x
Reference in New Issue
Block a user