Commit 07d481f7 by Junaid Rahman pv

modified state,district and business module

parent 4a4baa4c
......@@ -19,7 +19,7 @@ class BusinessSearch extends Business
{
return [
[['id', 'category_id', 'district_id', 'status', 'created_at', 'updated_at'], 'integer'],
[['domain_name', 'name', 'slug', 'address', 'landmark', 'mobile_no', 'toll_free_no', 'contact_no', 'fax', 'email', 'description', 'logo_base_url', 'logo_path', 'latitude', 'logitude'], 'safe'],
[['domain_name', 'name', 'slug', 'address', 'landmark', 'mobile_no', 'toll_free_no', 'contact_no', 'fax', 'email', 'description', 'logo_base_url', 'logo_path', 'latitude', 'longitude'], 'safe'],
];
}
......@@ -81,7 +81,7 @@ class BusinessSearch extends Business
->andFilterWhere(['like', 'logo_base_url', $this->logo_base_url])
->andFilterWhere(['like', 'logo_path', $this->logo_path])
->andFilterWhere(['like', 'latitude', $this->latitude])
->andFilterWhere(['like', 'logitude', $this->logitude]);
->andFilterWhere(['like', 'longitude', $this->longitude]);
return $dataProvider;
}
......
......@@ -135,7 +135,7 @@ use yii\widgets\ActiveForm;
<?php echo $form->field($model, 'latitude')->textInput([['maxlength' => true]]) ?>
</div>
<div class="col-md-4">
<?php echo $form->field($model, 'logitude')->textInput(['maxlength' => true]) ?>
<?php echo $form->field($model, 'longitude')->textInput(['maxlength' => true]) ?>
</div>
</div>
<div class="row">
......
......@@ -26,7 +26,7 @@ use yii\behaviors\TimestampBehavior;
* @property string $logo_base_url
* @property string $logo_path
* @property string $latitude
* @property string $logitude
* @property string $longitude
* @property integer $status
* @property integer $created_at
* @property integer $updated_at
......@@ -78,7 +78,7 @@ class Business extends \yii\db\ActiveRecord
[['slug', 'address', 'email', 'logo_base_url', 'logo_path'], 'string', 'max' => 1024],
[['landmark'], 'string', 'max' => 500],
[['contact_no'], 'string', 'max' => 150],
[['latitude', 'logitude'], 'string', 'max' => 30],
[['latitude', 'longitude'], 'string', 'max' => 30],
[['category_id'], 'exist', 'skipOnError' => true, 'targetClass' => Category::className(), 'targetAttribute' => ['category_id' => 'id']],
[['district_id'], 'exist', 'skipOnError' => true, 'targetClass' => District::className(), 'targetAttribute' => ['district_id' => 'id']],
];
......@@ -107,7 +107,7 @@ class Business extends \yii\db\ActiveRecord
'logo_base_url' => Yii::t('common', 'Logo Base Url'),
'logo_path' => Yii::t('common', 'Logo Path'),
'latitude' => Yii::t('common', 'Latitude'),
'logitude' => Yii::t('common', 'Logitude'),
'longitude' => Yii::t('common', 'Longitude'),
'status' => Yii::t('common', 'Status'),
'created_at' => Yii::t('common', 'Created At'),
'updated_at' => Yii::t('common', 'Updated At'),
......
......@@ -47,10 +47,8 @@
"bower-asset/html5shiv": "^3.0",
"bower-asset/jquery-slimscroll": "^1.3",
"bower-asset/flot": "^0.8",
"symfony/process": "^3.0",
"petrabarus/yii2-googleplacesautocomplete": "dev-master",
"symfony/process": "^3.0",
"wbraganca/yii2-dynamicform": "*"
"symfony/process": "^3.0"
},
"require-dev": {
"yiisoft/yii2-debug": "^2.0.0",
......@@ -61,7 +59,7 @@
"codeception/specify": "^0.4.3",
"codeception/verify": "^0.3.0"
},
"minimum-stability": "dev",
"minimum-stability": "stable",
"opauth/openid": "dev-master",
"suggest": {
"trntv/yii2-debug-xhprof": "dev-master@dev"
......
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