Merge branch 'master' into clostridium
* master: Drop isEditing Fix table widths
This commit is contained in:
		
						commit
						f4939a962e
					
				
					 6 changed files with 30 additions and 36 deletions
				
			
		| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
<div class="grid-1">
 | 
					<div class="grid-1">
 | 
				
			||||||
  <div class="span-1">
 | 
					  <div class="span-1">
 | 
				
			||||||
    <fieldset class="flakes-information-box {{if isEditing 'is-editing'}}">
 | 
					    <fieldset class="flakes-information-box">
 | 
				
			||||||
      <legend>
 | 
					      <legend>
 | 
				
			||||||
        {{model.characteristicName}}
 | 
					        {{model.characteristicName}}
 | 
				
			||||||
      </legend>
 | 
					      </legend>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,27 +1,25 @@
 | 
				
			||||||
<div class="overflow-div">
 | 
					<table class="flakes-table">
 | 
				
			||||||
  <table class="flakes-table">
 | 
					  <thead>
 | 
				
			||||||
    <thead>
 | 
					    <tr>
 | 
				
			||||||
 | 
					      <th>Characteristic</th>
 | 
				
			||||||
 | 
					      {{#each strains as |strain|}}
 | 
				
			||||||
 | 
					        <th>
 | 
				
			||||||
 | 
					          {{#link-to 'protected.strains.show' strain.id classBinding="data.typeStrain:type-strain"}}
 | 
				
			||||||
 | 
					            {{strain.fullNameMU}}
 | 
				
			||||||
 | 
					          {{/link-to}}
 | 
				
			||||||
 | 
					        </th>
 | 
				
			||||||
 | 
					      {{/each}}
 | 
				
			||||||
 | 
					    </tr>
 | 
				
			||||||
 | 
					  </thead>
 | 
				
			||||||
 | 
					  <tbody>
 | 
				
			||||||
 | 
					    {{#each model as |row|}}
 | 
				
			||||||
      <tr>
 | 
					      <tr>
 | 
				
			||||||
        <th>Characteristic</th>
 | 
					        {{#each row key="@index" as |col|}}
 | 
				
			||||||
        {{#each strains as |strain|}}
 | 
					          <td>{{col}}</td>
 | 
				
			||||||
          <th>
 | 
					 | 
				
			||||||
            {{#link-to 'protected.strains.show' strain.id classBinding="data.typeStrain:type-strain"}}
 | 
					 | 
				
			||||||
              {{strain.fullNameMU}}
 | 
					 | 
				
			||||||
            {{/link-to}}
 | 
					 | 
				
			||||||
          </th>
 | 
					 | 
				
			||||||
        {{/each}}
 | 
					        {{/each}}
 | 
				
			||||||
      </tr>
 | 
					      </tr>
 | 
				
			||||||
    </thead>
 | 
					    {{/each}}
 | 
				
			||||||
    <tbody>
 | 
					  </tbody>
 | 
				
			||||||
      {{#each model as |row|}}
 | 
					</table>
 | 
				
			||||||
        <tr>
 | 
					<hr>
 | 
				
			||||||
          {{#each row key="@index" as |col|}}
 | 
					<a href="{{csvLink}}" download>Download as CSV</a>
 | 
				
			||||||
            <td>{{col}}</td>
 | 
					 | 
				
			||||||
          {{/each}}
 | 
					 | 
				
			||||||
        </tr>
 | 
					 | 
				
			||||||
      {{/each}}
 | 
					 | 
				
			||||||
    </tbody>
 | 
					 | 
				
			||||||
  </table>
 | 
					 | 
				
			||||||
  <hr>
 | 
					 | 
				
			||||||
  <a href="{{csvLink}}" download>Download as CSV</a>
 | 
					 | 
				
			||||||
</div>
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,6 +1,6 @@
 | 
				
			||||||
<div class="grid-1">
 | 
					<div class="grid-1">
 | 
				
			||||||
  <div class="span-1">
 | 
					  <div class="span-1">
 | 
				
			||||||
    <fieldset class="flakes-information-box {{if isEditing 'is-editing'}}">
 | 
					    <fieldset class="flakes-information-box">
 | 
				
			||||||
      <legend>
 | 
					      <legend>
 | 
				
			||||||
        Species <em>{{model.speciesName}}</em>
 | 
					        Species <em>{{model.speciesName}}</em>
 | 
				
			||||||
      </legend>
 | 
					      </legend>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
<div class="span-1">
 | 
					<div class="span-1">
 | 
				
			||||||
  <fieldset class="flakes-information-box {{if isEditing 'is-editing'}}">
 | 
					  <fieldset class="flakes-information-box">
 | 
				
			||||||
    <legend>
 | 
					    <legend>
 | 
				
			||||||
      Strain {{model.strainNameMU}}
 | 
					      Strain {{model.strainNameMU}}
 | 
				
			||||||
    </legend>
 | 
					    </legend>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,5 @@
 | 
				
			||||||
<div class="span-1">
 | 
					<div class="span-1">
 | 
				
			||||||
  <fieldset class="flakes-information-box {{if isEditing 'is-editing'}}">
 | 
					  <fieldset class="flakes-information-box">
 | 
				
			||||||
    <legend>
 | 
					    <legend>
 | 
				
			||||||
      {{model.name}}
 | 
					      {{model.name}}
 | 
				
			||||||
    </legend>
 | 
					    </legend>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,10 +7,6 @@
 | 
				
			||||||
  overflow: auto;
 | 
					  overflow: auto;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.measurements-container {
 | 
					 | 
				
			||||||
  padding: 2em 0em 0em 0em;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.select2-container {
 | 
					.select2-container {
 | 
				
			||||||
  width: 100%;
 | 
					  width: 100%;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -19,14 +15,14 @@
 | 
				
			||||||
  cursor: pointer;
 | 
					  cursor: pointer;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.is-editing {
 | 
					 | 
				
			||||||
  background-color: #FFFCE2;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
.type-strain {
 | 
					.type-strain {
 | 
				
			||||||
  color: #5CA934;
 | 
					  color: #5CA934;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					table.flakes-table td {
 | 
				
			||||||
 | 
					  white-space: normal;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* BEGIN https://github.com/tobiasahlin/SpinKit */
 | 
					/* BEGIN https://github.com/tobiasahlin/SpinKit */
 | 
				
			||||||
.spinner {
 | 
					.spinner {
 | 
				
			||||||
  width: 40px;
 | 
					  width: 40px;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue