77d77c34
Anastasia
stock
|
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
<?= Html::label('Координаты'); ?>
<?= Html::textInput(
"Shop[coordsArr][lat]",
( isset($model_lang->shop->coordsArr[ 'lat' ]) ) ? $model_lang->shop->coordsArr[ 'lat' ] : '',
[
'size' => 20,
'type' => 'text',
'id' => 'lat',
]
) ?>
<?= Html::textInput(
"Shop[coordsArr][lng]",
( isset($model_lang->shop->coordsArr[ 'lng' ]) ) ? $model_lang->shop->coordsArr[ 'lng' ] : '',
[
'size' => 20,
'type' => 'text',
'id' => 'lng',
]
) ?>
<div id="map_canvas" style="height: 300px;"></div>
|
a874d14e
Anastasia
stock
|
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
|
<?= SlugifyDecorator::decorate(
$form->field($model_lang, '[' . $language->id . ']aliasValue'),
[ '/alias/slugify' ],
$attributeField,
false,
$language->id
)
->textInput([ 'maxlength' => true ]); ?>
<?php
echo $form->field($model_lang, '[' . $language->id . ']description')
->widget(
TinyMce::className(),
[
'options' => [ 'rows' => 6 ],
'language' => 'ru',
'clientOptions' => [
'file_browser_callback' => new yii\web\JsExpression(
"function(field_name, url, type, win) {
window.open('" . yii\helpers\Url::to(
[
'imagemanager/manager',
'view-mode' => 'iframe',
'select-type' => 'tinymce',
]
) . "&tag_name='+field_name,'','width=800,height=540 ,toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no');
}"
),
'plugins' => [
"advlist autolink lists link charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste image",
],
'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | code",
],
]
);
?>
|