コード例 #1
0
ファイル: _case_form.php プロジェクト: mjrao/BugFree
?>
                </div>
                <div class="row">
                    <?php 
echo $form->label($model, 'assign_to_name');
?>
                    <?php 
$this->widget('application.extensions.autocomplete.AutoCompleteWidget', array('model' => $model, 'attribute' => 'assign_to_name', 'htmlOptions' => array('class' => 'info_input required'), 'urlOrData' => TestUser::getSearchUserUrl(TestUser::USER_TYPE_ACTIVE)));
?>
                </div>
                <div class="row">
                    <?php 
echo $form->label($model, 'mail_to');
?>
                    <?php 
$this->widget('application.extensions.autocomplete.AutoCompleteWidget', array('model' => $model, 'attribute' => 'mail_to', 'config' => '{multiple:true}', 'htmlOptions' => array('class' => 'info_input'), 'urlOrData' => TestUser::getSearchUserUrl()));
?>
                </div>
                <div class="row">
                    <?php 
echo $form->label($model, 'priority');
?>
                    <?php 
echo $form->dropDownList($model, 'priority', ProductService::getCasePriorityOption($model['product_id']), array('class' => 'info_input required', 'style' => 'width:190px;'));
?>
                </div>
                <?php 
echo empty($customfield['case_status']) ? '' : $customfield['case_status'];
?>
                <div class="row">
                    <?php 
コード例 #2
0
ファイル: edit.php プロジェクト: mjrao/BugFree
?>
		<?php 
echo $form->textField($model, 'display_order', array('size' => 60, 'maxlength' => 255, 'class' => 'required')) . Yii::t('Common', 'Please input an integer between 0~255');
?>
	</div>


        <div class="row">
		<?php 
echo $form->label($model, 'product_manager');
?>
                <?php 
if (CommonService::$TrueFalseStatus['FALSE'] == Yii::app()->user->getState('system_admin')) {
    echo $form->textField($model, 'product_manager', array('style' => 'width:550px;', 'readonly' => 'readonly', 'class' => 'readonly_field', 'title' => $model->product_manager));
} else {
    $this->widget('application.extensions.autocomplete.AutoCompleteWidget', array('model' => $model, 'multiline' => true, 'attribute' => 'product_manager', 'htmlOptions' => array('style' => 'width:550px;', 'rows' => 4), 'urlOrData' => TestUser::getSearchUserUrl(), 'config' => '{multiple:true}'));
}
?>
	</div>

        <div class="row">
		<?php 
echo $form->label($model, 'group_name');
?>
                <?php 
$this->widget('application.extensions.multiSelect.MultiSelectWidget', array('model' => $model, 'attribute' => 'group_name', 'selectOptionData' => UserGroupService::getAllActiveGroup(), 'htmlOptions' => array('style' => 'width:530px;')));
?>
	</div>

        <div class="row">
		<?php 
コード例 #3
0
ファイル: _search_page.php プロジェクト: mjrao/BugFree
var infoType = '<?php 
echo $infoType;
?>
';
var dateFormatError = '<?php 
echo Yii::t('Common', 'Please use valid date format. For example, 2009-10-8 or -7.');
?>
';
<?php 
foreach ($searchFieldConfig as $key => $value) {
    echo 'var field_' . $key . '_type=\'' . $value['type'] . '\';' . "\n";
}
echo $jsValueStr;
echo $jsOperatorStr;
//load autocomplete resource
$this->widget('application.extensions.autocomplete.AutoCompleteWidget', array('name' => 'search_autocomplete', 'urlOrData' => TestUser::getSearchUserUrl(TestUser::USER_TYPE_BOTH)), true);
?>
function updateQueryValue(index,isKeepOldValue)
{
    var $fieldName = $('#'+searchParamsPreFix+'_field'+index).val();
    var $operatorValue = $('#'+searchParamsPreFix+'_operator'+index).val();
    var $oldFieldValue = $('#'+searchParamsPreFix+'_value'+index).val();
    if(('severity' == $fieldName || 'priority' == $fieldName) && 'IN' == $operatorValue)
    {
        $('#'+searchParamsPreFix+'_value'+index).replaceWith('<input type="text" size="16" value="" id="BugFreeQuery_value'+index+'" name="BugFreeQuery[value'+index+']">');
        if(true == isKeepOldValue)
        {
            $('#'+searchParamsPreFix+'_value'+index).attr('value',$oldFieldValue);
        }
        return;
    }
コード例 #4
0
ファイル: _form.php プロジェクト: mjrao/BugFree
} else {
    echo CHtml::encode($moduleOptionArr[$model->parent_id]);
}
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'owner_name');
?>
                <?php 
$ownerAttributeName = 'owner_name';
if ('add' == $moduleFormId) {
    $ownerAttributeName = 'add_owner_name';
}
$this->widget('application.extensions.autocomplete.AutoCompleteWidget', array('model' => $model, 'attribute' => $ownerAttributeName, 'htmlOptions' => array('style' => 'width:240px'), 'urlOrData' => TestUser::getSearchUserUrl()));
?>
	</div>

	<div class="row">
		<?php 
echo $form->label($model, 'display_order');
?>
		<?php 
echo $form->textField($model, 'display_order', array('class' => 'required')) . Yii::t('Common', 'Please input an integer between 0~255');
?>
	</div>

	<hr class="dash"/>
	<?php 
if ('edit' == $moduleFormId) {
コード例 #5
0
ファイル: edit.php プロジェクト: mjrao/BugFree
                            </div>
                        </td>
                        <td style="width:240px;">
                        <?php 
echo $form->dropDownList($model, 'group_user', $model->group_user, array('multiple' => true, 'style' => 'width:240px;height:260px;', 'class' => 'required'));
?>
                        </td>
                    </tr>
                </table>
	</div>
        <div class="row">
		<?php 
echo $form->label($model, 'group_manager');
?>
		<?php 
$this->widget('application.extensions.autocomplete.AutoCompleteWidget', array('model' => $model, 'attribute' => 'group_manager', 'config' => '{multiple:true}', 'htmlOptions' => array('style' => 'width:590px;', 'class' => 'required'), 'urlOrData' => TestUser::getSearchUserUrl()));
?>
	</div>
        <div class="row">
		<?php 
echo $form->label($model, 'is_dropped');
?>
                <?php 
echo $form->dropDownList($model, 'is_dropped', CommonService::getTrueFalseOptions(), array('class' => 'required'));
?>
	</div>
        <div style="clear:both;"></div>
        <hr/>
	<?php 
echo CHtml::submitButton(Yii::t('Common', 'Save'), array('class' => 'margin-left-190'));
?>