btcpayserver/BTCPayServer/Views/UICustodianAccounts/CreateCustodianAccount.cshtml
d11n 2e6246e385
Move TagHelpers to Abstractions (#3975)
* Move TagHelpers to Abstractions

Makes them available for use in plugins. Also cleans up the tag helper references in the view code: As we have it in the root view imports, the individual directives in the views are superfluous.

* Move CurrenciesSuggestionsTagHelper back

To get rid of the Rating dependency in Abstractions.
2022-07-22 21:58:25 +09:00

59 lines
2.3 KiB
Text

@using BTCPayServer.Views.Apps
@using BTCPayServer.Abstractions.Extensions
@model BTCPayServer.Models.CustodianAccountViewModels.CreateCustodianAccountViewModel
@{
ViewData.SetActivePage(AppsNavPages.Create, "Add a custodian account");
}
@section PageFootContent {
<partial name="_ValidationScriptsPartial" />
}
<partial name="_StatusMessage" />
<h2 class="mt-1 mb-4">@ViewData["Title"]</h2>
<div class="row">
<div class="col-xl-8 col-xxl-constrain">
<form asp-action="CreateCustodianAccount">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
@if (!string.IsNullOrEmpty(Model.SelectedCustodian))
{
<partial name="_FormTopMessages" model="Model.ConfigForm" />
}
else if(Model.Custodians.Count() > 0)
{
<div class="form-group">
<label asp-for="SelectedCustodian" class="form-label" data-required></label>
<select asp-for="SelectedCustodian" asp-items="Model.Custodians" class="form-select"></select>
</div>
}
else
{
<p>No custodians available. Install some plugins to add custodian / exchange support.</p>
}
@if (!string.IsNullOrEmpty(Model.SelectedCustodian))
{
<div class="form-group">
<label asp-for="SelectedCustodian" class="form-label" data-required></label>
<select disabled asp-for="SelectedCustodian" asp-items="Model.Custodians" class="form-select"></select>
<input type="hidden" asp-for="SelectedCustodian" />
</div>
<div class="form-group">
<label asp-for="Name" class="form-label" data-required></label>
<input asp-for="Name" class="form-control" required/>
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<partial name="_Form" model="Model.ConfigForm" />
}
<div class="form-group mt-4">
<input type="submit" value="Continue" class="btn btn-primary" id="Continue" />
</div>
</form>
</div>
</div>