Added characteristic

This commit is contained in:
Matthew Dillon 2015-02-03 12:32:46 -09:00
parent d2951e600f
commit e106f15041
3 changed files with 16 additions and 8 deletions

View file

@ -0,0 +1,11 @@
import DS from 'ember-data';
import Ember from 'ember';
export default DS.Model.extend({
characteristicName: DS.attr(),
characteristicTypeId: DS.attr(),
measurements: DS.hasMany('measurement', {async: true}),
createdAt: DS.attr('date'),
updatedAt: DS.attr('date'),
deletedAt: DS.attr('date')
});

View file

@ -10,6 +10,7 @@ export default DS.Model.extend({
notes: DS.attr(),
testMethodId: DS.attr(),
strain: DS.belongsTo('strain', {async: true}),
characteristic: DS.belongsTo('characteristic', {async: true}),
createdAt: DS.attr('date'),
updatedAt: DS.attr('date')
});

View file

@ -55,17 +55,13 @@
<div class="grid-1">
<div class="span-1">
<fieldset class="flakes-information-box">
<legend>{{id}}</legend>
<div class="grid-9">
<dl class="span-3">
<dt>Characteristic</dt>
<dd>{{characteristicId}}</dd>
</dl>
<dl class="span-3">
<legend>{{characteristic.characteristicName}}</legend>
<div class="grid-8">
<dl class="span-4">
<dt>Text Measurement Type</dt>
<dd>{{textMeasurementTypeId}}</dd>
</dl>
<dl class="span-3">
<dl class="span-4">
<dt>Text Value</dt>
<dd>{{txtValue}}</dd>
</dl>