コード例 #1
0
ファイル: show.php プロジェクト: semnt/tp01
<br>
<?php 
echo Html::listButton(['url' => $listUrl, 'text' => $controller->t('LIST_USERS')]);
?>

<h1>
    <?php 
echo Html::glyphicon('user');
?>
    <?php 
echo $title;
?>
</h1>
<div class="row detail-view-complex">
    <div class="col-xs-6">
        <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'login', ['attribute' => 'enabled', 'value' => $model->formatEnabled()], ['attribute' => 'groups', 'value' => $model->formatGroups()], 'created_dt']]);
?>
        
        <div class="buttons">
            <?php 
echo Html::deleteButton(['url' => $urlToDelete]);
?>
            <?php 
echo Html::editButton(['url' => [$controller::URL_TO_EDIT, 'id' => $model->id]]);
?>
        </div>
        
    </div>
</div>
コード例 #2
0
ファイル: _list_item.php プロジェクト: semnt/tp01
echo $controller->t('ENABLED');
?>
</b>: 
                <?php 
echo Html::encode($model->formatEnabled());
?>
        </div>
         <div class="col-xs-4">
            <b><?php 
echo $controller->t('CREATED');
?>
</b>: 
                <?php 
echo Html::encode($model->formatCreated());
?>
        </div>
    </div>
    
    
    <div class="buttons">
        <?php 
echo Html::deleteButton(['url' => $urlToDelete, 'class' => $bClass . ' bDelete']);
?>
        <?php 
echo Html::showButton(['url' => $urlToShow, 'class' => $bClass]);
?>
        <?php 
echo Html::editButton(['url' => $urlToEdit, 'class' => $bClass]);
?>
    </div>
</div>