Skip to content

Commit

Permalink
Enh: In the module configuration, add syntax highlighting to SCSS cod…
Browse files Browse the repository at this point in the history
…e (Custom code section)
  • Loading branch information
marc-farre committed Oct 9, 2024
1 parent 7b69d4f commit 4f721e7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Changelog
=========

Unreleased
--------------------
- Enh: In the module configuration, add syntax highlighting to SCSS code (Custom code section)

2.0.6 (October 4, 2024)
--------------------
- Fix #25: Dark Mode: fix new message background color (mail module)
Expand Down
1 change: 1 addition & 0 deletions docs/DEVELOPER.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Reset module configuration to default.
The ZIP file mustn't contain:
- .gitignore
- .git
- .github
- composer.lock
- composer.phar
- build-modified-less-and-css.sh
Expand Down
3 changes: 2 additions & 1 deletion views/config/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use humhub\modules\admin\permissions\ManageSettings;
use humhub\modules\cleanTheme\Module;
use humhub\modules\ui\form\widgets\ActiveForm;
use humhub\modules\ui\form\widgets\CodeMirrorInputWidget;
use humhub\modules\ui\view\components\View;
use humhub\widgets\Button;
use kartik\widgets\ColorInput;
Expand Down Expand Up @@ -161,7 +162,7 @@
<?= $form->endCollapsibleFields() ?>

<?= $form->beginCollapsibleFields(Yii::t('CleanThemeModule.config', 'Custom code')) ?>
<?= $form->field($model, 'scss')->textarea(['rows' => 20]) ?>
<?= $form->field($model, 'scss')->widget(CodeMirrorInputWidget::class, ['mode' => 'text/x-scss']) ?>
<?= $form->endCollapsibleFields() ?>

<?= Button::asLink(Yii::t('CleanThemeModule.config', 'Reset everything to default values'))
Expand Down

0 comments on commit 4f721e7

Please sign in to comment.