2020-05-22 12:52:17 +02:00
|
|
|
<div class="header-addnew">
|
|
|
|
<h2>Samples</h2>
|
2020-06-19 08:43:22 +02:00
|
|
|
<a routerLink="/samples/new">
|
|
|
|
<button class="rb-btn rb-primary"><span class="rb-ic rb-ic-add"></span> New sample</button>
|
|
|
|
</a>
|
2020-05-22 12:52:17 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<rb-accordion>
|
|
|
|
<rb-accordion-title><span class="rb-ic rb-ic-filter"></span> Filter</rb-accordion-title>
|
|
|
|
<rb-accordion-body>
|
2020-06-19 08:43:22 +02:00
|
|
|
<form>
|
|
|
|
<rb-form-select name="statusSelect" label="Status" [(ngModel)]="filters.status">
|
|
|
|
<option value="validated">validated</option>
|
|
|
|
<option value="new">new</option>
|
|
|
|
<option value="all">all</option>
|
|
|
|
</rb-form-select>
|
|
|
|
|
|
|
|
<button class="rb-btn rb-secondary" (click)="loadSamples()">Apply filters</button>
|
|
|
|
</form>
|
2020-05-22 12:52:17 +02:00
|
|
|
</rb-accordion-body>
|
|
|
|
</rb-accordion>
|
|
|
|
|
|
|
|
<rb-table>
|
|
|
|
<tr>
|
|
|
|
<th>Number</th>
|
|
|
|
<th>Material number</th>
|
|
|
|
<th>Material name</th>
|
|
|
|
<th>Supplier</th>
|
|
|
|
<th>Material</th>
|
|
|
|
<th>GF</th>
|
|
|
|
<th>CF</th>
|
|
|
|
<th>M</th>
|
|
|
|
<th>type</th>
|
|
|
|
<th>Color</th>
|
|
|
|
<th>Batch</th>
|
2020-06-19 08:43:22 +02:00
|
|
|
<th></th>
|
2020-05-22 12:52:17 +02:00
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr *ngFor="let sample of samples">
|
|
|
|
<td>{{sample.number}}</td>
|
|
|
|
<td>{{sample.material_number}}</td>
|
|
|
|
<td>{{materials[sample.material_id].name}}</td>
|
|
|
|
<td>{{materials[sample.material_id].supplier}}</td>
|
|
|
|
<td>{{materials[sample.material_id].group}}</td>
|
|
|
|
<td>{{materials[sample.material_id].glass_fiber}}</td>
|
|
|
|
<td>{{materials[sample.material_id].carbon_fiber}}</td>
|
|
|
|
<td>{{materials[sample.material_id].mineral}}</td>
|
|
|
|
<td>{{sample.type}}</td>
|
|
|
|
<td>{{sample.color}}</td>
|
|
|
|
<td>{{sample.batch}}</td>
|
2020-06-19 08:43:22 +02:00
|
|
|
<td><a [routerLink]="'/samples/edit/' + sample._id"><span class="rb-ic rb-ic-edit"></span></a></td>
|
2020-05-22 12:52:17 +02:00
|
|
|
</tr>
|
|
|
|
</rb-table>
|