search stuff

This commit is contained in:
2022-02-05 01:52:48 +01:00
parent 17363ee620
commit 3030d8706f
7 changed files with 76 additions and 8 deletions
+9
View File
@@ -15,5 +15,14 @@ internal class ZeroMailModule : ZeroModule
{
opts.BuildViewPath = mail => $"~/Views/Mails/{mail.Template.Key.Replace('.', '/')}.cshtml";
});
services.Configure<ZeroSearchOptions>(opts =>
{
opts.Map<MailTemplate>("fth-mail").Fields("Key").Display((x, res) =>
{
res.Description = x.Key;
res.Url = "/settings/mailtemplates/edit/" + x.Id;
});
});
}
}