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>
 | 
					  <div class="flakes-message error">{{error.message}}</div>
 | 
				
			||||||
{{/each}}
 | 
					{{/each}}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,13 +1,13 @@
 | 
				
			||||||
<thead>
 | 
					<thead>
 | 
				
			||||||
  <tr>
 | 
					  <tr>
 | 
				
			||||||
    {{#each a in tableAttrs}}
 | 
					    {{#each tableAttrs as |a|}}
 | 
				
			||||||
      {{sortable-table-header title=a.name sortProperty=a.attr action="sortBy"}}
 | 
					      {{sortable-table-header title=a.name sortProperty=a.attr action="sortBy"}}
 | 
				
			||||||
    {{/each}}
 | 
					    {{/each}}
 | 
				
			||||||
  </tr>
 | 
					  </tr>
 | 
				
			||||||
</thead>
 | 
					</thead>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<tbody>
 | 
					<tbody>
 | 
				
			||||||
  {{#each item in arrangedContent}}
 | 
					  {{#each arrangedContent as |item|}}
 | 
				
			||||||
    {{component row data=item}}
 | 
					    {{component row data=item}}
 | 
				
			||||||
  {{/each}}
 | 
					  {{/each}}
 | 
				
			||||||
</tbody>
 | 
					</tbody>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -11,17 +11,16 @@
 | 
				
			||||||
    </legend>
 | 
					    </legend>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    {{! ROW 1 }}
 | 
					    {{! ROW 1 }}
 | 
				
			||||||
    <div class="grid-4">
 | 
					    <div class="grid-4 gutter-50">
 | 
				
			||||||
      <dl class="span-2">
 | 
					      <dl class="span-2">
 | 
				
			||||||
        <dt>Species</dt>
 | 
					        <dt>Species</dt>
 | 
				
			||||||
        <dd>
 | 
					        <dd>
 | 
				
			||||||
          {{#if isEditing}}
 | 
					          {{#if isEditing}}
 | 
				
			||||||
            {{
 | 
					            {{
 | 
				
			||||||
              view "select"
 | 
					              select-2
 | 
				
			||||||
              content=species
 | 
					              content=species
 | 
				
			||||||
              optionValuePath="content.id"
 | 
					              optionLabelPath="speciesName"
 | 
				
			||||||
              optionLabelPath="content.speciesName"
 | 
					              value=strain.species
 | 
				
			||||||
              selection=strain.species
 | 
					 | 
				
			||||||
            }}
 | 
					            }}
 | 
				
			||||||
          {{else}}
 | 
					          {{else}}
 | 
				
			||||||
            {{#link-to 'species.show' strain.species}}
 | 
					            {{#link-to 'species.show' strain.species}}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
<h2>{{genus-name}} Species</h2>
 | 
					<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"}}
 | 
					{{add-button label="Add Species" link="species.new"}}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,3 +1,3 @@
 | 
				
			||||||
{{#each user in model}}
 | 
					{{#each model as |user|}}
 | 
				
			||||||
  {{user.email}}<br>
 | 
					  {{user.email}}<br>
 | 
				
			||||||
{{/each}}
 | 
					{{/each}}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue