feat: edit print templates on the printer page and store them on presets
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
@using WebApp.Services
|
||||
|
||||
@for (var i = 0; i < Pages.Count; i++)
|
||||
{
|
||||
var page = Pages[i];
|
||||
var isLast = i == Pages.Count - 1;
|
||||
var pageClass = NewPagePerRecord && !isLast
|
||||
? "note-print-page pagebreak"
|
||||
: "note-print-page";
|
||||
<MudContainer Class="@pageClass" Style="@PrintPageStyle">
|
||||
<div class="markdown-content">
|
||||
@((MarkupString)page.Html)
|
||||
</div>
|
||||
</MudContainer>
|
||||
}
|
||||
|
||||
@code {
|
||||
[Parameter, EditorRequired]
|
||||
public IReadOnlyList<NotePrintPage> Pages { get; set; } = [];
|
||||
|
||||
[Parameter]
|
||||
public bool NewPagePerRecord { get; set; } = true;
|
||||
|
||||
[Parameter]
|
||||
public string PrintPageStyle { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user