Exemplo n.º 1
0
?>

    <?php 
if (Yii::app()->user->id != $model->id && (Yii::app()->user->checkAccess('user.edit') || Yii::app()->user->checkAccess('user.create'))) {
    ?>
        <div class="form-group">
            <label class="control-label" for="<?php 
    echo CHtml::activeId($model, 'roles');
    ?>
">
                Роли
            </label>
            <div>
                <?php 
    echo BsHtml::dropDownList(CHtml::activeName($model, 'roles[]'), $assignments, $roles, array("multiple" => "multiple", 'class' => 'bs'));
    ?>
            </div>
        </div>
    <?php 
}
?>
    <?php 
if ($model->isNewRecord) {
    echo BsHtml::submitButton('Создать', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
} else {
    echo BsHtml::submitButton('Сохранить изменения', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
}
?>

<?php 
$this->endWidget();
Exemplo n.º 2
0
if (!$BoxoCart->location_id) {
    $form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'location-form', 'enableAjaxValidation' => false));
    ?>
<div class="alert alert-warning form-inline">
    <div class="row">
        <div class="col-md-5">
            <div class="form-group">
                <h3>Set Location</h3>
                <?php 
    echo BsHtml::label('Set Location', 'BoxoCart_location_id', array('class' => 'sr-only'));
    ?>
                <?php 
    echo BsHtml::dropDownList('BoxoCart[location_id]', $BoxoCart->location_id, Location::getDeliveryAndPickupList(), array('name' => 'BoxoCart[location_id]', 'prompt' => '- Select -'));
    ?>
                <?php 
    echo BsHtml::submitButton('Set Location');
    ?>
                <p class="hint">
                    <small>This is required to determine which products are available.</small>
                </p>
            </div>
        </div>
        <div class="col-md-1 text-center">
            <p>&nbsp;</p>
            <h3> - Or - </h3>
        </div>
        <div class="col-md-4 col-md-offset-1">
            <h3>Login</h3>
            <p>If you already have an account <?php 
    echo CHtml::link('Login here', array('/site/login'));
    ?>
Exemplo n.º 3
0
if (!empty($assignmentOptions)) {
    ?>

            <h4><?php 
    echo Yii::t('AuthModule.main', 'Assign permission');
    ?>
</h4>

            <?php 
    $form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('layout' => BsHtml::FORM_LAYOUT_INLINE));
    ?>

            <?php 
    echo $form->dropDownList($formModel, 'items', $assignmentOptions, array('label' => false));
    ?>

            <?php 
    echo BsHtml::submitButton(Yii::t('AuthModule.main', 'Assign'), array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
    ?>

            <?php 
    $this->endWidget();
    ?>

        <?php 
}
?>

    </div>

</div>
Exemplo n.º 4
0
echo __('User Dashboard');
?>
</div>
    <div class="panel-body">
        <div id="messages-area">

        </div>

        <?php 
$form = $this->beginWidget('BsActiveForm', array('id' => 'login-form', 'layout' => BsHtml::FORM_LAYOUT_VERTICAL, 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
echo $form->textFieldControlGroup($model, 'login', array('prepend' => BsHtml::icon(BsHtml::GLYPHICON_USER), 'placeholder' => 'Login', 'labelOptions' => array()));
echo $form->passwordFieldControlGroup($model, 'password', array('prepend' => BsHtml::icon(BsHtml::GLYPHICON_LOCK), 'placeholder' => 'Login', 'labelOptions' => array()));
?>
        <div style="width: 100%;" class="form-group input-group">
            <?php 
echo BsHtml::submitButton(__('Sign In'), array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'name' => 'submit'));
?>
            <div style="margin: 8px 10px 0 0" class="pull-right small">
                <a class="text-muted " href="/user/reset"><?php 
echo __('Reset Password');
?>
</a>
            </div>
        </div>

        <?php 
$this->endWidget();
?>
    </div>
</div>
Exemplo n.º 5
0
    </div>
</div>
<div class="row">
    <div class="col-xs-6">
        <?php 
echo $form->textFieldControlGroup($model, 'lastName');
?>
    </div>
    <div class="col-xs-6">
        <?php 
echo $form->textFieldControlGroup($model, 'firstName');
?>
    </div>
</div>

<div class="row">
    <div class="col-xs-6">
        <?php 
echo $form->textFieldControlGroup($model, 'phoneNumber');
?>
    </div>
</div>

<div class="form-actions">
    <?php 
echo BsHtml::submitButton('Применить', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'class' => 'pull-right'));
?>
</div>

<?php 
$this->endWidget();
Exemplo n.º 6
0
<div class="row">
    <div class="col col-md-3 col-lg-12">
        <?php 
echo $form->textFieldControlGroup($model, 'login', array('maxlength' => 30));
?>
    </div>
    <div class="col col-md-3 col-lg-12">
        <?php 
echo $form->textFieldControlGroup($model, 'email', array('maxlength' => 30));
?>
    </div>
    <div class="col col-md-3 col-lg-12">
        <?php 
echo $form->dropDownListControlGroup($model, 'organization_id', Organization::getOptionLabelsForUsers(), array('class' => 'selectpicker show-tick', 'title' => __('Any Organization')));
?>
    </div>
    <div class="col col-md-3 col-lg-12">
        <?php 
echo $form->dropDownListControlGroup($model, 'role', User::getRolesArray(), array('class' => 'selectpicker show-tick', 'title' => __('Any Role')));
?>
    </div>
</div>

<div class="form-actions pull-right">
    <?php 
echo BsHtml::submitButton(__('Search'), array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
</div>
<div class="clearfix"></div>
<?php 
$this->endWidget();
Exemplo n.º 7
0
		<?php 
    }
    ?>
		
		<?php 
}
?>
	</div>
	<div id="sidebar" class="col-lg-3">
		<?php 
