Example #1
0
    echo Html::hiddenInput('LeadForm[data][' . $field['name'] . '][label]', $field['label']);
    ?>
                <?php 
    echo Html::textInput('LeadForm[data][' . $field['name'] . '][value]', $field['value'], ['class' => 'form-control', 'id' => 'leadform-' . $field['name']]);
    ?>
            </div>
        </div>
    <?php 
}
?>

    <?php 
echo $form->field($lead, 'price', ['wrapperOptions' => ['class' => 'col-sm-2']])->textInput();
?>
    <?php 
echo $form->field($lead, 'status', ['wrapperOptions' => ['class' => 'col-sm-2']])->dropDownList(LeadHelper::getStatuses());
?>

    <?php 
if (!$lead->getLeadId()) {
    ?>
        <?php 
    echo $form->field($leadComments, 'comment')->textarea(['rows' => 5]);
    ?>
    <?php 
}
?>

    <div class="form-group">
        <div class="col-sm-4 col-sm-offset-2">
            <?php 
Example #2
0
use backend\components\helpers\LeadHelper;
use yii\helpers\Html;
?>
<div id="lead_detail_change_status">
    <div id="lead_detail_change_status_content">

        <?php 
echo Html::hiddenInput('userId', $userId);
?>
        <?php 
echo Html::hiddenInput('leadId', $leadId);
?>
        <div id="lead_detail_change_status_select" class="hidden">
            <?php 
echo Html::dropDownList('selectedStatus', $status, LeadHelper::getStatuses(), ['class' => 'form-control input-sm']);
?>
        </div>

        <span id="lead_detail_change_status_label"
              class="lead-detail-change-status-toggle label label-<?php 
echo isset($statusToCssClassMap[$status]) ? $statusToCssClassMap[$status] : 'primary';
?>
">
            <?php 
echo LeadHelper::getStatusNameByCode($status);
?>
        </span>
        <a class="lead-detail-change-status-toggle"><i class="fa fa-sort"></i></a>
    </div>
</div>
Example #3
0
    <div class="row lead-manage-panel">
        <?php 
if (!empty($landingNames)) {
    ?>
            <div class="pull-left col-sm-4 select-landing">
                <?php 
    $landingNames[0] = 'Все';
    ksort($landingNames);
    ?>
                <?php 
    echo Html::dropDownList('selectLanding', $selectedLandingId, $landingNames, ['class' => 'form-control input-sm', 'id' => 'selectLanding']);
    ?>
            </div>
            <div class="pull-left">
                <?php 
    $leadStatuses = LeadHelper::getStatuses();
    $leadStatuses[0] = 'Все';
    ksort($leadStatuses);
    ?>
                <?php 
    echo Html::dropDownList('selectLeadStatus', $selectedLeadStatus, $leadStatuses, ['class' => 'form-control input-sm', 'id' => 'selectLeadStatus']);
    ?>
            </div>
            <div class="pull-left"></div>
            <div class="clear-both"></div>
        <?php 
}
?>
    </div>
    <br>
                                </p>
                            <?php 
    } elseif (LeadActionLog::ACTION_CHANGE_STATUS == $action->getAction()) {
        ?>
                                <p class="m-b-xs"><strong>Изменен статус заявки</strong></p>
                                <p>В промо-странице "<?php 
        echo $action->getLead()->getLanding()->getName();
        ?>
" у заявки <a href="<?php 
        echo Url::to(['/lead/view/', 'id' => $action->getLeadId()]);
        ?>
">#<?php 
        echo $action->getLeadId();
        ?>
</a> изменен статус на "<?php 
        echo \backend\components\helpers\LeadHelper::getStatusNameByCode($action->getLeadStatus());
        ?>
". Статус изменил:</p>
                                <p>
                                    <?php 
        echo UserNameAndPhotoBlockWidget::widget(['user' => $action->getUser(), 'isUserNameLinkable' => User::ROLE_MANAGER != $user->getRole()]);
        ?>
                                </p>
                            <?php 
    } elseif (LeadActionLog::ACTION_ADD_COMMENT == $action->getAction()) {
        ?>
                                <p class="m-b-xs"><strong>Добавлен комментарий</strong></p>
                                <p>В промо-странице "<?php 
        echo $action->getLead()->getLanding()->getName();
        ?>
" для заявки <a href="<?php