aggregation-platform/plugins/developer/html/projectEnvironments.html

98 lines
3.5 KiB
HTML

<div ng-controller="Developer.ProjectEnvironmentsController">
<div hawtio-breadcrumbs></div>
<div hawtio-tabs></div>
<script type="text/ng-template" id="environmentNameTemplate.html">
<div class="ngCellText">
<div class="ngCellText">
<a ng-show="row.entity.$environmentLink" href="{{row.entity.$environmentLink}}" title="View this environment">
<i class="fa fa-cube"></i> {{row.entity.name}}
</a>
<span ng-hide="row.entity.$environmentLink"><i class="fa fa-cube"></i> {{row.entity.name}}</span>
</div>
</div>
</script>
<script type="text/ng-template" id="environmentEditTemplate.html">
<div class="ngCellText">
<div class="ngCellText">
<a ng-show="row.entity.$editLink" class="btn" href="{{row.entity.$editLink}}" title="Edit this environment configuration">
<i class="fa fa-pencil-square-o"></i> Edit
</a>
&nbsp;
&nbsp;
<a class="btn" ng-click="$parent.$parent.moveEntity(row.entity, true)" ng-disabled="row.index == 0"
title="Move this environment up in the list">
<i class="fa fa-arrow-up"></i>
</a>
<a class="btn" ng-click="$parent.$parent.moveEntity(row.entity, false)" ng-disabled="row.index >= $parent.$parent.model.environments.length - 1"
title="Move this environment down in the list">
<i class="fa fa-arrow-down"></i>
</a>
</div>
</div>
</script>
<div class="row filter-header" ng-show="model.environments.length">
<div class="col-md-12">
<span ng-show="!id">
<hawtio-filter ng-model="tableConfig.filterOptions.filterText"
css-class="input-xxlarge"
placeholder="Filter environment configurations..."></hawtio-filter>
</span>
<span class="pull-right">&nbsp;</span>
<button class="btn btn-danger pull-right"
title="Deletes the selected environments"
ng-disabled="!tableConfig.selectedItems.length"
ng-click="deletePrompt(tableConfig.selectedItems)">
<i class="fa fa-remove"></i> Delete
</button>
<span class="pull-right">&nbsp;</span>
<a class="btn btn-primary pull-right"
title="Adds a new environment configuration to this project"
href="{{baseUri}}/workspaces/{{namespace}}/environments/create">
<i class="fa fa-plus"></i> Add
</a>
</div>
</div>
<div ng-hide="model.fetched">
<div class="row">
<div class="col-md-12">
<div class="align-center">
<i class="fa fa-spinner fa-spin"></i>
</div>
</div>
</div>
</div>
<div ng-show="model.fetched">
<div class="jumbotron" ng-hide="model.environments.length">
<div class="row">
<div class="col-md-12">
<div>
<p>There are no environments currently available.</p>
<p>Create environments by creating a
<a class="btn btn-primary" href="{{baseUri}}/workspaces/{{namespace}}/forge/createProject"
title="Create a new app in this project">
New Application
</a>
</p>
</div>
</div>
</div>
</div>
<div ng-show="model.fetched">
<div ng-show="model.environments.length">
<div class="row">
<div class="col-md-12">
<table class="table table-bordered table-striped" hawtio-simple-table="tableConfig"></table>
</div>
</div>
</div>
</div>
</div>
</div>