1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

add set client tag to webfront profile as button

This commit is contained in:
RaidMax
2022-07-19 20:37:48 -05:00
parent f78196b063
commit ee5fc9383d
3 changed files with 82 additions and 6 deletions

View File

@ -25,11 +25,20 @@
@if (inputType == "select")
{
<select name="@input.Name" class="form-control" aria-label="@input.Name" aria-describedby="basic-addon-@input.Name">
@foreach (var item in input.Values)
@foreach (var (key, item) in input.Values)
{
<option value="@item.Key">
<color-code value="@item.Value"></color-code>
</option>
if (key.StartsWith("!selected!"))
{
<option value="@key.Replace("!selected!", "")" selected>
<color-code value="@item"></color-code>
</option>
}
else
{
<option value="@key">
<color-code value="@item"></color-code>
</option>
}
}
</select>
}