mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
* UI: Move section navigation to sidebar * Scroll active nav link into view * Move CTAs to top right * Server Settings: Make Policies first page * Responsive table fixes * Spacing fixes * Add breadcrumb samples * store settings fixes * payment request fixes * updates pull payment title * adds invoice detail fix * updates server settings breadcrumbs + copy fix * Don't open Server Settings on Plugins page * Add breadcrumbs to pull payment views * adds breadcrumbs to account * server and store breadcrumb fixes * fixes access tokens * Fix payment processor breadcrumbs * fixes webhook 404 * Final touches * Fix test * Add breadcrumb for email rules page * Design system updates --------- Co-authored-by: dstrukt <gfxdsign@gmail.com>
37 lines
1.3 KiB
Text
37 lines
1.3 KiB
Text
@model CreateAppViewModel
|
|
@{
|
|
ViewData.SetActivePage(AppsNavPages.Create, $"Create a new {Model.AppType ?? "app"}", Model.AppType);
|
|
}
|
|
|
|
@section PageFootContent {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|
|
|
|
<form asp-action="CreateApp" asp-route-appType="@Model.AppType">
|
|
<div class="sticky-header">
|
|
<h2>@ViewData["Title"]</h2>
|
|
<input type="submit" value="Create" class="btn btn-primary" id="Create" />
|
|
</div>
|
|
<partial name="_StatusMessage" />
|
|
|
|
<div class="row">
|
|
<div class="col-xl-8 col-xxl-constrain">
|
|
@if (!ViewContext.ModelState.IsValid)
|
|
{
|
|
<div asp-validation-summary="ModelOnly"></div>
|
|
}
|
|
@if (string.IsNullOrEmpty(Model.AppType))
|
|
{
|
|
<div class="form-group">
|
|
<label asp-for="SelectedAppType" class="form-label" data-required></label>
|
|
<select asp-for="SelectedAppType" asp-items="Model.AppTypes" class="form-select"></select>
|
|
</div>
|
|
}
|
|
<div class="form-group">
|
|
<label asp-for="AppName" class="form-label" data-required></label>
|
|
<input asp-for="AppName" class="form-control" required />
|
|
<span asp-validation-for="AppName" class="text-danger"></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|