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

144 lines
2.9 KiB
Twig
Raw Normal View History

2022-10-27 11:55:16 -04:00
{% extends 'form.html.twig' %}
{% block title %}Cpu{% endblock %}
{% block form %}
2022-10-28 08:46:35 -04:00
<h2>CPU</h2>
2022-10-27 11:55:16 -04:00
2022-10-28 08:46:35 -04:00
<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>
2022-10-27 11:55:16 -04:00
2022-10-28 08:46:35 -04:00
<hr/>
2022-10-27 11:55:16 -04:00
2022-10-28 08:46:35 -04:00
<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>
2022-10-27 11:55:16 -04:00
2022-10-28 08:46:35 -04:00
<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>
2024-05-28 18:44:29 -04:00
</tr>
<tr>
<th>VendorStr</th>
<td>{% if cpu.vendorString %}{{ cpu.vendorString.value }}{% endif %}</td>
2022-10-28 08:46:35 -04:00
</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>
2022-10-27 11:55:16 -04:00
{% endblock %}