This commit is contained in:
2026-06-03 09:50:35 +02:00
16 changed files with 183 additions and 29 deletions
+5 -5
View File
@@ -17,16 +17,16 @@
<div style="display:grid;grid-template-columns:1fr 1fr;gap:16px">
<div class="card">
<div class="card-title">@T["templates.capture"]</div>
<div class="card-title">@T["templates.capture"]<HelpTip Text="@T["help.templateCapture"]" Wide="true" /></div>
<SitePicker Profile="Session.CurrentProfile!" @bind-SelectedSites="_captureSites" Single="true" />
<div class="form-group mt-8">
<label class="form-label">@T["templates.name"]</label>
<input class="form-input" @bind="_captureName" placeholder="@T["templates.name.placeholder"]" />
</div>
<div class="flex-row" style="flex-wrap:wrap">
<label><input type="checkbox" @bind="_capLibraries" /> @T["templates.opt.libraries"]</label>
<label><input type="checkbox" @bind="_capLibraries" /> @T["templates.opt.libraries"]<HelpTip Text="@T["help.library"]" /></label>
<label><input type="checkbox" @bind="_capFolders" /> @T["templates.opt.folders"]</label>
<label><input type="checkbox" @bind="_capGroups" /> @T["templates.opt.permissions"]</label>
<label><input type="checkbox" @bind="_capGroups" /> @T["templates.opt.permissions"]<HelpTip Text="@T["help.permissionGroups"]" Wide="true" /></label>
</div>
<button class="btn btn-primary mt-8" @onclick="CaptureTemplate" disabled="@_running">
@(_running ? T["templates.btn.capturing"] : T["templates.btn.capture"])
@@ -48,11 +48,11 @@
<input class="form-input" @bind="_newTitle" />
</div>
<div class="form-group">
<label class="form-label">@T["templates.newalias"]</label>
<label class="form-label">@T["templates.newalias"]<HelpTip Text="@T["help.siteAlias"]" Wide="true" /></label>
<input class="form-input" @bind="_newAlias" />
</div>
<div class="form-group">
<label class="form-label">@T["templates.adminurl"]</label>
<label class="form-label">@T["templates.adminurl"]<HelpTip Text="@T["help.adminUrl"]" Wide="true" /></label>
<input class="form-input" @bind="_adminUrl" placeholder="https://contoso-admin.sharepoint.com" />
</div>
<button class="btn btn-primary" @onclick="ApplyTemplate" disabled="@_running">