Exemplo n.º 1
0
<div class="modal-body form-task-organizations-search">
    <?php 
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('action' => Yii::app()->createUrl('task/organizations'), 'method' => 'get'));
?>
    <div class="row">
        <?php 
echo $form->hiddenField($search, 'so_ids');
?>
        <div class="col col-md-3">
            <?php 
echo $form->dropDownListControlGroup($search, 'type', Organization::getTypesArray(), array('class' => 'selectpicker show-tick', 'title' => 'Type'));
?>
        </div>
        <div class="col col-md-3">
            <?php 
echo $form->dropDownListControlGroup($search, 'region_id', Region::getOptionLabels(), array('class' => 'selectpicker show-tick', 'title' => 'Region'));
?>
        </div>
        <div class="col col-md-6">
            <label class="control-label required">Name</label>
            <div class="input-group" style="width: 100%;">
                <?php 
echo $form->textField($search, 'name');
?>
                <span class="input-group-btn">
                <?php 
echo BsHtml::submitButton('Search', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
                </span>
            </div>
        </div>
Exemplo n.º 2
0
<?php

/* @var $this SiteController */
$this->pageTitle = Yii::app()->name;
$types = Organization::getTypesArray(false);
$organizations = Organization::getListByType();
?>


<ol class="breadcrumb">
    <li><a href="/"><?php 
echo __('Home');
?>
</a></li>
    <li><?php 
echo __('Organizations');
?>
</li>
</ol>

<div class="page-header">
    <h3>
        <i class="fa fa-university"></i> <?php 
echo __('Organizations');
?>
    </h3>
</div>

<ul class="nav nav-tabs" role="tablist">
    <?php 
foreach ($types as $type => $label) {
Exemplo n.º 3
0
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'organization-form', 'enableAjaxValidation' => true, 'enableClientValidation' => true, 'clientOptions' => array('validateOnSubmit' => true)));
echo $form->errorSummary($model);
?>
<div class="row">
    <div class="col col-sm-6">
        <?php 
echo $form->textFieldControlGroup($model, 'name', array('maxlength' => 255));
?>
        <?php 
echo $form->textFieldControlGroup($model, 'short_name', array('maxlength' => 30));
?>
        <?php 
echo $form->dropDownListControlGroup($model, 'parent_id', Organization::getOptionLabels(false), array('class' => 'selectpicker show-tick', 'title' => 'Choose Parent Organization'));
?>
        <?php 
echo $form->dropDownListControlGroup($model, 'type', Organization::getTypesArray(false), array('class' => 'selectpicker show-tick', 'title' => 'Choose Type'));
?>
        <hr>
        <div class="row">
            <div class="col col-xs-6">
                <?php 
echo $form->textFieldControlGroup($model, 'phone', array('maxlength' => 255));
?>
            </div>
            <div class="col col-xs-6">
                <?php 
echo $form->textFieldControlGroup($model, 'email', array('maxlength' => 64));
?>
            </div>
        </div>
    </div>