mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 06:35:13 +01:00
* Edit and view app name in app settings Currently the "name" property is not exposed at all in an app's settings/update page, which can result in confusion about which app is being updated, and also a general confusion between the `Title` property and the `Name` property. This PR gives visibility to the app name in settings, and allows updating of the same. I also changed the display label for `title` and `name` to make them more distinct and specific. * Fix tests * Update AltcoinTests.cs * Update SeleniumTests.cs * fix tests Co-authored-by: Nicolas Dorier <nicolas.dorier@gmail.com>
41 lines
1.7 KiB
Text
41 lines
1.7 KiB
Text
@model CreateAppViewModel
|
|
@{
|
|
ViewData.SetActivePageAndTitle(AppsNavPages.Create, "Create a new app");
|
|
}
|
|
|
|
@section PageFootContent {
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|
|
|
|
<section>
|
|
<div class="container">
|
|
<partial name="_StatusMessage" />
|
|
|
|
<h2 class="mb-4">@ViewData["Title"]</h2>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-6">
|
|
<form asp-action="CreateApp">
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
|
<div class="form-group">
|
|
<label asp-for="SelectedStore" class="form-label" data-required></label>
|
|
<select asp-for="SelectedStore" asp-items="Model.Stores" class="form-select"></select>
|
|
</div>
|
|
<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 class="form-group mt-4">
|
|
<input type="submit" value="Create" class="btn btn-primary" id="Create" />
|
|
<a asp-action="ListApps" class="btn btn-link px-0 ms-3">Back to list</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|