$this->beginWidget('bootstrap.widgets.BsPanel', array('title' => 'Menu', 'contentCssClass' => '', 'htmlOptions' => array('class' => 'panel sticky'), 'type' => BsHtml::PANEL_TYPE_PRIMARY));
?>
		
		<div class="btn-group btn-group-vertical">
			<?php 
echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_THUMBS_UP) . ' Save');
?>
			
			<?php 
$this->widget('application.widgets.SnapMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'nav nav-stacked')));
?>
			
		</div>
		<?php 
$this->endWidget();
?>
	
	</div>
	
</div>
Exemplo n.º 8
0
" id="<?php 
    echo "step-{$idx}";
    ?>
">
            <div class="form-content">
                <?php 
    $form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'step-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
    ?>
                    <?php 
    $step->render($this, $form);
    if ($wizard->hasPrev()) {
        echo BsHtml::submitButton('Назад', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'name' => 'prev', 'value' => '1'));
    }
    if ($wizard->hasNext()) {
        echo BsHtml::submitButton('Далее', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'name' => 'next', 'value' => '1'));
        echo BsHtml::submitButton('Сохранить и вернуться позже', array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'name' => 'save', 'value' => '1'));
    }
    if (!$wizard->hasNext()) {
        echo BsHtml::submitButton('Запустить проект', array('color' => BsHtml::BUTTON_COLOR_SUCCESS, 'name' => 'start', 'value' => '1'));
    }
    ?>
                <?php 
    $this->endWidget();
    ?>
            </div>
        </div>
    <?php 
}
?>
</div>
Exemplo n.º 9
0
 /**
  * Кнопка в формах админа
  * @param string $name
  * @param obj $icon
  * @return string
  */
 public static function submitBtn($name, $icon = BsHtml::GLYPHICON_FLOPPY_SAVE, $htmlOptions = array())
 {
     return BsHtml::submitButton($name, array_merge(array('color' => BsHtml::BUTTON_COLOR_PRIMARY, 'size' => BsHtml::BUTTON_SIZE_SMALL, 'icon' => $icon), $htmlOptions));
 }
Exemplo n.º 10
0
?>

