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:
parent
e17c66887a
commit
bd852b295b
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user