mirror of
https://github.com/humhub/humhub.git
synced 2025-02-24 03:06:04 +01:00
#4586 Added attributeHints
This commit is contained in:
parent
745315bbe8
commit
d90a2b7ad7
@ -1,11 +1,9 @@
|
||||
<?php
|
||||
|
||||
use humhub\modules\ui\form\widgets\SortOrderField;
|
||||
use humhub\widgets\Button;
|
||||
use yii\widgets\ActiveForm;
|
||||
use yii\helpers\Url;
|
||||
use yii\helpers\Html;
|
||||
use humhub\compat\CHtml;
|
||||
use humhub\libs\Html;
|
||||
use humhub\modules\user\widgets\UserPickerField;
|
||||
use humhub\modules\space\widgets\SpacePickerField;
|
||||
|
||||
@ -30,7 +28,7 @@ use humhub\modules\space\widgets\SpacePickerField;
|
||||
|
||||
<div class="reassign-spaces">
|
||||
<?= Html::a(Yii::t('AdminModule.modules', 'Reassign All'), Url::to(['/admin/group/reassign-all', 'id' => $group->id]), ['class' => 'btn btn-primary btn-reassign', 'data-method' => 'POST', 'data-confirm' => Yii::t('AdminModule.modules', 'Are you sure? Reassign default spaces to all users?')]); ?>
|
||||
<div class="help-block">Reassign default spaces to all users</div>
|
||||
<div class="help-block"><?=$group->attributeHints()['reassign-all-help']?></div>
|
||||
</div>
|
||||
|
||||
<?php if ($isManagerApprovalSetting && !$group->is_admin_group): ?>
|
||||
@ -54,7 +52,7 @@ use humhub\modules\space\widgets\SpacePickerField;
|
||||
<?= $form->field($group, 'show_at_directory')->checkbox(); ?>
|
||||
<?= $form->field($group, 'sort_order')->widget(SortOrderField::class) ?>
|
||||
|
||||
<?= CHtml::submitButton(Yii::t('AdminModule.user', 'Save'), ['class' => 'btn btn-primary', 'data-ui-loader' => ""]); ?>
|
||||
<?= Html::submitButton(Yii::t('AdminModule.user', 'Save'), ['class' => 'btn btn-primary', 'data-ui-loader' => ""]); ?>
|
||||
|
||||
<?php
|
||||
if ($showDeleteButton) {
|
||||
|
@ -93,6 +93,16 @@ class Group extends ActiveRecord
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function attributeHints()
|
||||
{
|
||||
return [
|
||||
'reassign-all-help' => Yii::t('AdminModule.settings','Reassign default spaces to all users'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* @return null|Space[]
|
||||
* @since 1.8
|
||||
|
Loading…
x
Reference in New Issue
Block a user