<div class="row">
    <div class="col-md-6 col-md-offset-3">
        <h1>Login</h1>
        <?php 
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'login-form', 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>
        <?php 
echo $form->textFieldControlGroup($model, 'username');
?>
        <?php 
echo $form->passwordFieldControlGroup($model, 'password');
?>
        <?php 
echo $form->checkBoxControlGroup($model, 'rememberMe');
?>
        <div class="form-group">
            <?php 
echo BsHtml::submitButton('Login');
?>
        </div>
        <?php 
$this->endWidget();
?>
        <p><?php 
echo CHtml::link('Forgotten your password?', array('user/forgottenPassword'));
?>
</p>
    </div>
</div>
Exemplo n.º 11
0
		</div>

	</div>
	
	<div id="sidebar" class="col-lg-3">
	
		<?php 
$this->beginWidget('bootstrap.widgets.BsPanel', array('title' => 'Menu', 'contentCssClass' => '', 'htmlOptions' => array('class' => 'panel sticky'), 'type' => BsHtml::PANEL_TYPE_PRIMARY));
?>
		
			<div class="btn-group btn-group-vertical">
				<?php 
echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_THUMBS_UP) . ' Save');
?>
				<?php 
echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_PENCIL) . ' Save and Continue Editing', array('name' => 'save_and_continue'));
?>

				<?php 
$this->widget('application.widgets.SnapMenu', array('items' => $this->menu, 'htmlOptions' => array('class' => 'nav nav-stacked')));
?>
			
			</div>
		<?php 
$this->endWidget();
?>
	
	</div>

<?php 
$this->endWidget();
Exemplo n.º 12
0
			Problem sending mail.
			<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
		</div>
		<?php 
} elseif ($User) {
    ?>
		<div class="alert alert-success alert-dismissable">
			We have sent you a password renewal email to your email address.
			<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
		</div>
		<?php 
}
?>
        
        <?php 
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'forgotten-password-form', 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
?>

		<?php 
echo $form->textFieldControlGroup($model, 'username', array('help' => 'Enter your email address to start the password renewal process'));
?>
		<div class="form-group">
            <?php 
echo BsHtml::submitButton('Next &gt;');
?>
        </div>
		<?php 
$this->endWidget();
?>
    </div>
</div>
Exemplo n.º 13
0
    
    <?php 
echo $form->textFieldControlGroup($model, 'address');
?>
	
	<div class="row">
		<div class="col-md-4">
			<?php 
echo $form->textFieldControlGroup($model, 'suburb');
?>
		</div>
		<div class="col-md-4">
            <?php 
echo $form->dropDownListControlGroup($model, 'state', SnapUtil::config('boxomatic/states'));
?>
		</div>
		<div class="col-md-4">
			<?php 
echo $form->textFieldControlGroup($model, 'postcode');
?>
		</div>
	</div>

    <div class="form-group">
        <?php 
echo BsHtml::submitButton($model->isNewRecord ? 'Create' : 'Save');
?>
    </div>

<?php 
$this->endWidget();
Exemplo n.º 14
0
echo $form->textFieldControlGroup($model, 'user_phone');
?>
		<?php 
echo $form->textFieldControlGroup($model, 'user_mobile');
?>
		<?php 
echo $form->textFieldControlGroup($model, 'user_address');
?>
		<?php 
echo $form->textFieldControlGroup($model, 'user_suburb');
?>
		<?php 
echo $form->textFieldControlGroup($model, 'user_state');
?>
		<?php 
echo $form->textFieldControlGroup($model, 'user_postcode');
?>
		<?php 
echo $form->textAreaControlGroup($model, 'search_customer_notes');
?>
	</fieldset>
		
	<div class="form-actions col-md-offset-2 col-md-10">
		<?php 
