Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
test-project
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Junaid Rahman pv
test-project
Commits
cd566133
Commit
cd566133
authored
Sep 06, 2016
by
Junaid Rahman pv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
created map widget(PlacePicker)
parent
8d20d771
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
19 deletions
+22
-19
_form.php
backend/modules/business/views/business/_form.php
+22
-19
No files found.
backend/modules/business/views/business/_form.php
View file @
cd566133
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment