<?php $this->pageTitle .= ' - ' . ReviewsModule::t('Reviews') . ' - ' . tt('Add_feedback'); $this->breadcrumbs = array(tt('Reviews') => array('/reviews/main/index'), tt('Add_feedback')); ?> <h1><?php echo tt('Add_feedback'); ?> </h1> <div class="form"> <?php $form = $this->beginWidget('CActiveForm', array('action' => Yii::app()->controller->createUrl('/reviews/main/add'), 'id' => 'commentform', 'enableAjaxValidation' => false, 'clientOptions' => array('validateOnSubmit' => false))); if (!Yii::app()->user->isGuest) { if ($model->name == '') { $model->name = Yii::app()->user->getState('username'); } if ($model->email == '') { $model->email = Yii::app()->user->getState('email'); } } ?> <p class="note"><?php echo Yii::t('common', 'Fields with <span class="required">*</span> are required.'); ?> </p> <?php echo $form->errorSummary($model);
<?php $this->pageTitle = Yii::app()->name . ' - ' . ReviewsModule::t('Reviews_management'); $this->menu = array(array('label' => ReviewsModule::t('Add_feedback'), 'url' => array('create'))); $this->adminTitle = ReviewsModule::t('Reviews_management'); ?> <?php $this->widget('CustomGridView', array('id' => 'reviews-grid', 'dataProvider' => $model->search(), 'filter' => $model, 'afterAjaxUpdate' => 'function(){$("a[rel=\'tooltip\']").tooltip(); $("div.tooltip-arrow").remove(); $("div.tooltip-inner").remove();}', 'columns' => array(array('class' => 'CCheckBoxColumn', 'id' => 'itemsSelected', 'selectableRows' => '2', 'htmlOptions' => array('class' => 'center')), array('class' => 'editable.EditableColumn', 'name' => 'user_ip', 'value' => 'BlockIp::displayUserIP($data)', 'headerHtmlOptions' => array('style' => 'width: 110px'), 'editable' => array('apply' => '$data->user_ip != "" && Yii::app()->user->checkAccess("blockip_admin")', 'url' => Yii::app()->controller->createUrl('/blockIp/backend/main/ajaxAdd'), 'placement' => 'right', 'emptytext' => '', 'savenochange' => 'true', 'title' => tt('Add the IP address to the list of blocked', 'blockIp'), 'options' => array('ajaxOptions' => array('dataType' => 'json')), 'onShown' => 'js: function() { var input = $(this).parent().find(".input-medium"); $(input).attr("disabled", "disabled"); }', 'success' => 'js: function(response, newValue) { if (response.msg == "ok") { message("' . tt("Ip was success added", 'blockIp') . '"); } else if (response.msg == "already_exists") { var newValField = "' . tt("Ip was already exists", 'blockIp') . '"; return newValField; } else if (response.msg == "save_error") { var newValField = "' . tt("Error. Repeat attempt later", 'blockIp') . '"; return newValField; } else if (response.msg == "no_value") { var newValField = "' . tt("Enter Ip", 'blockIp') . '"; return newValField; }
<?php $this->pageTitle .= ' - ' . ReviewsModule::t('Reviews'); $this->breadcrumbs = array(ReviewsModule::t('Reviews')); ?> <h1 class="title highlight-left-right"> <span><?php echo ReviewsModule::t('Reviews'); ?> </span> </h1> <div class="clear"></div><br /> <?php if (count($reviews) > 3) { ?> <div class="add-review-link"> <?php echo CHtml::link(tt('Add_feedback', 'reviews'), Yii::app()->createUrl('/reviews/main/add'), array('class' => 'apt_btn fancy link_blue')); ?> </div> <?php } ?> <?php if ($reviews) { ?> <div id="reviews-wrap"> <ol class="reviewslist"> <?php
<?php $this->menu = array(array('label' => ReviewsModule::t('Add_feedback'), 'url' => array('create')), array('label' => ReviewsModule::t('Edit_review'), 'url' => array('update', 'id' => $model->id)), array('label' => tt('Delete_review', 'reviews'), 'url' => '#', 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => tc('Are you sure you want to delete this item?')))); $this->adminTitle = tt('View_review'); $this->widget('bootstrap.widgets.TbDetailView', array('data' => $model, 'attributes' => array('id', 'name', 'email', array('label' => CHtml::encode($model->getAttributeLabel('body')), 'value' => CHtml::encode($model->body), 'type' => 'raw', 'template' => "<tr class=\"{class}\"><th>{label}</th><td>{value}</td></tr>\n"), 'date_created')));
<?php $this->pageTitle = Yii::app()->name . ' - ' . ReviewsModule::t('Edit_review'); $this->menu = array(array('label' => tt('Reviews_management'), 'url' => array('admin')), array('label' => ReviewsModule::t('Add_feedback'), 'url' => array('create')), array('label' => tt('Delete_review'), 'url' => '#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm' => tc('Are you sure you want to delete this item?')))); $this->adminTitle = ReviewsModule::t('Edit_review'); ?> <?php echo $this->renderPartial('/backend/_form', array('model' => $model));
<?php $this->pageTitle = Yii::app()->name . ' - ' . ReviewsModule::t('Add_feedback'); $this->menu = array(array('label' => tt('Reviews_management'), 'url' => array('admin'))); $this->adminTitle = ReviewsModule::t('Add_feedback'); ?> <?php echo $this->renderPartial('/backend/_form', array('model' => $model));