strip color keys from webfront form lists

This commit is contained in:
RaidMax 2022-04-08 17:14:04 -05:00
parent 15c3ca53e2
commit 425ec2621d
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>