collection-crud/templates/cpu/show.html.twig

140 lines
2.8 KiB
Twig

{% extends 'form.html.twig' %}
{% block title %}Cpu{% endblock %}
{% block form %}
<h2>CPU</h2>
<div class="callout">
<ul>
<li>
<a href="{{ path('cpu_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('cpu_edit', {'id': cpu.id}) }}">Edit</a>
</li>
</ul>
<hr/>
<form method="post" action="{{ path('cpu_delete', {'id': cpu.id}) }}"
onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ cpu.id) }}">
<button type="submit" class="alert button expanded">Delete</button>
</form>
</div>
<div class="large primary callout">
<table class="table">
<tbody>
<tr>
<th>Id</th>
<td>{{ cpu.id }}</td>
</tr>
<tr>
<th>Architecture</th>
<td>{{ cpu.architecture.value }}</td>
</tr>
<tr>
<th>Model</th>
<td>{{ cpu.brand.name }} {{ cpu.productLine }} {{ cpu.model }}</td>
</tr>
<tr>
<th>PartNumber</th>
<td>{{ cpu.partNumber }}</td>
</tr>
<tr>
<th>LotNumber</th>
<td>{{ cpu.lotNumber }}</td>
</tr>
<tr>
<th>MicroArchitecture</th>
<td>{{ cpu.microArchitecture }}</td>
</tr>
<tr>
<th>CodeName</th>
<td>{{ cpu.codeName }}</td>
</tr>
<tr>
<th>BaseSpeed</th>
<td>{{ cpu.baseSpeed }}</td>
</tr>
<tr>
<th>BoostSpeed</th>
<td>{{ cpu.boostSpeed }}</td>
</tr>
<tr>
<th>Cores / Threads</th>
<td>{{ cpu.cores }} / {{ cpu.threads }}</td>
</tr>
<tr>
<th>Igp</th>
<td>{{ cpu.igp }}</td>
</tr>
<tr>
<th>Voltage</th>
<td>{{ cpu.voltage }}</td>
</tr>
<tr>
<th>Tdp</th>
<td>{{ cpu.tdp }}</td>
</tr>
<tr>
<th>ProcessNode</th>
<td>{{ cpu.processNode }}</td>
</tr>
<tr>
<th>Count</th>
<td>{{ cpu.count }}</td>
</tr>
<tr>
<th>Usable</th>
<td>{{ cpu.usable ? 'Yes' : 'No' }}</td>
</tr>
<tr>
<th>Received</th>
<td>{{ cpu.received ? 'Yes' : 'No' }}</td>
</tr>
<tr>
<th>Link</th>
<td>{{ cpu.link }}</td>
</tr>
<tr>
<th>Notes</th>
<td>{{ cpu.notes }}</td>
</tr>
<tr>
<th>L1</th>
{% if cpu.L1uCount > 0 %}
<td>
{{ cpu.L1uCount }}x {{ cpu.L1uSize }}KB {{ cpu.L1uWay }}-way
</td>
{% endif %}
{% if cpu.L1cCount > 0 %}
<td>
{{ cpu.L1cCount }}x {{ cpu.L1dSize }}KB {{ cpu.L1dWay }}-way data,
{{ cpu.L1dCount }}x {{ cpu.L1cSize }}KB {{ cpu.L1cWay }}-way instruction
</td>
{% endif %}
</tr>
<tr>
<th>L2</th>
<td>
{% if cpu.L2Count > 0 %}
{{ cpu.L2Count }}x {{ cpu.L2Size }}KB {{ cpu.L2Way }}-way
{% endif %}
</td>
</tr>
{% if cpu.L3Count > 0 %}
<tr>
<th>L3</th>
<td>{{ cpu.L3Count }}x {{ cpu.L3Size }}KB {{ cpu.L3Way }}-way</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
{% endblock %}