♻️ refactor(template): improve variable naming in server form
- rename variable t to type_value for better clarity and readability
This commit is contained in:
parent
3c2c853fc7
commit
d86a5f1a99
1 changed files with 6 additions and 6 deletions
|
|
@ -58,12 +58,12 @@
|
||||||
name="type"
|
name="type"
|
||||||
class="w-full rounded-lg border border-slate-700 bg-slate-950/60 px-3 py-2 text-sm outline-none focus:border-indigo-500"
|
class="w-full rounded-lg border border-slate-700 bg-slate-950/60 px-3 py-2 text-sm outline-none focus:border-indigo-500"
|
||||||
>
|
>
|
||||||
{% set t = server.type if server else 'vps' %}
|
{% set type_value = server.type if server else 'vps' %}
|
||||||
<option value="vps" {% if t == 'vps' %}selected{% endif %}>VPS</option>
|
<option value="vps" {% if type_value == 'vps' %}selected{% endif %}>VPS</option>
|
||||||
<option value="dedicated" {% if t == 'dedicated' %}selected{% endif %}>Dedicated</option>
|
<option value="dedicated" {% if type_value == 'dedicated' %}selected{% endif %}>Dedicated</option>
|
||||||
<option value="storage" {% if t == 'storage' %}selected{% endif %}>Storage</option>
|
<option value="storage" {% if type_value == 'storage' %}selected{% endif %}>Storage</option>
|
||||||
<option value="managed" {% if t == 'managed' %}selected{% endif %}>Managed</option>
|
<option value="managed" {% if type_value == 'managed' %}selected{% endif %}>Managed</option>
|
||||||
<option value="other" {% if t == 'other' %}selected{% endif %}>Sonstiges</option>
|
<option value="other" {% if type_value == 'other' %}selected{% endif %}>Sonstiges</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="space-y-1">
|
<div class="space-y-1">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue