strain whole genome sequence
This commit is contained in:
		
							parent
							
								
									0a73b347f9
								
							
						
					
					
						commit
						43800d6dd8
					
				
					 3 changed files with 34 additions and 18 deletions
				
			
		| 
						 | 
				
			
			@ -2,22 +2,23 @@ import DS from 'ember-data';
 | 
			
		|||
import Ember from 'ember';
 | 
			
		||||
 | 
			
		||||
export default DS.Model.extend({
 | 
			
		||||
  measurements     : DS.hasMany('measurements', { async: true }),
 | 
			
		||||
  species          : DS.belongsTo('species', { async: true }),
 | 
			
		||||
  strainName       : DS.attr('string'),
 | 
			
		||||
  typeStrain       : DS.attr('boolean'),
 | 
			
		||||
  accessionNumbers : DS.attr('string'),
 | 
			
		||||
  genbank          : DS.attr('string'),
 | 
			
		||||
  isolatedFrom     : DS.attr('string'),
 | 
			
		||||
  notes            : DS.attr('string'),
 | 
			
		||||
  createdAt        : DS.attr('date'),
 | 
			
		||||
  updatedAt        : DS.attr('date'),
 | 
			
		||||
  deletedAt        : DS.attr('date'),
 | 
			
		||||
  createdBy        : DS.attr('number'),
 | 
			
		||||
  updatedBy        : DS.attr('number'),
 | 
			
		||||
  deletedBy        : DS.attr('number'),
 | 
			
		||||
  totalMeasurements: DS.attr('number'),
 | 
			
		||||
  sortOrder        : DS.attr('number'),
 | 
			
		||||
  measurements       : DS.hasMany('measurements', { async: true }),
 | 
			
		||||
  species            : DS.belongsTo('species', { async: true }),
 | 
			
		||||
  strainName         : DS.attr('string'),
 | 
			
		||||
  typeStrain         : DS.attr('boolean'),
 | 
			
		||||
  accessionNumbers   : DS.attr('string'),
 | 
			
		||||
  genbank            : DS.attr('string'),
 | 
			
		||||
  wholeGenomeSequence: DS.attr('string'),
 | 
			
		||||
  isolatedFrom       : DS.attr('string'),
 | 
			
		||||
  notes              : DS.attr('string'),
 | 
			
		||||
  createdAt          : DS.attr('date'),
 | 
			
		||||
  updatedAt          : DS.attr('date'),
 | 
			
		||||
  deletedAt          : DS.attr('date'),
 | 
			
		||||
  createdBy          : DS.attr('number'),
 | 
			
		||||
  updatedBy          : DS.attr('number'),
 | 
			
		||||
  deletedBy          : DS.attr('number'),
 | 
			
		||||
  totalMeasurements  : DS.attr('number'),
 | 
			
		||||
  sortOrder          : DS.attr('number'),
 | 
			
		||||
 | 
			
		||||
  strainNameMU: function() {
 | 
			
		||||
    let type = this.get('typeStrain') ? '<sup>T</sup>' : '';
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -5,7 +5,7 @@
 | 
			
		|||
        {{#if isEditing}}
 | 
			
		||||
          {{input value=strain.strainName}}
 | 
			
		||||
        {{else}}
 | 
			
		||||
          <em>{{strain.strainName}}</em>
 | 
			
		||||
          {{strain.strainNameMU}}
 | 
			
		||||
        {{/if}}
 | 
			
		||||
        {{display-errors a=strain.errors.strainName}}
 | 
			
		||||
    </legend>
 | 
			
		||||
| 
						 | 
				
			
			@ -43,7 +43,7 @@
 | 
			
		|||
    </div>
 | 
			
		||||
 | 
			
		||||
    {{! ROW 2 }}
 | 
			
		||||
    <div class="grid-4">
 | 
			
		||||
    <div class="grid-6">
 | 
			
		||||
      <dl class="span-2">
 | 
			
		||||
        <dt>Accession Numbers</dt>
 | 
			
		||||
        <dd>
 | 
			
		||||
| 
						 | 
				
			
			@ -66,6 +66,17 @@
 | 
			
		|||
          {{display-errors a=strain.errors.genbank}}
 | 
			
		||||
        </dd>
 | 
			
		||||
      </dl>
 | 
			
		||||
      <dl class="span-2">
 | 
			
		||||
        <dt>Whole Genome Sequence</dt>
 | 
			
		||||
        <dd>
 | 
			
		||||
          {{#if isEditing}}
 | 
			
		||||
            {{input value=strain.wholeGenomeSequence}}
 | 
			
		||||
          {{else}}
 | 
			
		||||
            {{strain.wholeGenomeSequence}}
 | 
			
		||||
          {{/if}}
 | 
			
		||||
          {{display-errors a=strain.errors.wholeGenomeSequence}}
 | 
			
		||||
        </dd>
 | 
			
		||||
      </dl>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    {{! ROW 3 }}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue