-
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 metrics, settings and datatypes admin page
- Loading branch information
Showing
4 changed files
with
113 additions
and
109 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
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,55 +1,61 @@ | ||
<h2 class="vpad10">Case metrics management</h2> | ||
<div class="vpad10"></div> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<form ng-submit="addMetric()"> | ||
<div class="row"> | ||
<div class="form-group col-md-3"> | ||
<label>Name</label> | ||
<input class="form-control" ng-model="metric.name" placeholder="The name of the metric" required type="text"> | ||
</div> | ||
<div class="form-group col-md-3"> | ||
<label>Title</label> | ||
<input class="form-control" ng-model="metric.title" placeholder="The label that will be used in the case form" required type="text"> | ||
<div class="box"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Case metrics management</h3> | ||
</div> | ||
<div class="box-body"> | ||
<div class="row"> | ||
<div class="col-md-12"> | ||
<form name="metricForm" ng-submit="addMetric()"> | ||
<div class="row"> | ||
<div class="form-group col-md-3"> | ||
<label>Name</label> | ||
<input class="form-control" ng-model="metric.name" placeholder="The name of the metric" required type="text"> | ||
</div> | ||
<div class="form-group col-md-3"> | ||
<label>Title</label> | ||
<input class="form-control" ng-model="metric.title" placeholder="The label that will be used in the case form" required type="text"> | ||
|
||
</div> | ||
<div class="form-group col-md-5"> | ||
<label>Description</label> | ||
<input class="form-control" ng-model="metric.description" placeholder="A brief description of the metric" required type="text"> | ||
</div> | ||
<div class="form-group col-md-1"> | ||
<label> </label><br> | ||
<button class="btn btn-primary" type="submit">Add metric</button> | ||
</div> | ||
</div> | ||
<div class="form-group col-md-5"> | ||
<label>Description</label> | ||
<input class="form-control" ng-model="metric.description" placeholder="A brief description of the metric" required type="text"> | ||
</div> | ||
<div class="form-group col-md-1"> | ||
<label> </label><br> | ||
<button class="btn btn-primary" type="submit" ng-disabled="metricForm.$invalid">Add metric</button> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
<hr> | ||
<div class="vpad10"></div> | ||
<div class="row"> | ||
<div class="col-md-12" ng-if="metrics.length === 0"> | ||
<div class="empty-message">There are no metrics defined yet</div> | ||
</div> | ||
<div class="col-md-12" ng-if="metrics.length !== 0"> | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th class="col-md-3">Name</th> | ||
<th class="col-md-3">Title</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="metric in metrics"> | ||
<td>{{metric.name}}</td> | ||
<td>{{metric.title}}</td> | ||
<td>{{metric.description}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</form> | ||
</div> | ||
</div> | ||
<hr> | ||
<div class="vpad10"></div> | ||
<div class="row"> | ||
<div class="col-md-12" ng-if="metrics.length === 0"> | ||
<div>There are not metrics defined yet</div> | ||
</div> | ||
<div class="col-md-12" ng-if="metrics.length !== 0"> | ||
<table class="table table-hover"> | ||
<thead> | ||
<tr> | ||
<th class="col-md-3">Name</th> | ||
<th class="col-md-3">Title</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="metric in metrics"> | ||
<td>{{metric.name}}</td> | ||
<td>{{metric.title}}</td> | ||
<td>{{metric.description}}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
<div class="vpad10"></div> | ||
|
||
<div class="vpad10"></div> | ||
</div> | ||
</div> |
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,35 +1,38 @@ | ||
<h2 class="vpad10">Observables management</h2> | ||
<div class="vpad10"></div> | ||
<h4>DataTypes</h4> | ||
<hr> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<!-- placeholder="newDataTypes" --> | ||
<textarea class="form-control" ng-list=" " ng-model="params.newDataTypes" ng-trim="false" style="resize: vertical"></textarea> | ||
<br> | ||
<span class="pull-right"> | ||
<button class="btn btn-primary" ng-click="addArtifactDataTypeList()" ng-disabled="newDataTypes.length === 0"> | ||
<i class=" glyphicon glyphicon-plus"></i> | ||
<b>Add dataTypes</b> | ||
</button> | ||
</span> | ||
<div class="box"> | ||
<div class="box-header"> | ||
<h3 class="box-title">Observable datatypes management</h3> | ||
</div> | ||
<div class="col-md-6"> | ||
<table class="table table-hover"> | ||
<thead> | ||
<th>dataType</th> | ||
<th class="col-md-1" style="text-align:center">Action</th> | ||
</thead> | ||
<tbody ng-init="textDel = muted" ng-repeat="datatype in dataTypeList"> | ||
<tr> | ||
<td>{{datatype.value}}</td> | ||
<td ng-mouseout="textDel = 'text-muted'" ng-mouseover="textDel = 'text-danger'" style="text-align:center"> | ||
<a href ng-click="deleteArtifactDataType(datatype)"> | ||
<i class="text-muted glyphicon glyphicon-trash" ng-class="textDel"></i> | ||
</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<div class="box-body"> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<form class="mv-s" name="dtForm" ng-submit="addArtifactDataTypeList()"> | ||
<div class="input-group input-group-sm"> | ||
<input class="form-control" ng-model="params.newDataType" placeholder="Specify the datatype to add. Ex: domain, ip, email" required> | ||
<span class="input-group-btn"> | ||
<button type="submit" class="btn btn-primary btn-flat" ng-disabled="dtForm.$invalid">Add dataType</button> | ||
</span> | ||
</div> | ||
</form> | ||
|
||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>dataType</th> | ||
<th width="80">Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr ng-repeat="datatype in dataTypeList"> | ||
<td>{{datatype.value}}</td> | ||
<td> | ||
<a href ng-click="deleteArtifactDataType(datatype)"> | ||
<i class="text-danger glyphicon glyphicon-trash"></i> | ||
</a> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
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