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

71 lines
1.7 KiB
Twig

{% extends 'form.html.twig' %}
{% block title %}GPU Core{% endblock %}
{% block form %}
<h2>GPU Core</h2>
<div class="callout">
<ul>
<li>
<a href="{{ path('gpu-core_index') }}">Back to the list</a>
</li>
<li>
<a href="{{ path('gpu-core_edit', { 'id': gpu_core.id }) }}">Edit</a>
</li>
</ul>
<hr />
<form method="post" action="{{ path('gpu-core_delete', {'id': gpu_core.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ gpu_core.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>{{ gpu_core.id }}</td>
</tr>
<tr>
<th>Name</th>
<td>{{ gpu_core.name }}</td>
</tr>
<tr>
<th>Variant</th>
<td>{{ gpu_core.variant }}</td>
</tr>
<tr>
<th>GenerationName</th>
{% if gpu_core.generationLink %}
<td><a href="{{ gpu_core.generationLink }}">{{ gpu_core.generationName }}</a></td>
{% else %}
<td>{{ gpu_core.generationName }}</td>
{% endif %}
</tr>
<tr>
<th>Architecture</th>
{% if gpu_core.architectureLink %}
<td><a href="{{ gpu_core.architectureLink }}">{{ gpu_core.architecture }}</a></td>
{% else %}
<td>{{ gpu_core.architecture }}</td>
{% endif %}
</tr>
<tr>
<th>ProcessNode</th>
{% if gpu_core.processNode %}
<td>{{ gpu_core.processNode }} nm</td>
{% else %}
<td>?</td>
{% endif %}
</tr>
</tbody>
</table>
</div>
{% endblock %}