Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
add initial support for investigations UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbryner committed Jan 27, 2015
1 parent 175a20d commit 0281b61
Show file tree
Hide file tree
Showing 7 changed files with 1,382 additions and 6 deletions.
60 changes: 60 additions & 0 deletions meteor/app/client/investigationAdd.html
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>
553 changes: 553 additions & 0 deletions meteor/app/client/investigationEdit.html

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions meteor/app/client/investigationTable.html
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>

0 comments on commit 0281b61

Please sign in to comment.