echo BsHtml::submitButton(BsHtml::icon(BsHtml::GLYPHICON_SEARCH) . ' Search', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
	</div>
<?php 
$this->endWidget();
?>
</div>
Exemplo n.º 15
0
            <?php 
echo $form->error($model, 'password');
?>
        </div>
	</div>

	<div class="form-group rememberMe">
        <div class="col-sm-offset-2 col-sm-4">
            <div class="checkbox">
                <label>
		            <?php 
echo $form->checkBox($model, 'rememberMe');
?>
                    <?php 
echo $model->getAttributeLabel('rememberMe');
?>
                </label>
            </div>
        </div>
	</div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <?php 
echo BsHtml::submitButton('Войти', array('class' => 'btn btn-default'));
?>
        </div>
    </div>

<?php 
$this->endWidget();
Exemplo n.º 16
0
    ?>
            <?php 
}
?>
        </div>
        
        <div id="add-product-form">
            <div class="form-group">
                <div class="col-md-2">
                    <?php 
echo BsHtml::dropDownList('supplier_product_id', null, SupplierProduct::getDropdownListItems($model->supplier_id), array('class' => 'chosen', 'prompt' => '- Select -'));
?>
                </div>
                <div class="col-md-6">
                    <?php 
echo BsHtml::submitButton('Add Product', array('class' => 'add-product', 'name' => 'add_product'));
?>
                    <!-- Button trigger modal -->
                    <button class="btn btn-default" data-toggle="modal" data-target="#sp-form">
                        Create New Product
                    </button>
                </div>
            </div>
        </div>

        <hr />
        
        <?php 
echo $form->dateFieldControlGroup($model, 'delivery_date');
?>
        <?php 
Exemplo n.º 17
0
<?php 
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'pregunta-form', 'enableAjaxValidation' => true, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>

	<p class="note">Campos con <span class="required">*</span> son obligatorios.</p>
<?php 
echo $form->errorSummary($model);
echo $form->dropDownListControlGroup($model, 'tpr_id', CHtml::listData(TipoPregunta::model()->findAll(), 'tpr_id', 'tpr_nombre'), array('empty' => 'Seleccione Tipo de Pregunta'));
echo $form->dropDownListControlGroup($model, 'tev_id', CHtml::listData(TipoEvaluacion::model()->findAll(), 'tev_id', 'tev_nombre'), array('empty' => 'Seleccione Tipo de Evaluacion'));
echo $form->textFieldControlGroup($model, 'pre_descripcion', array('size' => 60, 'maxlength' => 512));
echo $form->textAreaControlGroup($model, 'pre_comentario', array('rows' => 6, 'cols' => 50));
echo $form->labelEx($model, 'pre_imagen');
echo $form->fileField($model, 'pre_imagen', array('value' => $model->pre_imagen));
if (is_file('images/pregunta/' . str_replace("/upload/preguntas/default/", '', $model->pre_imagen))) {
    echo "<br>" . CHtml::image(Yii::app()->request->baseUrl . "/images/pregunta/" . str_replace("/upload/preguntas/default/", '', $model->pre_imagen), '', array("width" => 100, "height" => 100));
}
// echo $form->textFieldControlGroup($model,'pre_desabilitado');
?>
     	 <div class="row">
		 <?php 
echo "<br>" . BsHtml::submitButton('Aceptar', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
     	 </div>


 <?php 
$this->endWidget();
?>

</div><!-- form -->
Exemplo n.º 18
0
    <p class="help-block">Los campos con un <span class="required">*</span> son requeridos.</p>

    <?php 
echo $form->errorSummary($model);
?>

    <?php 
echo $form->textFieldControlGroup($model, 'emp_rut', array('maxlength' => 13, 'disabled' => Yii::app()->controller->action->id !== 'create'));
?>
    <?php 
echo $form->dropDownListControlGroup($model, 'tem_id', CHtml::listData(TipoEmpresa::model()->findAll('tem_desabilitado=0'), 'tem_id', 'tem_nombre'), array('empty' => 'Seleccione un tipo'));
?>
    <?php 
echo $form->dropDownListControlGroup($model, 'are_id', CHtml::listData(AreaOperativa::model()->findAll('are_desabilitado=0'), 'are_id', 'are_nombre'), array('empty' => 'Seleccione un Área'));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'emp_nombre', array('maxlength' => 256));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'emp_direccion', array('maxlength' => 512));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'emp_fono', array('maxlength' => 64));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'emp_email', array('maxlength' => 256));
?>

    <?php 
