Esempio n. 1
0
    // user has entered system
    ?>
    <!-- Navigation -->
    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="<?php 
    echo Yii::$app->homeUrl;
    ?>
"><?php 
    echo Html::encode(\frontend\models\shops\shopHelper::getCurrShop());
    ?>
 | <span><?php 
    echo \frontend\models\helper::getUserName();
    ?>
</span></a>
</div>
<!-- /.navbar-header -->

<ul class="nav navbar-top-links navbar-right">
    <li class="dropdown">
        <a class="dropdown-toggle" data-toggle="dropdown" href="#">
            <i class="fa fa-shopping-cart fa-fw"></i>  <i class="fa fa-caret-down"></i>
        </a>
        <ul class="dropdown-menu dropdown-messages">
            <li>
Esempio n. 2
0
<div class="shop-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'description')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'status')->dropDownList(\frontend\models\shops\shopHelper::transShopStatus(Yii::$app->params['shop_status']));
?>

    <div class="form-group">
        <?php 
echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']);
?>
        <?php 
echo Html::a(Yii::t('app', 'Cancel'), ['/shopsettings/index'], ['class' => 'btn btn-default']);
?>
    </div>

    <?php 
ActiveForm::end();
?>
Esempio n. 3
0
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model frontend\models\managers\Manager */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="manager-form">

    <?php 
$form = ActiveForm::begin();
?>

    <?php 
echo $form->field($model, 'shop_id')->dropDownList(\frontend\models\shops\shopHelper::getShopList());
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'description')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'email')->textInput(['emailLength' => true]);
?>

    <?php