Commit f69619ab authored by Ruslan Karimov's avatar Ruslan Karimov

#2360. Создать раздел Решения для бизнеса + страница

parent 10a162a1
...@@ -109,6 +109,8 @@ use common\modules\bids\models\BidFile; ...@@ -109,6 +109,8 @@ use common\modules\bids\models\BidFile;
Имя: <?php echo ((isset($model->name)) ? $model->name : 'Не указано');?><br> Имя: <?php echo ((isset($model->name)) ? $model->name : 'Не указано');?><br>
Наименование компании: <?php echo ((isset($model->company_name)) ? $model->company_name : 'Не указано');?><br>
Телефон: <?php echo ((isset($model->phone)) ? $model->phone : 'Не указано');?><br> Телефон: <?php echo ((isset($model->phone)) ? $model->phone : 'Не указано');?><br>
Email: <?php echo ((isset($model->email)) ? $model->email : 'Не указано'); ?><br> Email: <?php echo ((isset($model->email)) ? $model->email : 'Не указано'); ?><br>
......
...@@ -16,6 +16,8 @@ use common\modules\bids\models\BidFile; ...@@ -16,6 +16,8 @@ use common\modules\bids\models\BidFile;
Имя: <?php echo ((isset($model->name)) ? $model->name : 'Не указано');?> Имя: <?php echo ((isset($model->name)) ? $model->name : 'Не указано');?>
Наименование компании: <?php echo ((isset($model->company_name)) ? $model->company_name : 'Не указано');?>
Телефон: <?php echo ((isset($model->phone)) ? $model->phone : 'Не указано');?> Телефон: <?php echo ((isset($model->phone)) ? $model->phone : 'Не указано');?>
Email: <?php echo ((isset($model->email)) ? $model->email : 'Не указано'); ?> Email: <?php echo ((isset($model->email)) ? $model->email : 'Не указано'); ?>
......
<?php
use yii\db\Migration;
class m181119_091240_bid_add_company_name_field extends Migration
{
public function safeUp()
{
$this->addColumn('bids', 'company_name', $this->string()->comment('Наименование компании'));
}
public function safeDown()
{
$this->dropColumn('bids', 'company_name');
}
}
...@@ -23,11 +23,13 @@ class Bid extends \common\components\ActiveRecordModel ...@@ -23,11 +23,13 @@ class Bid extends \common\components\ActiveRecordModel
const SCENARIO_PROJECT = 'project'; const SCENARIO_PROJECT = 'project';
const SCENARIO_CALLBACK = 'callback'; const SCENARIO_CALLBACK = 'callback';
const SCENARIO_SUBSCRIBE = 'subscribe'; const SCENARIO_SUBSCRIBE = 'subscribe';
const SCENARIO_BUSINESS = 'business';
const FORM_SUBSCRIBE = 'subscribe'; const FORM_SUBSCRIBE = 'subscribe';
const FORM_CALLBACK = 'callback'; const FORM_CALLBACK = 'callback';
const FORM_PROJECT = 'project'; const FORM_PROJECT = 'project';
const FORM_MESSAGE = 'message'; const FORM_MESSAGE = 'message';
const FORM_BUSINESS = 'business';
const TAG_INVOLVEMENT = 'Вовлечение'; const TAG_INVOLVEMENT = 'Вовлечение';
const TAG_TREATMENT = 'Обращение'; const TAG_TREATMENT = 'Обращение';
...@@ -37,6 +39,7 @@ class Bid extends \common\components\ActiveRecordModel ...@@ -37,6 +39,7 @@ class Bid extends \common\components\ActiveRecordModel
self::FORM_CALLBACK => 'Обратный звонок', self::FORM_CALLBACK => 'Обратный звонок',
// self::FORM_SUBSCRIBE => 'Подписка', // self::FORM_SUBSCRIBE => 'Подписка',
self::FORM_MESSAGE => 'Сообщение с сайта', self::FORM_MESSAGE => 'Сообщение с сайта',
self::FORM_BUSINESS => 'Расчет для бизнес решения'
]; ];
public static $tag_titles = [ public static $tag_titles = [
...@@ -79,6 +82,8 @@ class Bid extends \common\components\ActiveRecordModel ...@@ -79,6 +82,8 @@ class Bid extends \common\components\ActiveRecordModel
[['name', 'phone'], 'required', 'on' => self::SCENARIO_CALLBACK], [['name', 'phone'], 'required', 'on' => self::SCENARIO_CALLBACK],
[['phone'], 'required', 'on' => self::SCENARIO_BUSINESS],
[['email'], 'required', 'on' => self::SCENARIO_SUBSCRIBE], [['email'], 'required', 'on' => self::SCENARIO_SUBSCRIBE],
[['email'], 'unique', 'on' => self::SCENARIO_SUBSCRIBE, 'message' => 'Вы уже подписаны на новости блога'], [['email'], 'unique', 'on' => self::SCENARIO_SUBSCRIBE, 'message' => 'Вы уже подписаны на новости блога'],
...@@ -104,6 +109,7 @@ class Bid extends \common\components\ActiveRecordModel ...@@ -104,6 +109,7 @@ class Bid extends \common\components\ActiveRecordModel
'phone' => 'Телефон', 'phone' => 'Телефон',
'email' => 'Email', 'email' => 'Email',
'text' => 'Сообщение', 'text' => 'Сообщение',
'company_name' => 'Наименование компании',
'form' => 'Форма отправки', 'form' => 'Форма отправки',
'created_at' => 'Дата добавления', 'created_at' => 'Дата добавления',
'updated_at' => 'Дата обновления', 'updated_at' => 'Дата обновления',
......
...@@ -21,6 +21,7 @@ $this->params['breadcrumbs'][] = $this->title; ...@@ -21,6 +21,7 @@ $this->params['breadcrumbs'][] = $this->title;
'attributes' => [ 'attributes' => [
'id', 'id',
'name', 'name',
'company_name',
'phone', 'phone',
'email:email', 'email:email',
'file', 'file',
......
...@@ -23,6 +23,7 @@ class CasesAdminController extends AdminController { ...@@ -23,6 +23,7 @@ class CasesAdminController extends AdminController {
'Manage' => 'Управление кейсами', 'Manage' => 'Управление кейсами',
'Createcase' => 'Добавление кейса', 'Createcase' => 'Добавление кейса',
'Createproject' => 'Добавление проекта', 'Createproject' => 'Добавление проекта',
'Create-business-case' => 'Добавление проекта',
'Update' => 'Редактирование кейса', 'Update' => 'Редактирование кейса',
'Copy' => 'Копирование кейса', 'Copy' => 'Копирование кейса',
'View' => 'Просмотр кейса', 'View' => 'Просмотр кейса',
...@@ -53,6 +54,8 @@ class CasesAdminController extends AdminController { ...@@ -53,6 +54,8 @@ class CasesAdminController extends AdminController {
$casesDataProvider = $casesSearchModel->searchByType(4, Yii::$app->request->queryParams); $casesDataProvider = $casesSearchModel->searchByType(4, Yii::$app->request->queryParams);
$projectsSearchModel = new SearchCoContent(); $projectsSearchModel = new SearchCoContent();
$projectsDataProvider = $projectsSearchModel->searchByType(5, Yii::$app->request->queryParams); $projectsDataProvider = $projectsSearchModel->searchByType(5, Yii::$app->request->queryParams);
$businessSearchModel = new SearchCoContent();
$businessDataProvider = $projectsSearchModel->searchByType(6, Yii::$app->request->queryParams);
return $this->render( return $this->render(
'manage', 'manage',
...@@ -60,7 +63,9 @@ class CasesAdminController extends AdminController { ...@@ -60,7 +63,9 @@ class CasesAdminController extends AdminController {
'casesSearchModel' => $casesSearchModel, 'casesSearchModel' => $casesSearchModel,
'casesDataProvider' => $casesDataProvider, 'casesDataProvider' => $casesDataProvider,
'projectsSearchModel' => $projectsSearchModel, 'projectsSearchModel' => $projectsSearchModel,
'projectsDataProvider' => $projectsDataProvider 'projectsDataProvider' => $projectsDataProvider,
'businessDataProvider' => $businessDataProvider,
'businessSearchModel' => $businessSearchModel,
] ]
); );
} }
...@@ -158,6 +163,50 @@ class CasesAdminController extends AdminController { ...@@ -158,6 +163,50 @@ class CasesAdminController extends AdminController {
]); ]);
} }
/**
* @return string|\yii\web\Response
* @throws \Exception
*/
public function actionCreateBusinessCase()
{
$model = new CaseContent();
$model->category_id = 6;
$model->previewType = new CasesPreviewType();
Yii::$app->controller->page_title = 'Добавить решение для бизнеса';
Yii::$app->controller->breadcrumbs = [
[
'Управление решениями для бизнеса' => \yii\helpers\Url::toRoute('manage')
],
'Добавить решение для бизнеса',
];
if (Yii::$app->request->isPost)
{
$transaction = Yii::$app->db->beginTransaction();
try
{
if($model->load(Yii::$app->request->post()) && $model->save())
{
$transaction->commit();
return $this->redirect(['manage']);
}
}
catch (\Exception $e)
{
$transaction->rollBack();
throw $e;
}
}
return $this->render('create', [
'model' => $model,
'id' => 6
]);
}
/** /**
* @param $id * @param $id
* @return string|\yii\web\Response * @return string|\yii\web\Response
......
...@@ -31,13 +31,13 @@ class CaseContent extends CoContent ...@@ -31,13 +31,13 @@ class CaseContent extends CoContent
return [ return [
'meta' => [ 'meta' => [
'class' => 'common\components\activeRecordBehaviors\CaseMetaTagBehavior', 'class' => 'common\components\activeRecordBehaviors\CaseMetaTagBehavior',
'actions' => ['create', 'update', 'copy', 'createcase', 'createproject'] 'actions' => ['create', 'update', 'copy', 'createcase', 'createproject', 'create-business-case']
], ],
'langs' => [ 'langs' => [
'class' => 'common\modules\languages\components\LanguageHelperBehavior', 'class' => 'common\modules\languages\components\LanguageHelperBehavior',
'field' => 'content_id', 'field' => 'content_id',
'langClass' => 'common\modules\content\models\CoContentLang', 'langClass' => 'common\modules\content\models\CoContentLang',
'actions' => ['create', 'update', 'copy', 'createcase', 'createproject'] 'actions' => ['create', 'update', 'copy', 'createcase', 'createproject', 'create-business-case']
], ],
'file' => [ 'file' => [
'class' => 'common\components\activeRecordBehaviors\MFileUploadBehavior', 'class' => 'common\components\activeRecordBehaviors\MFileUploadBehavior',
......
<?php
use common\components\zii\AdminGrid;
use common\modules\content\models\CoContent;
use yii\helpers\Html;
use yii\helpers\Url;
/**
* @var yii\data\ActiveDataProvider $dataProvider
* @var common\modules\content\models\SearchCoContent $searchModel
*/
?>
<?= AdminGrid::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
[
'attribute' => 'position',
'contentOptions' => ['style' => 'text-align:center']
],
[
'attribute' => 'url',
'format' => 'raw',
'value' => function ($data) {
/** @var CoContent $data */
return Html::a(
(!is_null($data->lang)) ? $data->lang->name : $data->url,
Yii::$app->params['frontUrl'] . ($data->url != '/' ? '/' : '') . $data->url, ['target' => '_blank', 'title' => 'Просмотреть как страницу видит пользователь', 'data-toggle' => "tooltip"]);
}
],
[
'attribute' => 'category_id',
'filter' => false,
'format' => 'text',
'value' => function ($data) {
return (!is_null($data->category)) ? $data->category->name : 'без категории';
}
],
[
'class' => 'common\components\ColorActionColumn',
'template' => '{copy} {update} {delete}',
'buttons' => [
'copy' => function ($url, $model, $key) {
return '<a href="' . Url::toRoute(['copy', 'id' => $model->id]) . '">' . Html::beginTag('i', [
'title' => "Копировать страницу",
'data-toggle' => 'tooltip',
'class' => 'fa fa-copy fa-lg'
]) . Html::endTag('i') . '</a>';
},
],
],
],
]); ?>
<?php <?php
use yii\helpers\Url; use yii\helpers\Html;
use \yii\helpers\Html;
use \yii\helpers\ArrayHelper;
use common\modules\content\models\CoCategory;
use common\modules\content\models\CoContent;
/** /**
* @var \yii\web\View $this
* @var common\modules\content\models\SearchCoContent $casesSearchModel * @var common\modules\content\models\SearchCoContent $casesSearchModel
* @var common\modules\content\models\SearchCoContent $projectsSearchModel * @var common\modules\content\models\SearchCoContent $projectsSearchModel
* @var common\modules\content\models\SearchCoContent $businessSearchModel
* @var yii\data\ActiveDataProvider $casesDataProvider * @var yii\data\ActiveDataProvider $casesDataProvider
* @var yii\data\ActiveDataProvider $projectsDataProvider * @var yii\data\ActiveDataProvider $projectsDataProvider
* @var yii\data\ActiveDataProvider $businessDataProvider
*/ */
?> ?>
<div class="col-md-12"> <div class="col-md-12">
<ul class="nav nav-pills"> <ul class="nav nav-pills">
<li class="active"><a href="#nav-pills-tab-1" data-toggle="tab">Кейсы</a></li> <li class="active"><a href="#nav-pills-tab-1" data-toggle="tab">Кейсы</a></li>
<li><a href="#nav-pills-tab-2" data-toggle="tab">Наши проекты</a></li> <li><a href="#nav-pills-tab-2" data-toggle="tab">Наши проекты</a></li>
<li><a href="#nav-pills-tab-3" data-toggle="tab">Решения для бизнеса</a></li>
</ul> </ul>
<div class="tab-content"> <div class="tab-content">
<div class="tab-pane fade active in" id="nav-pills-tab-1"> <div class="tab-pane fade active in" id="nav-pills-tab-1">
...@@ -23,96 +23,21 @@ use common\modules\content\models\CoContent; ...@@ -23,96 +23,21 @@ use common\modules\content\models\CoContent;
<p> <p>
<?= Html::a(Yii::t('cases', 'Create case'), ['createcase'], ['class' => 'btn btn-success']) ?> <?= Html::a(Yii::t('cases', 'Create case'), ['createcase'], ['class' => 'btn btn-success']) ?>
</p> </p>
<?php <?= $this->render('_grid', ['dataProvider' => $casesDataProvider, 'searchModel' => $casesSearchModel]) ?>
echo \common\components\zii\AdminGrid::widget([
'dataProvider' => $casesDataProvider,
'filterModel' => $casesSearchModel,
'columns' => [
// 'name',
//'url:url',
[
'attribute' => 'position',
'contentOptions' => ['style' => 'text-align:center']
],
[
'attribute' => 'url',
'format' => 'raw',
'value' => function($data) {
/** @var CoContent $data */
return Html::a(
(!is_null($data->lang)) ? $data->lang->name : $data->url,
Yii::$app->params['frontUrl'].($data->url!='/'?'/':'').$data->url, ['target' => '_blank', 'title' => 'Просмотреть как страницу видит пользователь', 'data-toggle'=>"tooltip"]);
}
],
[
'attribute' => 'category_id',
'filter' => false, //ArrayHelper::map(CoCategory::find()->all(), 'id', 'name'),
'format' => 'text',
'value' => function($data) {
return (!is_null($data->category)) ? $data->category->name : 'без категории';
}
],
[
'class' => 'common\components\ColorActionColumn',
'template' => '{copy} {update} {delete}',
'buttons' => [
'copy' => function ($url, $model, $key) {
return '<a href="'.Url::toRoute(['copy', 'id' => $model->id]).'">'.Html::beginTag('i', [
'title' => "Копировать страницу",
'data-toggle' => 'tooltip',
'class' => 'fa fa-copy fa-lg'
]) . Html::endTag('i') . '</a>';
},
],
],
],
]); ?>
</div> </div>
<div class="tab-pane fade" id="nav-pills-tab-2"> <div class="tab-pane fade" id="nav-pills-tab-2">
<h3 class="m-t-10">Наши проекты</h3> <h3 class="m-t-10">Наши проекты</h3>
<p> <p>
<?= Html::a(Yii::t('cases', 'Create project'), ['createproject'], ['class' => 'btn btn-success']) ?> <?= Html::a(Yii::t('cases', 'Create project'), ['createproject'], ['class' => 'btn btn-success']) ?>
</p> </p>
<?php <?= $this->render('_grid', ['dataProvider' => $projectsDataProvider, 'searchModel' => $projectsSearchModel]) ?>
echo \common\components\zii\AdminGrid::widget([ </div>
'dataProvider' => $projectsDataProvider, <div class="tab-pane fade" id="nav-pills-tab-3">
'filterModel' => $projectsSearchModel, <h3 class="m-t-10">Деловые решения</h3>
'columns' => [ <p>
// 'name', <?= Html::a('Добавить', ['create-business-case'], ['class' => 'btn btn-success']) ?>
//'url:url', </p>
[ <?= $this->render('_grid', ['dataProvider' => $businessDataProvider, 'searchModel' => $businessSearchModel]) ?>
'attribute' => 'url',
'format' => 'raw',
'value' => function($data) {
/** @var CoContent $data */
return Html::a(
(!is_null($data->lang)) ? $data->lang->name : $data->url,
Yii::$app->params['frontUrl'].($data->url!='/'?'/':'').$data->url, ['target' => '_blank', 'title' => 'Просмотреть как страницу видит пользователь', 'data-toggle'=>"tooltip"]);
}
],
[
'attribute' => 'category_id',
'filter' => false, //ArrayHelper::map(CoCategory::find()->all(), 'id', 'name'),
'format' => 'text',
'value' => function($data) {
return (!is_null($data->category)) ? $data->category->name : 'без категории';
}
],
[
'class' => 'common\components\ColorActionColumn',
'template' => '{copy} {update} {delete}',
'buttons' => [
'copy' => function ($url, $model, $key) {
return '<a href="'.Url::toRoute(['copy', 'id' => $model->id]).'">'.Html::beginTag('i', [
'title' => "Копировать страницу",
'data-toggle' => 'tooltip',
'class' => 'fa fa-copy fa-lg'
]) . Html::endTag('i') . '</a>';
},
],
],
],
]); ?>
</div> </div>
</div> </div>
</div> </div>
\ No newline at end of file
...@@ -2,18 +2,12 @@ ...@@ -2,18 +2,12 @@
namespace common\modules\content\controllers; namespace common\modules\content\controllers;
use Yii;
use common\components\AdminController; use common\components\AdminController;
use yii\web\NotFoundHttpException;
use yii\filters\VerbFilter;
use yii\web\UploadedFile;
use common\modules\content\models\CoContent; use common\modules\content\models\CoContent;
use common\modules\content\models\CoContentLang;
use common\modules\languages\models\Languages;
use common\modules\content\models\SearchCoContent; use common\modules\content\models\SearchCoContent;
use common\modules\content\models\SearchCoContentData; use Yii;
use common\models\MetaTags; use yii\filters\VerbFilter;
use yii\web\NotFoundHttpException;
/** /**
......
...@@ -146,6 +146,10 @@ class CoContentLang extends \common\components\ActiveRecordModel ...@@ -146,6 +146,10 @@ class CoContentLang extends \common\components\ActiveRecordModel
$arrReplaceNext[] = \common\models\Settings::getValue('content-phone'); $arrReplaceNext[] = \common\models\Settings::getValue('content-phone');
$arrWhatReplaceNext[] = '[cases]'; $arrWhatReplaceNext[] = '[cases]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('cases'); $arrReplaceNext[] = CoBlocks::printStaticBlock('cases');
$arrWhatReplaceNext[] = '[business-cases]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('business-cases');
$arrWhatReplaceNext[] = '[business-case-form]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('business-case-form');
$arrWhatReplaceNext[] = '[projects]'; $arrWhatReplaceNext[] = '[projects]';
$arrReplaceNext[] = CoBlocks::printStaticBlock('projects'); $arrReplaceNext[] = CoBlocks::printStaticBlock('projects');
$arrWhatReplaceNext[] = '[case-subscribe]'; $arrWhatReplaceNext[] = '[case-subscribe]';
......
<?php
use common\modules\bids\models\Bid;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
?>
<div class="calk_form">
<span class="calk_form__title">Отправить запрос на расчет стоимости</span>
<?php
$model = new Bid;
$model->scenario = Bid::SCENARIO_BUSINESS;
$model->form = Bid::FORM_BUSINESS;
$form = ActiveForm::begin([
'id' => 'form_foot',
'action' => '/bids/bid/add',
'enableClientValidation' => false,
'options' => [
'class' => 'footer_form bids-form',
'data-title' => 'Рассчитать проект',
'data-form' => 'Рассчитать проект',
'enctype' => 'multipart/form-data',
'data-tag' => Bid::TAG_TREATMENT
],
]); ?>
<div class="message-box send_secce">Ваша заявка успешно отправлена!</div>
<div class="content">
<?php echo Html::hiddenInput('scenario', $model->scenario, ['class' => 'not_clear']); ?>
<?php echo $form->field($model, 'form', ['template' => '{input}'])->hiddenInput(['class' => 'not_clear']); ?>
<?php echo $form->field($model, 'name', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => \Yii::t('form', 'Your name'),
'class' => 'footer_form__input'
]); ?>
<?php echo $form->field($model, 'company_name', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => 'Наименование компании',
'class' => 'footer_form__input'
]); ?>
<?php echo $form->field($model, 'phone', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => \Yii::t('form', 'Telephone'),
'class' => 'footer_form__input'
]); ?>
<?php echo $form->field($model, 'email', [
'template' => '<div class="row"><div class="col-sm-4">{input}</div></div>',
'errorOptions' => []
])->textInput([
'placeholder' => 'E-mail*',
'class' => 'footer_form__input'
]); ?>
<div class="business-case-comment">
<?php echo $form->field($model, 'text')->textArea([
'placeholder' => 'Комментарий',
'class' => 'footer_form__textarea file-upload_block',
'style' => 'resize: none'
])->label(false); ?>
</div>
<?php echo Html::submitButton('Узнать стоимость', ['class' => 'btn-default save-button']); ?>
</div>
<?php ActiveForm::end(); ?>
</div>
<?php
use \common\modules\content\models\CoContent;
use yii\helpers\Html;
use yii\helpers\Url;
use common\modules\cases\models\CaseContent;
use common\modules\cases\models\CasesPreviewType;
$models = CaseContent::find()
->where([
'category_id' => 6,
'active' => true
])
->orderBy('position DESC')
->all();
?>
<?php if($models) : ?>
<div class="row">
<?php foreach ($models as $model) : ?>
<?php if(!$model->previewType || $model->previewType->type == CasesPreviewType::PREVIEW_SQUARE): ?>
<div class="col-md-6 col-xs-6 col-sm-12">
<a href="<?=Url::to(['/'.$model->url])?>" class="keys_block_small">
<img src="<?=$model->preview?>" height="338" width="455">
<div class="keys_small_title" <?php if($model->custom==CoContent::CUSTOM_WHITE){?>style="color:#fff;"<?php }?>><?=$model->lang->title?></div>
<div class="keys_small_foot">
<div class="keys_small_btn_more">
<span><?=Yii::t('case', 'Read more')?></span>
</div>
<span class="keys_small_tags"><?= $model->previewType->tag ? "# {$model->previewType->tag}" : "" ?></span>
</div>
</a>
</div>
<?php elseif($model->previewType->type == CasesPreviewType::PREVIEW_RECTANGLE): ?>
<div class="col-md-12 col-xs-12 col-sm-12">
<a href="<?=Url::to(['/'.$model->url])?>" class="keys_block_small big">
<img class="img_lg" src="<?=$model->preview?>" height="338" width="940">
<?php if($model->preview_mob):?>
<img class="img_sm" src="<?=$model->preview_mob?>" height="338" width="455">
<?php endif; ?>
<div class="keys_small_title" <?php if($model->custom==CoContent::CUSTOM_WHITE){?>style="color:#fff;"<?php }?>><?=$model->lang->title?></div>
<div class="keys_small_foot">
<div class="keys_small_btn_more">
<span><?=Yii::t('case', 'Read more')?></span>
</div>
<span class="keys_small_tags"><?= $model->previewType->tag ? "# {$model->previewType->tag}" : "" ?></span>
</div>
</a>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php endif; ?>
\ No newline at end of file
...@@ -231,6 +231,10 @@ filter: progid:DXImageTransform. ...@@ -231,6 +231,10 @@ filter: progid:DXImageTransform.
display: none; display: none;
} }
textarea.file-upload_block {
display: block;
}
.inf_comanda { .inf_comanda {
margin-top: 40px; margin-top: 40px;
} }
......
...@@ -3914,6 +3914,11 @@ footer { ...@@ -3914,6 +3914,11 @@ footer {
-o-border-radius: 8px; -o-border-radius: 8px;
-ms-border-radius: 8px; -ms-border-radius: 8px;
} }
textarea.file-upload_block {
border: none;
background: #F1F1F1;
}
@media only screen and (min-width: 768px) and (max-width: 970px) { @media only screen and (min-width: 768px) and (max-width: 970px) {
.file-upload_block { .file-upload_block {
width: 270px; width: 270px;
......
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