echo BsHtml::formActions(array(BsHtml::submitButton('Guardar', array('color' => BsHtml::BUTTON_COLOR_PRIMARY))));
$this->endWidget();
Exemplo n.º 19
0
		</div>
	</div>
	<div class="form-group">
		<?php 
echo CHtml::label('Organic Status', 'organicStatus', array('class' => 'col-lg-2'));
?>
		<div class="col-lg-10 ">
		<?php 
echo CHtml::dropDownList('organicStatus', Yii::app()->request->getPost('organicStatus'), Supplier::getOSDropdownListItems(), array('prompt' => ' - Select - ', 'class' => 'form-control'));
?>
		</div>
	</div>
	<div class="form-group">
		<div class="col-lg-10 col-lg-offset-2">
			<?php 
echo BsHtml::submitButton('Box Sales', array('name' => 'boxSales', 'class' => 'button', 'color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
		</div>
	</div>
<?php 
$this->endWidget();
?>

<?php 
if ($series) {
    ?>
<div class="row">
	<div class="col-md-12">
	<?php 
    //print_r(CJSON::encode($series[0]['data']));
    $this->Widget('boxomatic.extensions.highcharts.HighchartsWidget', array('options' => array('title' => array('text' => 'Box Sales'), 'xAxis' => array('type' => 'datetime'), 'yAxis' => $yAxis, 'series' => $series)));
Exemplo n.º 20
0
<?php 
echo $form->textField($model, 'username', array('prepend' => BsHtml::icon(BsHtml::GLYPHICON_USER), 'placeholder' => 'Rut : Ej 12.123.123-4', 'required' => 'required'));
?>
<br>
<?php 
echo $form->passwordField($model, 'password', array('prepend' => BsHtml::icon(BsHtml::GLYPHICON_LOCK), 'placeholder' => 'Contraseña'));
?>
<br>
<div class="input-group">
<?php 
echo $form->errorSummary($model);
?>
</div>
<?php 
echo $form->checkBoxControlGroup($model, 'rememberMe');
echo BsHtml::submitButton('Acceder', array('color' => BsHtml::BUTTON_COLOR_INFO, 'pull' => BsHtml::PULL_RIGHT));
?>
  
<?php 
$this->endWidget();
?>
</fieldset>
</form>
</div>
    
</div>
    
</div>
</div>

</div>
Exemplo n.º 21
0
<?php

/* @var $this RoleController */
/* @var $model Role */
/* @var $form BSActiveForm */
?>

<?php 
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'role-form', 'enableAjaxValidation' => false));
?>
    <div class="box-body">
        <p class="help-block">Fields with <span class="required">*</span> are required.</p>

        <?php 
echo $form->errorSummary($model);
?>

        <?php 
echo $form->textFieldControlGroup($model, 'kd_role', array('maxlength' => 15));
?>
        <?php 
echo $form->textFieldControlGroup($model, 'role_name', array('maxlength' => 30));
?>
    </div>
    <div class="box-footer">
        <?php 
echo BsHtml::submitButton('Submit', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
    </div>
<?php 
$this->endWidget();
Exemplo n.º 22
0
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day1');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day2');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day3');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day4');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day5');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day6');
?>
        <?php 
echo $form->textFieldControlGroup($model, 'time_work_day7');
?>
        
    </fieldset>

    <?php 
echo BsHtml::formActions(array(BsHtml::resetButton('Сброс', array('color' => BsHtml::BUTTON_COLOR_WARNING, 'icon' => BsHtml::GLYPHICON_REFRESH)), BsHtml::submitButton('Готово', array('color' => BsHtml::BUTTON_COLOR_SUCCESS, 'icon' => BsHtml::GLYPHICON_OK))), array('class' => 'form-actions'));
?>
    

<?php 
$this->endWidget();