Commit 07d481f7 by Junaid Rahman pv

modified state,district and business module

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