-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path_form.php
More file actions
104 lines (76 loc) · 3.48 KB
/
_form.php
File metadata and controls
104 lines (76 loc) · 3.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
use yii\helpers\Html;
use skeeks\cms\modules\admin\widgets\form\ActiveFormUseTab as ActiveForm;
use skeeks\cms\seo\models\SeoSitemapTask;
/* @var $this yii\web\View */
/* @var $action \skeeks\cms\modules\admin\actions\modelEditor\AdminOneModelEditAction */
/* @var $model \skeeks\cms\seo\models\SeoSitemapTask */
?>
<? $form = ActiveForm::begin(); ?>
<?= $form->fieldSet(\Yii::t('skeeks/seo','Basic information')); ?>
<?= $form->field($model, 'active')->checkbox(); ?>
<?= $form->field($model, 'cms_site_id')->dropDownList(\yii\helpers\ArrayHelper::map(
\skeeks\cms\models\CmsSite::find()->all(), 'id', 'name'
));
?>
<?= $form->field($model, 'file_path')->textInput(['maxlength' => 255]) ?>
<?= $form->field($model, 'is_tree')->checkbox(); ?>
<?= $form->fieldSelectMulti($model, 'content_ids', \skeeks\cms\models\CmsContent::getDataForSelect()); ?>
<?= $form->fieldSetEnd(); ?>
<? if (!$model->isNewRecord) : ?>
<?= $form->fieldSet(\Yii::t('skeeks/seo','Additional information')); ?>
<?= \yii\widgets\DetailView::widget([
'model' => $model,
'attributes' =>
[
[
'attribute' => 'id',
'label' => \Yii::t('skeeks/seo','Id'),
],
[
'attribute' => 'created_at',
'value' => \Yii::$app->formatter->asDatetime($model->created_at, 'medium') . "(" . \Yii::$app->formatter->asRelativeTime($model->created_at) . ")",
],
]
]); ?>
<?= $form->fieldSetEnd(); ?>
<?= $form->fieldSet(\Yii::t('skeeks/seo','For developers')); ?>
<div class="sx-block">
<h3><?=\Yii::t('skeeks/seo','Additional information that may be useful in some cases, the developers.');?></h3>
<small><?=\Yii::t('skeeks/seo','For the convenience of viewing the data, you can use the service');?>: <a href="http://jsonformatter.curiousconcept.com/#" target="_blank">http://jsonformatter.curiousconcept.com/#</a></small>
</div>
<hr />
<?= \yii\widgets\DetailView::widget([
'model' => $model,
'attributes' =>
[
[
'attribute' => 'data_server',
'format' => 'raw',
'label' => 'SERVER',
'value' => "<textarea class='form-control' rows=\"10\">" . \yii\helpers\Json::encode($model->data_server) . "</textarea>"
],
[
'attribute' => 'data_cookie',
'format' => 'raw',
'label' => 'COOKIE',
'value' => "<textarea class='form-control' rows=\"5\">" . \yii\helpers\Json::encode($model->data_cookie) . "</textarea>"
],
[
'attribute' => 'data_session',
'format' => 'raw',
'label' => 'SESSION',
'value' => "<textarea class='form-control' rows=\"5\">" . \yii\helpers\Json::encode($model->data_session) . "</textarea>"
],
[
'attribute' => 'data_request',
'format' => 'raw',
'label' => 'REQUEST',
'value' => "<textarea class='form-control' rows=\"10\">" . \yii\helpers\Json::encode($model->data_request) . "</textarea>"
],
]
]); ?>
<?= $form->fieldSetEnd(); ?>
<? endif; ?>
<?= $form->buttonsStandart($model); ?>
<? ActiveForm::end(); ?>