chg: [servers:edit] Added indicative text for serverRuleElements

pull/7386/head
mokaddem 2021-04-28 14:58:31 +02:00
parent bff20114d7
commit 960d46ec8a
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
3 changed files with 11 additions and 1 deletions

View File

@ -226,6 +226,9 @@
'data' => [
'title' => __('Set PULL rules'),
'content' => [
[
'html' => sprintf('<h5 style="font-weight: normal;"><i>%s</i></h5>', __('Configure the rules to be applied when PULLing data to the server'))
],
[
'html' => $this->element('serverRuleElements/pull', [
'context' => 'feeds',

View File

@ -229,6 +229,9 @@
'data' => [
'title' => __('Set PULL rules'),
'content' => [
[
'html' => sprintf('<h5 style="font-weight: normal;"><i>%s</i></h5>', __('Configure the rules to be applied when PULLing data from the server'))
],
[
'html' => $this->element('serverRuleElements/pull', [
'context' => 'feeds',

View File

@ -187,6 +187,9 @@
'data' => [
'title' => __('Set PUSH rules'),
'content' => [
[
'html' => sprintf('<h5 style="font-weight: normal;"><i>%s</i></h5>', __('Configure the rules to be applied when PUSHing data to the server'))
],
[
'html' => $this->element('serverRuleElements/push', [
'allTags' => $allTags,
@ -205,7 +208,8 @@
];
echo $this->element('genericElements/infoModal', $modalData);
$modalData['data']['title'] = __('Set PULL rules');
$modalData['data']['content'][0]['html'] = $this->element('serverRuleElements/pull', [
$modalData['data']['content'][1]['html'] = sprintf('<h5 style="font-weight: normal;"><i>%s</i></h5>', __('Configure the rules to be applied when PULLing data from the server'));
$modalData['data']['content'][1]['html'] = $this->element('serverRuleElements/pull', [
'context' => 'servers',
'ruleObject' => $pullRules
]);