-
Notifications
You must be signed in to change notification settings - Fork 640
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#145 Update skin of report template admin page
- Loading branch information
Showing
1 changed file
with
60 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,64 @@ | ||
<h2>Report template management</h2> | ||
<div class="vpad10"></div> | ||
<div class="row mb-s"> | ||
<div class="col-md-12 clearfix"> | ||
<div class="pull-left"> | ||
<!-- Single button --> | ||
<div class="btn-group"> | ||
<button type="button" class="btn btn-primary" ng-click="vm.import()"> | ||
<span class="fa fa-upload"></span> Import templates | ||
</button> | ||
<div class="box"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Report template management</h3> | ||
</div> | ||
<div class="box-body"> | ||
<div class="row mb-s"> | ||
<div class="col-md-12 clearfix"> | ||
<div class="pull-left"> | ||
<!-- Single button --> | ||
<div class="btn-group"> | ||
<button type="button" class="btn btn-sm btn-primary" ng-click="vm.import()"> | ||
<span class="fa fa-upload"></span> Import templates | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="row mv-s" ng-show="vm.analyzerCount === 0"> | ||
<div class="col-md-12"> | ||
<div class="empty-message">No report templates found.</div> | ||
</div> | ||
</div> | ||
<div class="row" ng-show="vm.analyzerCount > 0"> | ||
<div class="col-md-12"> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th width="200px">Short template</th> | ||
<th width="200px">Long template</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="analyzer in vm.analyzers"> | ||
<td> | ||
{{::analyzer.id}}<br> | ||
<small class="text-muted">{{::analyzer.description}}</small> | ||
</td> | ||
<td class="vmiddle"> | ||
<div class="btn-group btn-group-sm" ng-if="analyzer.shortReport"> | ||
<button type="button" class="btn btn-default" ng-click="vm.showTemplate(analyzer.shortReport, analyzer)">View Template</button> | ||
<button type="button" class="btn btn-danger" ng-click="vm.deleteTemplate(analyzer.shortReport)"><i class="fa fa-times"></i></button> | ||
</div> | ||
<div class="btn-group btn-group-sm" ng-if="!analyzer.shortReport"> | ||
<button type="button" class="btn btn-dark" ng-click="vm.showTemplate({reportType: 'short'}, analyzer)">Default template</button> | ||
</div> | ||
</td> | ||
<td class="vmiddle"> | ||
<div class="btn-group btn-group-sm" ng-if="analyzer.longReport"> | ||
<button type="button" class="btn btn-default" ng-click="vm.showTemplate(analyzer.longReport, analyzer)">View Template</button> | ||
<button type="button" class="btn btn-danger" ng-click="vm.deleteTemplate(analyzer.longReport)"><i class="fa fa-times"></i></button> | ||
</div> | ||
<div class="btn-group btn-group-sm" ng-if="!analyzer.longReport"> | ||
<button type="button" class="btn btn-dark" ng-click="vm.showTemplate({reportType: 'long'}, analyzer)">Default template</button> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div class="row mv-s" ng-show="vm.analyzerCount === 0"> | ||
<div class="col-md-12"> | ||
<div class="empty-message">No report templates found.</div> | ||
</div> | ||
</div> | ||
<div class="row" ng-show="vm.analyzerCount > 0"> | ||
<div class="col-md-12"> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th width="200px">Short template</th> | ||
<th width="200px">Long template</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="analyzer in vm.analyzers"> | ||
<td> | ||
{{::analyzer.id}}<br> | ||
<small class="text-muted">{{::analyzer.description}}</small> | ||
</td> | ||
<td class="vmiddle"> | ||
<div class="btn-group btn-group-sm" ng-if="analyzer.shortReport"> | ||
<button type="button" class="btn btn-default" ng-click="vm.showTemplate(analyzer.shortReport, analyzer)">View Template</button> | ||
<button type="button" class="btn btn-danger" ng-click="vm.deleteTemplate(analyzer.shortReport)"><i class="fa fa-times"></i></button> | ||
</div> | ||
<div class="btn-group btn-group-sm" ng-if="!analyzer.shortReport"> | ||
<button type="button" class="btn btn-dark" ng-click="vm.showTemplate({reportType: 'short'}, analyzer)">Default template</button> | ||
</div> | ||
</td> | ||
<td class="vmiddle"> | ||
<div class="btn-group btn-group-sm" ng-if="analyzer.longReport"> | ||
<button type="button" class="btn btn-default" ng-click="vm.showTemplate(analyzer.longReport, analyzer)">View Template</button> | ||
<button type="button" class="btn btn-danger" ng-click="vm.deleteTemplate(analyzer.longReport)"><i class="fa fa-times"></i></button> | ||
</div> | ||
<div class="btn-group btn-group-sm" ng-if="!analyzer.longReport"> | ||
<button type="button" class="btn btn-dark" ng-click="vm.showTemplate({reportType: 'long'}, analyzer)">Default template</button> | ||
</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> |