Fixed input alignment for variable page

This commit is contained in:
Marcel Baumgartner 2024-02-11 17:57:16 +01:00
parent 07c09e48e3
commit 970bca7121

View file

@ -42,21 +42,23 @@
<div class="form-text fs-5 mb-2 mt-0">
@imageVariable.Description
</div>
@if (imageVariable.AllowUserToEdit)
{
<div class="input-group">
<input @bind="variable.Value" type="text" class="form-control" placeholder="@(imageVariable.DefaultValue)"/>
<WButton OnClick="() => UpdateVariable(variable)" CssClasses="btn btn-icon btn-primary">
<i class="bx bx-sm bx-save"></i>
</WButton>
</div>
}
else
{
<div class="input-group">
<input value="@variable.Value" type="text" class="form-control disabled" disabled=""/>
</div>
}
<div class="mt-auto">
@if (imageVariable.AllowUserToEdit)
{
<div class="input-group">
<input @bind="variable.Value" type="text" class="form-control" placeholder="@(imageVariable.DefaultValue)"/>
<WButton OnClick="() => UpdateVariable(variable)" CssClasses="btn btn-icon btn-primary">
<i class="bx bx-sm bx-save"></i>
</WButton>
</div>
}
else
{
<div class="input-group">
<input value="@variable.Value" type="text" class="form-control disabled" disabled=""/>
</div>
}
</div>
</div>
</div>
}