This repository has been archived by the owner on Nov 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add initial support for investigations UI
- Loading branch information
1 parent
175a20d
commit 0281b61
Showing
7 changed files
with
1,382 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<!-- | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
Copyright (c) 2014 Mozilla Corporation | ||
Contributors: | ||
Jeff Bryner jbryner@mozilla.com | ||
--> | ||
|
||
<!--new investigation form --> | ||
<template name="addinvestigationform"> | ||
<style> | ||
|
||
.daterangepicker td{ | ||
color:black; | ||
} | ||
</style> | ||
<form id="addinvestigationform" class="form-horizontal" style="margin: 0px 30% 20px;"> | ||
<legend>New investigation</legend> | ||
<!-- Summary --> | ||
<div class="form-group"> | ||
<label class="col-xs-3 control-label" for="summary">investigation Summary</label> | ||
<div class="col-xs-5"> | ||
<input id="summary" name="summary" placeholder="summary" class="form-control summary" required="" type="text"> | ||
</div> | ||
</div> | ||
<!-- date Opened --> | ||
<div class="form-group"> | ||
<label class="col-xs-3 control-label" for="dateOpened">Date Opened</label> | ||
<div class="col-xs-5"> | ||
<div class="input-prepend input-group"> | ||
<span class="add-on input-group-addon"><i class="icon-calendar fa fa-calendar"></i></span> | ||
<input class="input form-control dateOpened calendarfield" name="dateOpened" id="dateOpened" type="text" placeholder="today" value="{{uiDateFormat now}}"> | ||
</div> | ||
</div> | ||
</div> | ||
<!-- Phase --> | ||
<div class="form-group"> | ||
<label class="col-xs-3 control-label" for="phase">Phase</label> | ||
<div class="col-xs-5"> | ||
<select id="phase" name="phase" class="form-control"> | ||
<option>Identification</option> | ||
<option>Evidence</option> | ||
<option>Holding</option> | ||
<option>Escalation</option> | ||
<option>Closed</option> | ||
</select> | ||
</div> | ||
</div> | ||
|
||
<!-- Button --> | ||
<div class="form-group"> | ||
<label class="col-xs-3 control-label" for="submit"></label> | ||
<div class="col-xs-3"> | ||
<button id="submit" type="submit" name="submit" class="form-control btn btn-primary submit">Save</button> | ||
</div> | ||
</div> | ||
</form> | ||
</template> |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
<!-- | ||
This Source Code Form is subject to the terms of the Mozilla Public | ||
License, v. 2.0. If a copy of the MPL was not distributed with this | ||
file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
Copyright (c) 2014 Mozilla Corporation | ||
Contributors: | ||
Jeff Bryner jbryner@mozilla.com | ||
--> | ||
|
||
<!--a striped table--> | ||
<template name="investigations"> | ||
<div class="investigations container"> | ||
<div class="fluid center"> | ||
<table class="table table-striped table-hover table-condensed"> | ||
<caption><p class="lead">Last 100 investigations</p></caption> | ||
<thead> | ||
<tr> | ||
<td></td> | ||
<td>Summary</td> | ||
<td>Phase</td> | ||
<td>Opened</td> | ||
<td>Closed</td> | ||
<td></td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{{#each investigation}} | ||
{{>each_investigation}} | ||
{{/each}} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<!--each individual item --> | ||
<template name="each_investigation"> | ||
|
||
<tr> | ||
<td><button class="btn btn-xs btn-default investigationedit" data-incidentid={{_id}}>edit</button></td> | ||
<td>{{summary}}</td> | ||
<td>{{phase}}</td> | ||
<td>{{dateOpened}}</td> | ||
<td>{{dateClosed}}</td> | ||
<td><button class="btn btn-xs btn-warning" data-toggle="collapse" data-target="#delete{{_id}}">arm delete</button> | ||
<div id="delete{{_id}}" class="collapse"> | ||
<button class="btn btn-xs btn-danger investigationdelete" data-incidentid={{_id}}>delete</button> | ||
</div> | ||
</td> | ||
</tr> | ||
|
||
</template> |
Oops, something went wrong.