Commit cd566133 by Junaid Rahman pv

created map widget(PlacePicker)

parent 8d20d771
......@@ -23,14 +23,14 @@ use common\widgets\PlacePicker;
<div class="row">
<div class="col-md-4">
<?= $form->field($model, 'category_id')->dropDownList($categories, ['prompt' => ' ']) ?>
<?= $form->field($model, 'category_id')->dropDownList($categories, ['prompt' => '-Select category-']) ?>
</div>
</div>
<div class="row">
<div class="col-md-4">
<?= $form->field($model, 'district_id')->dropDownList($districts, ['prompt' => ' ']) ?>
<?= $form->field($model, 'district_id')->dropDownList($districts, ['prompt' => '-Select district-']) ?>
</div>
</div>
......@@ -45,24 +45,16 @@ use common\widgets\PlacePicker;
<?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?>
</div>
<div class="col-md-4">
<?= $form->field($model, 'slug')
->hint(Yii::t('backend',
'If you\'ll leave this field empty, slug will be generated automatically'))
->textInput(['maxlength' => true]) ?>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="col-md-8">
<?= $form->field($model, 'address')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'address')->textarea(['rows' => 7]) ?>
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="col-md-6">
<?= $form->field($model, 'landmark')->textInput(['maxlength' => true]) ?>
......@@ -74,15 +66,11 @@ use common\widgets\PlacePicker;
<?= $form->field($model, 'mobile_no')->textInput(['maxlength' => true]) ?>
</div>
</div>
<div class="row">
<div class="col-md-4">
<?= $form->field($model, 'toll_free_no')->textInput(['maxlength' => true]) ?>
</div>
</div>
<div class="row">
<div class="col-md-4">
<?= $form->field($model, 'contact_no')->textInput(['maxlength' => true]) ?>
......@@ -104,9 +92,24 @@ use common\widgets\PlacePicker;
</div>
</div>
<div class="row">
<div class="col-md-4">
<div class="col-md-8">
<?= $form->field($model, 'description')->textarea(['rows' => 6]) ?>
<?= $form->field($model, 'description')->widget(
\yii\imperavi\Widget::className(),
[
'plugins' => [],
'options' => [
'minHeight' => 400,
'maxHeight' => 400,
'buttonSource' => true,
'convertDivs' => false,
'removeEmptyTags' => false,
'imageUpload' => Yii::$app->urlManager->createUrl(['/file-storage/upload-imperavi']),
'buttons' => ['bold', 'alignment'],
'pasteCallback' => new \yii\web\JsExpression("function(html){ return this.clean.getPlainText(html) ;}")
]
]
) ?>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment