Skip to content

Commit

Permalink
Merge pull request #1156 from proditis/backend-help-updates
Browse files Browse the repository at this point in the history
Backend help updates
  • Loading branch information
proditis authored Apr 22, 2024
2 parents acfa2ae + 01acbbb commit fc27a65
Show file tree
Hide file tree
Showing 296 changed files with 1,225 additions and 550 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function safeUp()
$pages=intval($this->db->createCommand("SELECT count(*) FROM pages WHERE id=2")->queryScalar());
if($pages===0)
{
$this->insert('pages',['title'=>'Privacy Policy','body'=>'Privacy Policy']);
$this->insert('pages',['title'=>'Privacy Policy','body'=>'Privacy Policy','slug'=>'privacy-policy']);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function safeUp()
$pages=intval($this->db->createCommand("SELECT count(*) FROM pages WHERE id=1")->queryScalar());
if($pages===0)
{
$this->insert('pages',['title'=>'Privacy Policy','body'=>'Privacy Policy']);
$this->insert('pages',['title'=>'Terms and Conditions','body'=>'Terms and Conditions','slug'=>'terms-and-conditions']);
}

}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

use yii\db\Migration;

/**
* Handles adding columns to table `{{%page}}`.
*/
class m240420_224025_add_slug_column_to_pages_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
$this->addColumn('{{%pages}}', 'slug', $this->string()->after('title'));
$this->execute('UPDATE pages SET slug=title');
$this->alterColumn('{{%pages}}','slug',$this->string()->after('title')->notNull()->unique());
}

/**
* {@inheritdoc}
*/
public function safeDown()
{
$this->dropColumn('{{%page}}', 'slug');
}
}
3 changes: 2 additions & 1 deletion backend/modules/activity/views/challenge-solver/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][] = $this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/index.md'), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/challenge-solver/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/index.md'), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/challenge-solver/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][] = 'Update';
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/index.md'), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/headshot/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][]=$this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/create.md'), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/headshot/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][]=['label' => $this->title, 'url' => ['index']];
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/index.md'), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/headshot/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
$this->params['breadcrumbs'][]=Yii::t('app', 'Update');
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/create.md'), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/inquiry/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][] = $this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/index.md'), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/inquiry/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/index.md'), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/inquiry/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/index.md'), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/notification/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][]=$this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/notification/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][]='Update';
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-badge/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][]=$this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-badge/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-badge/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
$this->params['breadcrumbs'][]='Update';
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-finding/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][]=$this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-finding/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-finding/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
$this->params['breadcrumbs'][]='Update';
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-hint/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][]=$this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-hint/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-hint/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
$this->params['breadcrumbs'][]='Update';
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-question/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][]=$this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-question/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-question/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
$this->params['breadcrumbs'][]='Update';
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-score/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][]=$this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-score/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][]='Update';
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-target-help/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][] = $this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-target-help/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-target-help/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
$this->params['breadcrumbs'][] = Yii::t('app', 'Update');
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-treasure/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][]=$this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-treasure/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
$this->params['breadcrumbs'][] = ['label' => $this->title, 'url' => ['index']];
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-treasure/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
$this->params['breadcrumbs'][]='Update';
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
3 changes: 2 additions & 1 deletion backend/modules/activity/views/player-vpn-history/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
$this->params['breadcrumbs'][]=$this->title;
yii\bootstrap5\Modal::begin([
'title' => '<h2><i class="bi bi-info-circle-fill"></i> '.Html::encode($this->title).' Help</h2>',
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help','class'=>'btn btn-info'],
'toggleButton' => ['label' => '<i class="bi bi-info-circle-fill"></i> Help', 'class' => 'btn btn-info'],
'options'=>['class'=>'modal-lg']
]);
echo yii\helpers\Markdown::process($this->render('help/'.$this->context->action->id), 'gfm');
yii\bootstrap5\Modal::end();
Expand Down
Loading

0 comments on commit fc27a65

Please sign in to comment.