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

116 lines
3.8 KiB
Twig
Raw Normal View History

2022-10-27 11:55:16 -04:00
{% extends 'form.html.twig' %}
{% block title %}Cpu - New{% endblock %}
{% block form %}
<h2>Add Cpu</h2>
<div class="small callout">
<ul>
<li>
2022-10-28 08:46:35 -04:00
<a href="{{ path('cpu_index') }}">Back to the list</a>
2022-10-27 11:55:16 -04:00
</li>
</ul>
</div>
{{ form_start(form) }}
<fieldset class="large primary callout">
<legend>General</legend>
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.architecture) }}</div>
<div class="cell medium-8">{{ form_row(form.sockets) }}</div>
</div>
</fieldset>
2022-10-28 08:46:35 -04:00
<fieldset class="large primary callout">
<legend>Brand, Model, Family</legend>
<div class="grid-x grid-margin-x">
<div class="cell medium-6">{{ form_row(form.brand) }}</div>
<div class="cell medium-6">{{ form_row(form.vendorString) }}</div>
<div class="cell medium-6">{{ form_row(form.productLine) }}</div>
<div class="cell medium-6">{{ form_row(form.model) }}</div>
2022-10-28 08:46:35 -04:00
<div class="cell medium-6">{{ form_row(form.partNumber) }}</div>
<div class="cell medium-6">{{ form_row(form.lotNumber) }}</div>
<div class="cell medium-6">{{ form_row(form.microArchitecture) }}</div>
<div class="cell medium-6">{{ form_row(form.codeName) }}</div>
</div>
</fieldset>
<fieldset class="large primary callout">
<legend>Cache</legend>
<details {% if cpu.L1uSize %}open{% endif %}>
<summary>Unified Cache</summary>
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.L1uCount) }}</div>
<div class="cell medium-4">{{ form_row(form.L1uSize) }}</div>
<div class="cell medium-4">{{ form_row(form.L1uWay) }}</div>
</div>
</details>
<details {% if cpu.L1cSize %}open{% endif %}>
<summary>Split cache</summary>
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.L1cCount) }}</div>
<div class="cell medium-4">{{ form_row(form.L1cSize) }}</div>
<div class="cell medium-4">{{ form_row(form.L1cWay) }}</div>
<div class="cell medium-4">{{ form_row(form.L1dCount) }}</div>
<div class="cell medium-4">{{ form_row(form.L1dSize) }}</div>
<div class="cell medium-4">{{ form_row(form.L1dWay) }}</div>
</div>
</details>
<hr />
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.L2Count) }}</div>
<div class="cell medium-4">{{ form_row(form.L2Size) }}</div>
<div class="cell medium-4">{{ form_row(form.L2Way) }}</div>
</div>
<hr />
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.L3Count) }}</div>
<div class="cell medium-4">{{ form_row(form.L3Size) }}</div>
<div class="cell medium-4">{{ form_row(form.L3Way) }}</div>
</div>
</fieldset>
<fieldset class="large primary callout">
<legend>Speed and Power</legend>
<div class="grid-x grid-margin-x">
<div class="cell medium-6">{{ form_row(form.baseSpeed) }}</div>
<div class="cell medium-6">{{ form_row(form.boostSpeed) }}</div>
<div class="cell medium-6">{{ form_row(form.cores) }}</div>
<div class="cell medium-6">{{ form_row(form.threads) }}</div>
<div class="cell">{{ form_row(form.igp) }}</div>
<div class="cell">{{ form_row(form.voltage) }}</div>
<div class="cell medium-6">{{ form_row(form.tdp) }}</div>
<div class="cell medium-6">{{ form_row(form.processNode) }}</div>
</div>
</fieldset>
<fieldset class="large primary callout">
<legend>Misc</legend>
<div class="grid-x grid-margin-x">
<div class="cell medium-4">{{ form_row(form.count) }}</div>
<div class="cell medium-8">&nbsp;</div>
<div class="cell medium-6">{{ form_row(form.usable) }}</div>
<div class="cell medium-6">{{ form_row(form.received) }}</div>
<div class="cell">{{ form_row(form.link) }}</div>
<div class="cell">{{ form_row(form.notes) }}</div>
</div>
</fieldset>
2022-10-27 11:55:16 -04:00
{{ form_widget(form) }}
2022-10-28 08:46:35 -04:00
2022-10-27 11:55:16 -04:00
<button type="submit" class="success button expanded">Add</button>
{{ form_end(form) }}
{% endblock %}