예제 #1
0
파일: view.php 프로젝트: ufrgs-hyman/meican
\meican\topology\assets\service\Index::register($this);
$this->params['header'] = [$model->name, ['Home', 'Topology', 'Providers', $model->name]];
?>

<div class="row">
    <div class="col-md-6">
        <div class="box box-default">
            <div class="box-header with-border">
                <h3 class="box-title"><?php 
echo Yii::t("topology", "Details");
?>
</h3>
            </div>
            <div class="box-body">
                <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['id', 'name', 'nsa', ['attribute' => 'type', 'value' => $model->getType()], 'latitude', 'longitude', ['attribute' => 'domain_id', 'value' => $model->getDomainName()]]]);
?>
            </div>
        </div>
    </div>
    <div class="col-md-6">
        <div class="box box-default">
            <div class="box-header with-border">
                <h3 class="box-title"><?php 
echo Yii::t("topology", "Services");
?>
</h3>
                <div class="box-tools">
                    <?php 
echo GridButtons::widget(['size' => 'small', 'addRoute' => ['/topology/service/create', 'id' => $model->id]]);
?>
예제 #2
0
<?php

/**
 * @copyright Copyright (c) 2012-2016 RNP
 * @license http://github.com/ufrgs-hyman/meican#license
 */
use yii\bootstrap\Html;
use meican\base\widgets\DetailView;
?>

<?php 
echo Html::img("@web/images/avatar.png", ['class' => 'profile-user-img img-responsive img-circle']);
?>

<p class="text-muted text-center"><?php 
echo $model->name;
?>
</p>

<?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['created_at', 'login', 'email', ['attribute' => 'language', 'value' => $model->getLanguage()], 'time_zone', 'time_format', 'date_format']]);
예제 #3
0
파일: view.php 프로젝트: ufrgs-hyman/meican
echo Yii::t("circuits", "Circuits");
?>
</h3>
            </div>
            <div class="box-body">
                <?php 
echo Grid::widget(['dataProvider' => $connDataProvider, 'columns' => [['class' => 'yii\\grid\\ActionColumn', 'template' => '{view}', 'buttons' => ['view' => function ($url, $model) {
    return Html::a('<span class="fa fa-eye"></span>', ['connection/view', 'id' => $model->id]);
}], 'headerOptions' => ['style' => 'width: 2%;']], 'external_id', 'start:datetime', 'finish:datetime', 'status', 'dataplane_status', 'auth_status']]);
?>
            </div>
        </div> 
    </div>
    <div class="col-md-4">
        <div class="box box-default">
            <div class="box-header with-border">
                <h3 class="box-title"><?php 
echo Yii::t("circuits", "Reservation Info");
?>
</h3>
            </div>
            <div class="box-body">
                <?php 
echo DetailView::widget(['model' => $reservation, 'attributes' => ['id', 'name', 'bandwidth', 'requester_nsa', 'provider_nsa']]);
?>
            </div>
        </div>    
    </div>
</div> 
 
예제 #4
0
;
</script>

<div class="row">
    <div class="col-md-6">
        <div class="box box-default">
            <div class="box-header with-border">
                <h3 class="box-title"><?php 
echo Yii::t("circuits", "Informations");
?>
</h3>
            </div>
            <div class="box-body">                
                <div class="table-responsive">
			    	<?php 
echo DetailView::widget(['options' => ['class' => 'table table-condensed'], 'model' => $info, 'attributes' => ['reservation_name', 'source_domain', 'destination_domain', 'requester', 'bandwidth', 'port_in:html', 'port_out:html']]);
?>
				</div>
            </div>
        </div>
    </div>

    <div class="col-md-6">
        <div class="box box-default">
        	<?php 
\yii\widgets\Pjax::begin(['id' => 'pjaxContainer']);
?>
            <div class="box-header with-border">
                <table style="width: 100%;">
					<tr>
						<td id="auth_controls" style="text-align: left; width: 66%; padding: 0px;">
예제 #5
0
파일: task.php 프로젝트: ufrgs-hyman/meican
$this->params['header'] = [Yii::t('topology', "Discovery Task") . ' #' . $model->id, ['Home', 'Topology', 'Discovery', 'Task']];
?>
<data id="task-id" value="<?php 
echo $model->id;
?>
"/>
<div class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title"><?php 
echo Yii::t("topology", "Task info");
?>
</h3>
    </div>
    <div class="box-body">
        <?php 
echo DetailView::widget(['model' => $model, 'attributes' => ['started_at:datetime', ['label' => 'Rule name', 'value' => $model->getRule()->asArray()->one()['name']], ['label' => 'Target URL', 'value' => $model->getRule()->asArray()->one()['url']], ['label' => 'Topology type', 'value' => $model->getRule()->one()->getType()], 'status', ['label' => 'Total pending changes', 'value' => $model->getChanges()->where(['status' => Change::STATUS_PENDING])->count()], ['label' => 'Total applied changes', 'value' => $model->getChanges()->where(['status' => Change::STATUS_APPLIED])->count()], ['label' => 'Total failed changes', 'value' => $model->getChanges()->where(['status' => Change::STATUS_FAILED])->count()]]]);
?>
    </div>
</div>  

<div id="changes-box" class="box box-default">
    <div class="box-header with-border">
        <h3 class="box-title"><?php 
echo Yii::t("topology", "Discovered changes");
?>
</h3>
        <div class="box-tools">
            <button class="btn btn-sm btn-default" id="apply-all">Apply all changes</button>
        </div>
    </div>
    <div class="box-body">
예제 #6
0
<?php

/**
 * @copyright Copyright (c) 2016 RNP
 * @license http://github.com/ufrgs-hyman/meican#license
 */
use meican\base\widgets\DetailView;
echo DetailView::widget(['id' => 'circuit-info', 'model' => $conn, 'attributes' => ['external_id', ['label' => 'Name', 'value' => $conn->getName()], ['attribute' => 'bandwidth', 'format' => 'raw', 'value' => '<data id="info-bandwidth" value="' . $conn->bandwidth . '"></data>' . $conn->bandwidth . " Mbps"], ['attribute' => 'start', 'format' => 'raw', 'value' => '<data id="info-start" value="' . Yii::$app->formatter->asDatetime($conn->start) . '"></data>' . Yii::$app->formatter->asDatetime($conn->start)], ['attribute' => 'finish', 'format' => 'raw', 'value' => '<data id="info-end" value="' . Yii::$app->formatter->asDatetime($conn->finish) . '"></data>' . Yii::$app->formatter->asDatetime($conn->finish)], 'version', 'type', ['label' => 'Provider', 'value' => 'RNP Aggregator']]]);