Commit 2e12ad4c authored by Roman Ondráček's avatar Roman Ondráček

Config: rename labels in the scheduler's task configuration form

Signed-off-by: Roman Ondráček's avatarRoman Ondráček <ondracek.roman@centrum.cz>
parent 36c3a231
Pipeline #2304 passed with stages
in 12 minutes and 46 seconds
......@@ -112,14 +112,14 @@ class SchedulerFormFactory {
->setRequired(self::PREFIX . 'messages.clientId')
->checkDefaultValue(false);
$this->addTimeSpec($form);
$form->addGroup(self::PREFIX . 'tasks.title');
$form->addGroup(self::PREFIX . 'message.title');
/**
* @var Multiplier $tasks
*/
$tasks = $form->addMultiplier('task', [$this, 'createTasksMultiplier'], 1);
$tasks->addCreateButton(self::PREFIX . 'tasks.add')
$tasks->addCreateButton(self::PREFIX . 'message.add')
->addClass('btn btn-success');
$tasks->addRemoveButton(self::PREFIX . 'tasks.remove')
$tasks->addRemoveButton(self::PREFIX . 'message.remove')
->addClass('btn btn-danger');
$form->addGroup();
$form->addSubmit('save', self::PREFIX . 'save')
......@@ -147,7 +147,7 @@ class SchedulerFormFactory {
->setPrompt(self::PREFIX . 'messages.messaging-prompt')
->setRequired(self::PREFIX . 'messages.messaging')
->checkDefaultValue(false);
$container->addTextArea('message', self::PREFIX . 'message')
$container->addTextArea('message', self::PREFIX . 'message.label')
->setRequired(self::PREFIX . 'messages.message');
}
......
......@@ -299,12 +299,12 @@ scheduler:
periodic: Periodic
period: Period in seconds
startTime: Start time
tasks:
title: Tasks
add: Add task
remove: Remove task
message:
title: Messages
label: 'Message (JSON request)'
add: Add message
remove: Remove message
messaging: Messaging
message: Message
mType: Message types
msgId: Message ID
returnVerbose: Enable verbose response
......
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