N°3649 - Case log entry form: Change buttons text and style

- Change "Save" button to "Send"
- Change "Cancel" button to the new convention
This commit is contained in:
Molkobain
2021-02-07 18:22:02 +01:00
parent aa0fb2b8f7
commit 6e99701c47
2 changed files with 4 additions and 4 deletions

View File

@@ -620,9 +620,9 @@ $(function()
}
},
{
text: Dict.S('UI:Button:Save'),
text: Dict.S('UI:Button:Send'),
class: 'ibo-is-primary',
click: function() {
click: function () {
const bDoNotShowAgain = $(this).find(me.js_selectors.caselog_entry_forms_confirmation_preference_input).prop('checked');
if (bDoNotShowAgain) {
me._SaveSubmitConfirmationPref();

View File

@@ -48,7 +48,7 @@ class CaseLogEntryFormFactory
*/
protected static function PrepareCancelButton(): Button
{
return ButtonUIBlockFactory::MakeForSecondaryAction(Dict::S('UI:Button:Cancel'), 'cancel', 'cancel');
return ButtonUIBlockFactory::MakeForCancel(Dict::S('UI:Button:Cancel'), 'cancel', 'cancel');
}
/**
@@ -56,7 +56,7 @@ class CaseLogEntryFormFactory
*/
protected static function PrepareSaveButton(): Button
{
$oButton = ButtonUIBlockFactory::MakeForPrimaryAction(Dict::S('UI:Button:Save'), 'save', 'save');
$oButton = ButtonUIBlockFactory::MakeForPrimaryAction(Dict::S('UI:Button:Send'), 'save', 'save');
$oButton->SetIconClass('fas fa-paper-plane');
return $oButton;