Misc cleanup
This commit is contained in:
		
							parent
							
								
									0710fdf680
								
							
						
					
					
						commit
						19359c341d
					
				
					 5 changed files with 9 additions and 10 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
{{#each error in a}}
 | 
			
		||||
{{#each a as |error|}}
 | 
			
		||||
  <div class="flakes-message error">{{error.message}}</div>
 | 
			
		||||
{{/each}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,13 +1,13 @@
 | 
			
		|||
<thead>
 | 
			
		||||
  <tr>
 | 
			
		||||
    {{#each a in tableAttrs}}
 | 
			
		||||
    {{#each tableAttrs as |a|}}
 | 
			
		||||
      {{sortable-table-header title=a.name sortProperty=a.attr action="sortBy"}}
 | 
			
		||||
    {{/each}}
 | 
			
		||||
  </tr>
 | 
			
		||||
</thead>
 | 
			
		||||
 | 
			
		||||
<tbody>
 | 
			
		||||
  {{#each item in arrangedContent}}
 | 
			
		||||
  {{#each arrangedContent as |item|}}
 | 
			
		||||
    {{component row data=item}}
 | 
			
		||||
  {{/each}}
 | 
			
		||||
</tbody>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,17 +11,16 @@
 | 
			
		|||
    </legend>
 | 
			
		||||
 | 
			
		||||
    {{! ROW 1 }}
 | 
			
		||||
    <div class="grid-4">
 | 
			
		||||
    <div class="grid-4 gutter-50">
 | 
			
		||||
      <dl class="span-2">
 | 
			
		||||
        <dt>Species</dt>
 | 
			
		||||
        <dd>
 | 
			
		||||
          {{#if isEditing}}
 | 
			
		||||
            {{
 | 
			
		||||
              view "select"
 | 
			
		||||
              select-2
 | 
			
		||||
              content=species
 | 
			
		||||
              optionValuePath="content.id"
 | 
			
		||||
              optionLabelPath="content.speciesName"
 | 
			
		||||
              selection=strain.species
 | 
			
		||||
              optionLabelPath="speciesName"
 | 
			
		||||
              value=strain.species
 | 
			
		||||
            }}
 | 
			
		||||
          {{else}}
 | 
			
		||||
            {{#link-to 'species.show' strain.species}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
<h2>{{genus-name}} Species</h2>
 | 
			
		||||
<h3>Total species: {{controller.length}}</h3>
 | 
			
		||||
<h3>Total species: {{model.length}}</h3>
 | 
			
		||||
 | 
			
		||||
{{add-button label="Add Species" link="species.new"}}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
{{#each user in model}}
 | 
			
		||||
{{#each model as |user|}}
 | 
			
		||||
  {{user.email}}<br>
 | 
			
		||||
{{/each}}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue