1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-07 21:58:06 -05:00

strip color keys from webfront form lists

This commit is contained in:
RaidMax 2022-04-08 17:14:04 -05:00
parent e17c66887a
commit bd852b295b
2 changed files with 3 additions and 2 deletions

View File

@ -154,6 +154,7 @@ namespace SharedLibraryCore
}
str = Regex.Replace(str, @"(\^+((?![a-z]|[A-Z]).){0,1})+", "");
str = Regex.Replace(str, @"\(Color::(.{1,16})\)", "");
return str;
}

View File

@ -21,7 +21,7 @@
<select name="@input.Name" class="form-control" aria-label="@input.Name" aria-describedby="basic-addon-@input.Name">
@foreach (var item in input.Values)
{
<option value="@item.Key">@item.Value</option>
<option value="@item.Key"><color-code value="@item.Value"></color-code></option>
}
</select>
}
@ -48,4 +48,4 @@
}
}
<button type="submit" class="btn btn-block btn-primary">@Model.ActionButtonLabel</button>
</form>
</form>