-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathEditTeaserHtmlPartial.cshtml
More file actions
28 lines (26 loc) · 1.46 KB
/
EditTeaserHtmlPartial.cshtml
File metadata and controls
28 lines (26 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
@model cloudscribe.SimpleContent.Web.ViewModels.PostEditViewModel
@inject ISummernoteOptionsResolver summernoteOptionsResolver
@inject ICkeditorOptionsResolver editorOptionsResolver
@inject IStringLocalizer<SimpleContent> sr
@{
var summernoteOptions = await summernoteOptionsResolver.GetSummernoteOptions();
var ckOptions = await editorOptionsResolver.GetCkeditorOptions();
}
<div class="mb-3">
<label asp-for="TeaserOverride">@sr["Teaser Override"]</label>
<textarea asp-for="TeaserOverride" class="form-control" rows="10" cols="70"
data-summernote-unobtrusive=""
data-summernote-config-url="@summernoteOptions.CustomConfigPath"
data-summernote-toolbar-config-url="@summernoteOptions.CustomToolbarConfigPath"
data-summernote-config-language="@summernoteOptions.LanguageCode"
data-summernote-config-dropfileuploadurl="@summernoteOptions.DropFileUrl"
data-summernote-config-filebrowserurl="@summernoteOptions.FileBrowseUrl"
data-summernote-config-imagebrowseurl="@summernoteOptions.ImageBrowseUrl">
</textarea>
</div>
<div class="mb-3">
<div class="form-check" data-bs-toggle="tooltip" data-placement="left" title='@sr["If checked, then show entire blog post on index/listing pages regardless of teaser settings."]'>
<input asp-for="SuppressTeaser" class="form-check-input" />
<label asp-for="SuppressTeaser" class="form-check-label">@sr["No teaser, use full post"]</label>
</div>
</div>