@@ -45,9 +45,12 @@ |
||
| 45 | 45 | <?php if (class_exists(ImperaviRedactor::class)): ?> |
| 46 | 46 | <?= $form->field($translation, 'body') |
| 47 | 47 | ->widget(ImperaviRedactor::class) ?> |
| 48 | - <?php else: ?> |
|
| 48 | + <?php else { |
|
| 49 | + : ?> |
|
| 49 | 50 | <?= $form->field($translation, 'body')->textarea() ?> |
| 50 | - <?php endif; ?> |
|
| 51 | + <?php endif; |
|
| 52 | +} |
|
| 53 | +?> |
|
| 51 | 54 | <?= $form->field($translation, 'hint') |
| 52 | 55 | ->textInput(['disabled' => true]) ?> |
| 53 | 56 | <?php endforeach ?> |
@@ -45,9 +45,12 @@ |
||
| 45 | 45 | <?php if (class_exists(ImperaviRedactor::class)): ?> |
| 46 | 46 | <?= $form->field($translation, 'body') |
| 47 | 47 | ->widget(ImperaviRedactor::class) ?> |
| 48 | - <?php else: ?> |
|
| 48 | + <?php else { |
|
| 49 | + : ?> |
|
| 49 | 50 | <?= $form->field($translation, 'body')->textarea() ?> |
| 50 | - <?php endif; ?> |
|
| 51 | + <?php endif; |
|
| 52 | +} |
|
| 53 | +?> |
|
| 51 | 54 | <?= $form->field($translation, 'hint') ?> |
| 52 | 55 | <?php endforeach ?> |
| 53 | 56 | <?= Html::submitButton( |
@@ -73,7 +73,8 @@ discard block |
||
| 73 | 73 | ], |
| 74 | 74 | <?php endforeach; ?>] |
| 75 | 75 | ); |
| 76 | -<?php else: ?> |
|
| 76 | +<?php else { |
|
| 77 | + : ?> |
|
| 77 | 78 | $this->insert($this->translationTableName, [ |
| 78 | 79 | 'templateId' => $templateId, |
| 79 | 80 | 'language' => Yii::$app->language, |
@@ -81,7 +82,9 @@ discard block |
||
| 81 | 82 | 'body' => '<?= $generator->body ?>', |
| 82 | 83 | 'hint' => '<?= $generator->hint ?>', |
| 83 | 84 | ]); |
| 84 | -<?php endif; ?> |
|
| 85 | +<?php endif; |
|
| 86 | +} |
|
| 87 | +?> |
|
| 85 | 88 | } |
| 86 | 89 | |
| 87 | 90 | /** |