-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from humhub-contrib/enh/9-dashboard-display-op…
…tions New options for widget visibility on dashboard
- Loading branch information
Showing
8 changed files
with
134 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,31 @@ | ||
<?php | ||
|
||
use yii\helpers\Url; | ||
use yii\helpers\Html; | ||
use humhub\widgets\DataSaved; | ||
use humhub\compat\CActiveForm; | ||
use humhub\libs\Html; | ||
use humhub\modules\newmembers\forms\NewMembersConfigureForm; | ||
use humhub\widgets\Button; | ||
use yii\bootstrap\ActiveForm; | ||
|
||
/* @var NewMembersConfigureForm $model */ | ||
?> | ||
|
||
<div class="panel panel-default"> | ||
<div | ||
class="panel-heading"><?= Yii::t('NewmembersModule.base', '<strong>New Members</strong> Module Configuration'); ?></div> | ||
<div class="panel-heading"><?= Yii::t('NewmembersModule.base', '<strong>New Members</strong> Module Configuration'); ?></div> | ||
<div class="panel-body"> | ||
<?php $form = ActiveForm::begin() ?> | ||
|
||
<br> | ||
|
||
<?php $form = CActiveForm::begin(); ?> | ||
|
||
<?= $form->errorSummary($model); ?> | ||
|
||
<div class="form-group"> | ||
<?= $form->labelEx($model, 'panelTitle'); ?> | ||
<?= $form->textField($model, 'panelTitle', ['class' => 'form-control']); ?> | ||
<?= $form->error($model, 'panelTitle'); ?> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<?= $form->labelEx($model, 'maxMembers'); ?> | ||
<?= $form->textField($model, 'maxMembers', ['class' => 'form-control']); ?> | ||
<?= $form->error($model, 'maxMembers'); ?> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<?= $form->labelEx($model, 'fromDate'); ?> | ||
<?= $form->textField($model, 'fromDate', ['class' => 'form-control']); ?> | ||
<p class="help-block"><?= Yii::t('NewmembersModule.base', 'This value is maybe necessary after an import from existing users. Let it empty if your user base grows naturally.'); ?></p> | ||
<?= $form->error($model, 'fromDate'); ?> | ||
<?= $form->field($model, 'panelTitle') ?> | ||
<?= $form->field($model, 'maxMembers') ?> | ||
<?= $form->field($model, 'fromDate') ?> | ||
|
||
</div> | ||
<?= Html::label(Yii::t('NewmembersModule.base', 'Show on dashboard'), null, ['class' => 'control-label']) ?> | ||
<?= $form->field($model, 'displayForMembers')->checkbox() ?> | ||
<?= $form->field($model, 'displayForGuests')->checkbox() ?> | ||
|
||
<hr> | ||
<?php echo Html::submitButton(Yii::t('NewmembersModule.base', 'Save'), ['class' => 'btn btn-primary']); ?> | ||
<a class="btn btn-default" | ||
href="<?= Url::to(['/admin/module']); ?>"><?= Yii::t('NewmembersModule.base', 'Back to modules'); ?></a> | ||
|
||
<!-- show flash message after saving --> | ||
<?= DataSaved::widget(); ?> | ||
<?= Button::save()->submit() ?> | ||
<?= Button::defaultType(Yii::t('NewmembersModule.base', 'Back to modules'))->link(['/admin/module']) ?> | ||
|
||
<?php CActiveForm::end(); ?> | ||
<?php ActiveForm::end() ?> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters