echo CHtml::activeLabelEx($postLang, 'text', array('class' => 'col-md-3 control-label', 'style' => 'float:left;padding:5px;width:15%')); ?> <div style='float:left;padding:5px' class="col-md-9 ckeditor <?php if ($postLang->hasErrors('text')) { echo "error"; } ?> "> <?php $ckeditorconfigtext = array('name' => 'BlogPostsLang[text]', 'type' => 'content', 'ckfinder' => true, 'value' => $postLang->text); ?> <?php if (Yii::app()->isPackageInstall('Ckeditor', '1.0.7')) { ?> <?php echo CkeditorHelper::init($ckeditorconfigtext); ?> <?php } else { ?> <?php echo FSmarty::ckeditor($ckeditorconfigtext); ?> <?php } ?> <p class="help-block text-error" style="color:red"><?php echo $postLang->getError('text'); ?> </p>
<?php echo $form->checkBox($model, 'is_new', array()); ?> <span class="help-block text-danger"><?php echo $form->error($model, 'is_new'); ?> </span> </div> </div> <div class="form-group" style="margin-top: 20px;"> <?php echo $form->labelEx($lang, 'description', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-9"> <?php echo CkeditorHelper::init(array('name' => 'CataloguesLang[description]', 'type' => '', 'ckfinder' => true, 'value' => $lang->description)); ?> <span class="help-block text-danger"><?php echo $form->error($lang, 'description', array('class' => 'errorMessage errorMessageBlock')); ?> </span> </div> </div> <div class="form-group"> <label for="" class="col-md-3 control-label"> <?php echo Yii::t('app', 'Загрузить картинку'); ?> </label> <div class="col-md-4">
<div class="col-md-9"> <?php echo CHtml::activeTextArea($model_lang, 'brief_text', array('class' => 'form-control')); ?> <?php echo CHtml::error($model_lang, 'brief_text', array('style' => 'color: red;')); ?> </div> </div> <div class="form-group"> <?php echo CHtml::activeLabelEx($model_lang, 'text', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-9"> <?php echo CkeditorHelper::init(array('name' => 'ReviewsLang[text]', 'type' => 'form-control input-large', 'ckfinder' => true, 'value' => $model_lang->text)); ?> <?php echo CHtml::error($model_lang, 'text', array('style' => 'color: red;')); ?> </div> </div> <div class="form-group"> <?php echo CHtml::activeLabelEx($model, 'sort_no', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-9"> <?php echo CHtml::activeListBox($model, 'sort_no', $list, array('size' => 0, 'class' => 'form-control input-large')); ?> </div>
<?php echo Yii::t('app', 'Использовать визуальный редактор'); ?> <?php } ?> <br/> <br/> <div class="ckeditor <?php if ($model_lang->hasErrors('text')) { echo "error"; } ?> "> <?php echo CkeditorHelper::init(array('externalStyles' => array(Yii::app()->params['hostMetronikStatic'] . '/public/assets/global/plugins/font-awesome/css/font-awesome.min.css', Yii::app()->params['hostMetronikStatic'] . '/public/assets/global/plugins/bootstrap/css/bootstrap.min.css', Yii::app()->params['hostMetronikStatic'] . '/public/assets/frontend/layout/css/style.css'), 'name' => 'area[textareackeditor]', 'type' => 'content', 'ckfinder' => true, 'value' => empty($model_lang->text) ? '' : $model_lang->text, 'width' => '90%')); ?> <?php echo CHtml::textArea('area[textareablock]', $model_lang->text, array('class' => $form->error($model_lang, 'text') != '' ? 'form-control error' : 'form-control', 'id' => 'textareablock', 'style' => 'width: 90%; display: none;')); ?> <span class="help-block text-danger"><?php echo $form->error($model_lang, 'text'); ?> </span> </div> </div> </div> </div> <div class="form-actions"> <?php echo CHtml::Button($model->isNewRecord ? Yii::t('app', 'Создать') : Yii::t('app', 'Сохранить'), array('class' => 'btn green', 'onClick' => 'submitForm()'));
echo CkeditorHelper::init(array('name' => 'BlogPosts[short_text]', 'type' => 'content', 'ckfinder' => true, 'value' => $blogPostsModel->short_text)); ?> </td> <td><?php echo $form->error($blogPostsModel, 'short_text'); ?> </td> </tr> <tr> <td> <div style="padding: 15px 0;"><b><?php echo Yii::t('app', 'Текст'); ?> </b></div> <?php echo CkeditorHelper::init(array('name' => 'BlogPosts[text]', 'type' => 'content', 'ckfinder' => true, 'value' => $blogPostsModel->text)); ?> </td> <td><?php echo $form->error($blogPostsModel, 'text'); ?> </td> </tr> <tr> <td colspan="2"> <?php echo CHtml::submitButton(Yii::t('app', 'Добавить'), array('class' => 'btn100')); ?> </td> </tr> </table>
<?php echo CkeditorHelper::init(array('name' => 'ProductsLang[brief_text]', 'type' => '', 'ckfinder' => true, 'value' => $model_lang->brief_text)); ?> <span class="help-block text-danger" style="color: #a94442;"><?php echo $form->error($model_lang, 'brief_text'); ?> </span> </div> </div> <div class="form-group" style="margin-top: 20px;"> <?php echo $form->labelEx($model_lang, 'description', array('class' => 'col-md-2 control-label')); ?> <div class="col-md-10"> <?php echo CkeditorHelper::init(array('name' => 'ProductsLang[description]', 'type' => '', 'ckfinder' => true, 'value' => $model_lang->description)); ?> <span class="help-block text-danger" style="color: #a94442;"><?php echo $form->error($model_lang, 'description'); ?> </span> </div> </div> <?php /* <div class="form-group" style="margin-top: 20px;"> <?=$form->labelEx($model_lang, 'youtube_iframe', array('class' => 'col-md-2 control-label'))?> <div class="col-md-10"> <?=$form->textArea($model_lang,'youtube_iframe',array('size'=>60,'maxlength'=>255, 'class' => 'form-control'))?> <span class="help-block text-danger" style="color: #a94442;"><?=$form->error($model_lang, 'youtube_iframe')?></span> </div>
?> </p> </div> </div> <div class="form-group"> <?php echo CHtml::activeLabelEx($model_lang, 'text', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-9 ckeditor <?php if ($model_lang->hasErrors('text')) { echo "error"; } ?> "> <?php echo CkeditorHelper::init(array('name' => 'NewsLang[text]', 'type' => 'content', 'ckfinder' => true, 'value' => $model_lang->text)); ?> <p class="help-block text-danger" style="color: #a94442;"><?php echo $model_lang->getError('text'); ?> </p> </div> </div> <div class="form-group"> <?php echo CHtml::activeLabelEx($model, 'publication_from', array('class' => 'col-md-3 control-label')); ?> <div class="col-md-9"> <div class="input-icon input-group date input-large right news-datepicker"> <i class="fa fa-exclamation tooltips font-red" style="display:none;" data-original-title="<?php
echo $model->getAttributeLabel('name'); ?> </td> <td style="text-align: left"> <?php echo CHtml::activeTextField($model, 'name', array('class' => 'wide')); ?> :<br /> <div class="contenterrors" id="nameerror" style="color: red; display: none; text-align: left;"></div> </td> </tr> <tr> <td colspan="2"> <div id = "CkEditor"> <?php echo CkeditorHelper::init(array('name' => 'ContentsLang[text]', 'type' => 'content', 'ckfinder' => true, 'height' => '310px')); ?> </div> <div style="display: none;"> <?php echo CHtml::activeTextArea($modelLang, 'text'); ?> </div> <br /> <div class="contenterrors" id="texterror" style="color: red; display: none; text-align: left;"></div> </td> </tr> </table> <?php echo CHtml::hiddenField('ckeditor[0]', 'ContentsLang[text]', array('class' => 'ckeditor-flag'));
<?php foreach ($model->answers as $answer) { ?> <div class="form-group"> <label for="" class="col-md-3 control-label"><?php echo Yii::t('app', 'Ответ'); ?> </label> <div class="col-md-9 ckeditor <?php if ($model->hasErrors('answersForm')) { echo "error"; } ?> "> <?php echo CkeditorHelper::init(array('name' => 'Faq[answersForm][' . sha1($answer->id) . '][text]', 'type' => 'content', 'ckfinder' => true, 'value' => array_key_exists(sha1($answer->id), $model->answersForm) && array_key_exists('text', $model->answersForm[sha1($answer->id)]) ? $model->answersForm[sha1($answer->id)]['text'] : $answer->lang->text)); ?> <p class="help-block text-danger" style="color: #a94442;"><?php echo $model->getError('answersForm'); ?> </p> </div> </div> <?php } ?> <?php } ?>
echo $model->getAttributeLabel('name'); ?> </td> <td style="text-align: left"> <?php echo CHtml::activeTextField($model, 'name', array('class' => 'wide')); ?> :<br /> <div class="contenterrors" id="nameerror" style="color: red; display: none; text-align: left;"></div> </td> </tr> <tr> <td colspan="2"> <div id = "CkEditor"> <?php echo CkeditorHelper::init(array('name' => 'UserContentsLang[text]', 'type' => 'content', 'ckfinder' => true, 'height: 100%', 'width: 100%')); ?> </div> <div style="display: none;"> <?php echo CHtml::activeTextArea($modelLang, 'text'); ?> </div> <br /> <div class="contenterrors" id="texterror" style="color: red; display: none; text-align: left;"></div> </td> </tr> </table> <?php echo CHtml::hiddenField('ckeditor[0]', 'UserContentsLang[text]', array('class' => 'ckeditor-flag'));