Skip to content

Commit 3359bbc

Browse files
authored
Merge pull request #26 from humhub-contrib/fix/1042-update-bs5
Update bootstrap buttons and links
2 parents e032c53 + 0501055 commit 3359bbc

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

docs/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Changelog
22
=========
33

4+
1.1.2 (Unreleased)
5+
-------------------------
6+
- Fix #26: Update Bootstrap buttons and links
7+
48
1.1.1 (February 10, 2026)
59
-------------------------
610
- Fix #21: Missing icon in Context Menu (File handler)

module.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"diagrams",
88
"visualization"
99
],
10-
"version": "1.1.1",
10+
"version": "1.1.2",
1111
"humhub": {
1212
"minVersion": "1.18"
1313
},

views/admin/index.php

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,17 @@
11
<?php
22

3+
use humhub\modules\drawio\models\ConfigureForm;
4+
use humhub\widgets\bootstrap\Button;
35
use humhub\widgets\form\ActiveForm;
4-
use yii\helpers\Html;
56

7+
/* @var ConfigureForm $model */
68
?>
7-
89
<div class="panel panel-default">
9-
10-
<div class="panel-heading"><?= Yii::t('DrawioModule.base', '<strong>Draw.io </strong> module configuration'); ?></div>
11-
10+
<div class="panel-heading"><?= Yii::t('DrawioModule.base', '<strong>Draw.io </strong> module configuration') ?></div>
1211
<div class="panel-body">
13-
14-
<?php $form = ActiveForm::begin(['id' => 'configure-form']); ?>
15-
<div class="mb-3">
16-
<?= $form->field($model, 'serverUrl'); ?>
17-
</div>
18-
19-
<div class="mb-3">
20-
<?= Html::submitButton('Save', ['class' => 'btn btn-primary', 'data-ui-loader' => '']) ?>
21-
</div>
22-
23-
<?php ActiveForm::end(); ?>
12+
<?php $form = ActiveForm::begin(['id' => 'configure-form']) ?>
13+
<?= $form->field($model, 'serverUrl') ?>
14+
<?= Button::save()->submit() ?>
15+
<?php ActiveForm::end() ?>
2416
</div>
2517
</div>

views/create/index.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
11
<?php
22

3-
use humhub\helpers\Html;
43
use humhub\modules\drawio\assets\Assets;
4+
use humhub\modules\drawio\models\CreateDocument;
55
use humhub\widgets\modal\Modal;
6+
use humhub\widgets\modal\ModalButton;
7+
8+
/* @var CreateDocument $model */
9+
/* @var string $ext */
610

711
Assets::register($this);
812
?>
913

1014
<?php $form = Modal::beginFormDialog([
1115
'title' => Yii::t('DrawioModule.base', '<strong>Create</strong> draw.io diagram'),
12-
'footer' => Html::submitButton('Save', ['data-action-click' => 'drawio.createSubmit', 'data-ui-loader' => '', 'class' => 'btn btn-primary']),
16+
'footer' => ModalButton::save()->action('drawio.createSubmit'),
1317
]) ?>
1418

1519
<?= $form->field($model, 'fileName', ['template' => '{label}<div class="input-group">{input}<div class="input-group-text">' . $ext . '</div></div>{hint}{error}']); ?>

0 commit comments

Comments
 (0)