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

132 lines
3.9 KiB
Twig
Raw Normal View History

2022-10-07 16:04:56 -04:00
{% extends 'form.html.twig' %}
{% block title %}Edit Gpu{% endblock %}
{% block form %}
2022-10-07 22:00:14 -04:00
<h2>Edit Graphics Card</h2>
2022-10-07 16:04:56 -04:00
<div class="small callout">
<ul>
<li>
<a href="{{ path('gpu_index') }}">Back to the list</a>
</li>
</ul>
</div>
2022-10-07 22:00:14 -04:00
<div>
2022-10-28 08:46:35 -04:00
{{ form_start(form) }}
2022-10-07 22:00:14 -04:00
<fieldset class="large primary callout">
<legend>Names / Brands</legend>
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.gpuBrand) }}</div>
<div class="cell medium-8">{{ form_row(form.modelName) }}</div>
<div class="cell">{{ form_row(form.gpuCore) }}</div>
</div>
2022-10-07 22:00:14 -04:00
<hr />
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.boardBrand) }}</div>
<div class="cell medium-8">{{ form_row(form.alternateModelName) }}</div>
</div>
2022-10-07 22:00:14 -04:00
</fieldset>
<fieldset class="large primary callout">
<legend>Card Interface</legend>
2022-10-07 22:00:14 -04:00
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.cardKey) }}</div>
<div class="cell medium-4">{{ form_row(form.busInterface) }}</div>
<div class="cell medium-4">{{ form_row(form.slotSpan) }}</div>
</div>
2022-10-07 22:00:14 -04:00
</fieldset>
<fieldset class="large primary callout">
<legend>Power</legend>
2022-10-28 08:46:35 -04:00
{{ form_row(form.molexPower) }}
{{ form_row(form.pcie6power) }}
{{ form_row(form.pcie8power) }}
{{ form_row(form.tdp) }}
2022-10-07 22:00:14 -04:00
</fieldset>
<fieldset class="large primary callout">
<legend>Clock Speeds</legend>
<div class="grid-x grid-margin-x">
<div class="cell medium-6">{{ form_row(form.baseClock) }}</div>
<div class="cell medium-6">{{ form_row(form.boostClock) }}</div>
<div class="cell">{{ form_row(form.memoryClock) }}</div>
</div>
2022-10-07 22:00:14 -04:00
</fieldset>
<fieldset class="large primary callout">
<legend>Memory</legend>
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.memorySize) }}</div>
<div class="cell medium-4">{{ form_row(form.memoryBus) }}</div>
<div class="cell medium-4">{{ form_row(form.memoryType) }}</div>
</div>
2022-10-07 22:00:14 -04:00
</fieldset>
<fieldset class="large primary callout">
<legend>Rendering Hardware</legend>
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.shadingUnits) }}</div>
<div class="cell medium-4">{{ form_row(form.tmus) }}</div>
<div class="cell medium-4">{{ form_row(form.rops) }}</div>
<div class="cell">{{ form_row(form.computeUnits) }}</div>
<div class="cell medium-6">{{ form_row(form.l1cache) }}</div>
<div class="cell medium-6">{{ form_row(form.l2cache) }}</div>
</div>
2022-10-07 22:00:14 -04:00
</fieldset>
<fieldset class="large primary callout">
<legend>API Support</legend>
2022-10-28 08:46:35 -04:00
{{ form_row(form.directXSupport) }}
{{ form_row(form.openGLSupport) }}
{{ form_row(form.openCLSupport) }}
{{ form_row(form.vulkanSupport) }}
{{ form_row(form.shaderModel) }}
2022-10-07 22:00:14 -04:00
</fieldset>
<fieldset class="large primary callout">
<legend>Misc.</legend>
2022-10-28 08:46:35 -04:00
{{ form_row(form.link) }}
{{ form_row(form.count) }}
{{ form_row(form.acquired) }}
{{ form_row(form.notes) }}
2022-10-07 22:00:14 -04:00
</fieldset>
2022-10-28 08:46:35 -04:00
{{ form_widget(form) }}
2022-10-07 16:04:56 -04:00
<button
type="submit"
class="success button expanded"
>Update</button>
2022-10-28 08:46:35 -04:00
{{ form_end(form) }}
2022-10-07 16:04:56 -04:00
<div class="grid-x grid-margin-x">
<div class="cell large-6 small-12">
{{ form_start(deacquire_form) }}
{{ form_widget(deacquire_form) }}
<button type="submit" class="button expanded">De-acquire</button>
{{ form_end(deacquire_form) }}
</div>
<div class="cell large-6 small-12">
<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>
</div>
2022-10-07 16:04:56 -04:00
</div>
{% endblock %}