strip color keys from webfront form lists
This commit is contained in:
parent
15c3ca53e2
commit
425ec2621d
@ -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>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user