collection-crud/templates/gpu/edit.html.twig

106 lines
2.7 KiB
Twig

{% extends 'form.html.twig' %}
{% block title %}Edit Gpu{% endblock %}
{% block form %}
<h2>Edit Graphics Card</h2>
<div class="small callout">
<ul>
<li>
<a href="{{ path('gpu_index') }}">Back to the list</a>
</li>
</ul>
</div>
<div>
{{ form_start(edit_form) }}
<fieldset class="large primary callout">
<legend>Names / Brands</legend>
{{ form_row(edit_form.gpuBrand) }}
{{ form_row(edit_form.modelName) }}
{{ form_row(edit_form.gpuCore) }}
<hr />
{{ form_row(edit_form.boardBrand) }}
{{ form_row(edit_form.alternateModelName) }}
</fieldset>
<fieldset class="large primary callout">
<legend>Bus / Size</legend>
{{ form_row(edit_form.cardKey) }}
{{ form_row(edit_form.busInterface) }}
{{ form_row(edit_form.slotSpan) }}
</fieldset>
<fieldset class="large primary callout">
<legend>Power</legend>
{{ form_row(edit_form.molexPower) }}
{{ form_row(edit_form.pcie6power) }}
{{ form_row(edit_form.pcie8power) }}
{{ form_row(edit_form.tdp) }}
</fieldset>
<fieldset class="large primary callout">
<legend>Clock Speeds</legend>
{{ form_row(edit_form.baseClock) }}
{{ form_row(edit_form.boostClock) }}
{{ form_row(edit_form.memoryClock) }}
</fieldset>
<fieldset class="large primary callout">
<legend>Memory</legend>
{{ form_row(edit_form.memorySize) }}
{{ form_row(edit_form.memoryBus) }}
{{ form_row(edit_form.memoryType) }}
</fieldset>
<fieldset class="large primary callout">
<legend>Rendering Hardware</legend>
{{ form_row(edit_form.shadingUnits) }}
{{ form_row(edit_form.tmus) }}
{{ form_row(edit_form.rops) }}
{{ form_row(edit_form.computeUnits) }}
{{ form_row(edit_form.l1cache) }}
{{ form_row(edit_form.l2cache) }}
</fieldset>
<fieldset class="large primary callout">
<legend>API Support</legend>
{{ form_row(edit_form.directXSupport) }}
{{ form_row(edit_form.openGLSupport) }}
{{ form_row(edit_form.openCLSupport) }}
{{ form_row(edit_form.vulkanSupport) }}
{{ form_row(edit_form.shaderModel) }}
</fieldset>
<fieldset class="large primary callout">
<legend>Misc.</legend>
{{ form_row(edit_form.link) }}
{{ form_row(edit_form.count) }}
{{ form_row(edit_form.acquired) }}
{{ form_row(edit_form.notes) }}
</fieldset>
{{ form_widget(edit_form) }}
<button
type="submit"
class="success button expanded"
>Update</button>
{{ form_end(edit_form) }}
<form method="post" action="{{ path('gpu_delete', {'id': gpu.id}) }}" onsubmit="return confirm('Are you sure you want to delete this item?');">
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ gpu.id) }}">
<button type="submit" class="alert button expanded">Delete</button>
</form>
</div>
{% endblock %}