示例#1
0
/* @var $model PayoutTask */
/* @var $form BSActiveForm */
?>

<?php 
$form = $this->beginWidget('bootstrap.widgets.BsActiveForm', array('id' => 'method-of-collection-data-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>

    <p class="help-block">Поля, помеченные <span class="required">*</span>, обязательны для заполнения.</p>

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

    <?php 
echo $form->dropDownListControlGroup($model, 'type', PayoutTaskHelper::getAvailableTypes(), array('class' => 'bs'));
?>
    <?php 
echo $form->fileFieldControlGroup($model, 'file');
?>
    <?php 
echo $form->numberFieldControlGroup($model, 'agentId', array('value' => Yii::app()->params['yandexPayout']['agentId']));
?>
    <?php 
echo $form->textFieldControlGroup($model, 'contract');
?>

    <?php 
echo BsHtml::submitButton('Создать', array('color' => BsHtml::BUTTON_COLOR_PRIMARY));
?>
示例#2
0
<?php

/* @var $this PayoutsController */
use YandexMoney\PayoutAPI;
/* @var $model PayoutTask */
?>

<?php 
$this->menu = array(array('icon' => 'glyphicon glyphicon-tasks', 'label' => 'Список задач', 'url' => array('admin')), array('icon' => 'glyphicon glyphicon-plus-sign', 'label' => 'Создать задачу', 'url' => array('create')), array('icon' => 'glyphicon glyphicon-minus-sign', 'label' => 'Удалить задачу', 'url' => array('delete', 'id' => $model->id), 'onclick' => "return confirm('Вы уверены, что хотите удалить услугу?');"));
$attributes = array(array("name" => 'type', 'value' => PayoutTaskHelper::getAvailableTypeLabel($model->type)), array("name" => 'status', 'value' => $model->getAttributeLabel($model->status)), 'agentId', 'fileName', 'contract', array("name" => 'createdAt', 'value' => date('d.m.Y H:i:s', strtotime($model->createdAt))), array("name" => 'modifiedAt', 'value' => date('d.m.Y H:i:s', strtotime($model->modifiedAt))));
?>

<h1>Задача №<?php 
echo $model->id;
?>
</h1>


<?php 
$this->widget('zii.widgets.CDetailView', array('htmlOptions' => array('class' => 'table table-striped table-condensed ta
ble-hover'), 'data' => $model, 'attributes' => $attributes));
?>

<?php 
if (count($model->payoutDepositions) > 0) {
    ?>
    <h3>Список выплат</h3>

    <table class="table table-bordered">
        <tr>
            <th>Номер транзакции</th>