This commit is contained in:
Matthew Ryan Dillon 2017-09-14 08:06:55 -07:00
parent 408b1bb1d4
commit ffa302298f
6 changed files with 161 additions and 1 deletions

View file

@ -11,6 +11,7 @@ Router.map(function() {
this.route('logout'); this.route('logout');
this.route('collections', function() { this.route('collections', function() {
this.route('1'); this.route('1');
this.route('new');
}); });
}); });

View file

@ -0,0 +1,4 @@
import Ember from 'ember';
export default Ember.Route.extend({
});

View file

@ -1,4 +1,4 @@
<h2>Collection Detail</h2> <h3>Collection Detail</h3>
<div class="row"> <div class="row">
<div class="panel panel-default col-md-12"> <div class="panel panel-default col-md-12">
@ -33,6 +33,18 @@
</div> </div>
</div> </div>
<div class="row">
<div class="panel panel-default col-md-12">
<div class="panel-body">
<ul>
<li><a href="">Attachment 1: Photo</a></li>
<li><a href="">Attachment 2: Field Sheets</a></li>
<li><a href="">Attachment 3: Misc Notes</a></li>
</ul>
</div>
</div>
</div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<form class="form-inline"> <form class="form-inline">

View file

@ -0,0 +1,130 @@
<form class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label">
Start Date
</label>
<div class="col-sm-10">
<input type="date" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
Start Time
</label>
<div class="col-sm-10">
<input type="date" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
End Date
</label>
<div class="col-sm-10">
<input type="date" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
End Time
</label>
<div class="col-sm-10">
<input type="date" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
Collectors
</label>
<div class="col-sm-10">
<select multiple=true class="form-control">
<option>Frank</option>
<option>Loren</option>
<option>Danielle</option>
<option>Matt</option>
<option>Lauren</option>
<option>Amy</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
Site
</label>
<div class="col-sm-10">
<select class="form-control">
<option>--- Select a Site ---</option>
<option>SQ12</option>
<option>SQ1</option>
<option>SQ3</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
Method
</label>
<div class="col-sm-10">
<select class="form-control">
<option>--- Select a Method ---</option>
<option>MT</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
Type
</label>
<div class="col-sm-10">
<select class="form-control">
<option>--- Select a Type ---</option>
<option>Embryos</option>
<option>Adults</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
# Of Traps
</label>
<div class="col-sm-10">
<input type="text" class="form-control">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
Experiments
</label>
<div class="col-sm-10">
<select multiple=true class="form-control">
<option>Perchlorate diel</option>
<option>Perchlorate rescue</option>
<option>Ship creek monitoring</option>
<option>St Lawrence island monitoring</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">
Attachments
</label>
<div class="col-sm-10">
<input type="file">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" class="btn btn-default">Save</button>
</div>
</div>
</form>

View file

@ -1,3 +1,5 @@
{{#link-to "collections.new" class="btn btn-default"}}New Collection{{/link-to}}
<hr>
{{filter-collections}} {{filter-collections}}
{{ccdb-pagination}} {{ccdb-pagination}}
{{ccdb-table model=model columns=columns}} {{ccdb-table model=model columns=columns}}

View file

@ -0,0 +1,11 @@
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:collections/new', 'Unit | Route | collections/new', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
let route = this.subject();
assert.ok(route);
});