<?php MParams::setPageLabel(Yii::t('page', 'Create a new project')); MUserFlash::setTopError(_CHtml::errorSummary($model)); MLinkList::set('sidebar', array('links' => array(array('text' => Yii::t('link', 'List of projects'), 'url' => array('list'), 'icon' => 'grip-solid-horizontal', 'visible' => false), array('text' => Yii::t('link', 'Grid of projects'), 'url' => array('grid'), 'icon' => 'calculator', 'visible' => Yii::app()->user->checkAccess($this->id . '/grid'))))); $this->widget('application.components.WContentHeader', array('breadcrumbs' => array(array('text' => Yii::t('link', 'Projects'), 'url' => array($this->id . '/' . $this->defaultAction), 'active' => false, 'visible' => Yii::app()->user->checkAccess($this->id . '/' . $this->defaultAction)), array('url' => array($this->action->id), 'active' => true)))); echo $this->renderPartial('_form', array('model' => $model, 'update' => false));
<?php MParams::setPageLabel($model->isMe ? Yii::t('page', 'Edit my profile') : Yii::t('page', 'Edit member\'s profile')); MUserFlash::setTopError(_CHtml::errorSummary($model)); MUserFlash::setTopError(_CHtml::errorSummary($model->details)); if (Yii::app()->user->checkAccess(User::ADMINISTRATOR)) { // FIXME: remove - deprecated MUserFlash::setSidebarInfo(Yii::t('hint', 'Required: {authRoles}.', array(1, '{authRoles}' => implode(', ', array(Yii::t('t', User::ADMINISTRATOR_T)))))); } MLinkList::set('sidebar', array('links' => array(array('text' => Yii::t('link', 'Show my profile'), 'url' => !$pkIsPassed ? array('show') : array('show', 'id' => $model->id), 'icon' => 'person', 'visible' => $model->isMe), array('text' => Yii::t('link', 'Change interface'), 'url' => !$pkIsPassed ? array('updateInterface') : array('updateInterface', 'id' => $model->id), 'visible' => $model->isMe), array('text' => Yii::t('link', 'Show member'), 'url' => array('show', 'id' => $model->id), 'icon' => 'person', 'visible' => !$model->isMe && Yii::app()->user->checkAccess($this->id . '/show')), array('text' => Yii::t('link', 'Change interface'), 'url' => array('updateInterface', 'id' => $model->id), 'visible' => !$model->isMe && Yii::app()->user->checkAccess($this->id . '/updateInterface')), array('text' => Yii::t('link', 'List of members'), 'url' => array('list'), 'icon' => 'grip-solid-horizontal', 'visible' => false), array('text' => Yii::t('link', 'Grid of members'), 'url' => array('grid'), 'icon' => 'calculator', 'visible' => Yii::app()->user->checkAccess($this->id . '/grid')), array('text' => Yii::t('link', 'Create a new member'), 'url' => array('create'), 'icon' => 'plus', 'visible' => Yii::app()->user->checkAccess($this->id . '/create'))))); $this->widget('application.components.WContentHeader', array('breadcrumbs' => array(array('text' => Yii::t('link', 'Members'), 'url' => array($this->id . '/' . $this->defaultAction), 'active' => false, 'visible' => Yii::app()->user->checkAccess($this->id . '/' . $this->defaultAction)), array('text' => Yii::t('link', 'My profile'), 'url' => $pkIsPassed ? array('show', 'id' => $model->id) : array('show'), 'visible' => $model->isMe), array('text' => Yii::t('link', '"{screenName}" member', array('{screenName}' => $model->screenName)), 'url' => array('show', 'id' => $model->id), 'visible' => !$model->isMe && Yii::app()->user->checkAccess($this->id . '/show')), array('url' => $model->isMe && !$pkIsPassed ? array($this->action->id) : array($this->action->id, 'id' => $model->id), 'active' => true)))); ?> <div class="w3-main-form-box ui-widget-content ui-corner-all"> <?php echo _CHtml::beginForm('', 'post', array('class' => 'w3-main-form')) . "\n"; ?> <?php if (Yii::app()->user->checkAccess(User::ADMINISTRATOR)) { ?> <div class="w3-form-row w3-first"> <div class="w3-form-row-label"><?php echo _CHtml::activeLabelEx($model, 'isActive'); ?> </div> <div class="w3-form-row-input"> <?php echo _CHtml::activeDropDownList($model, 'isActive', $model->getAttributeData('isActive'), array('class' => 'w3-input-text ui-widget-content ui-corner-all')) . "\n"; ?> <br/><?php
<?php MParams::setPageLabel(Yii::t('page', 'Login')); MUserFlash::setTopError(_CHtml::errorSummary($form)); MUserFlash::setSidebarInfo(Yii::t('hint', 'Hint: You may login with <tt>demo/demo</tt> or <tt>admin/admin</tt>.')); $this->widget('application.components.WContentHeader', array('breadcrumbs' => array(array('url' => array($this->action->id), 'active' => true)))); ?> <div class="w3-main-form-box ui-widget-content ui-corner-all"> <?php echo _CHtml::beginForm('', 'post', array('class' => 'w3-main-form')) . "\n"; echo _CHtml::activeHiddenField($form, 'loginWithField') . "\n"; ?> <div class="w3-form-row w3-first"> <div class="w3-form-row-label"><?php echo _CHtml::activeLabelEx($form, $form->getLoginWithField()); ?> </div> <div class="w3-form-row-input"> <?php echo _CHtml::activeTextField($form, $form->getLoginWithField(), array('class' => 'w3-input-text ui-widget-content ui-corner-all')) . "\n"; ?> </div> <div class="clear"> </div> </div> <div class="w3-form-row"> <div class="w3-form-row-label"><?php echo _CHtml::activeLabelEx($form, 'password'); ?> </div>
<?php MParams::setPageLabel(Yii::t('page', 'Contact us')); MUserFlash::setTopError(_CHtml::errorSummary($contact)); MUserFlash::setSidebarInfo(Yii::t('hint', 'If you have business inquiries or other questions, please fill out this form to contact us. Thank you.')); $this->widget('application.components.WContentHeader', array('breadcrumbs' => array(array('url' => array($this->action->id), 'active' => true)))); ?> <div class="w3-main-form-box ui-widget-content ui-corner-all"> <?php echo _CHtml::beginForm('', 'post', array('class' => 'w3-main-form')) . "\n"; ?> <div class="w3-form-row w3-first"> <div class="w3-form-row-label"><?php echo _CHtml::activeLabelEx($contact, 'name'); ?> </div> <div class="w3-form-row-input"> <?php echo _CHtml::activeTextField($contact, 'name', array('class' => 'w3-input-text ui-widget-content ui-corner-all', 'maxlength' => 128)) . "\n"; ?> </div> <div class="clear"> </div> </div> <div class="w3-form-row"> <div class="w3-form-row-label"><?php echo _CHtml::activeLabelEx($contact, 'email'); ?> </div> <div class="w3-form-row-input">