btcpayserver/BTCPayServer/Views/UIServer/CreateDictionary.cshtml
d11n 7878a4365c
Dictionary additions (#6120)
* Cleanups

* Add text entries for dictionary pages

* Wording: Keep Clone title consistent with Payment Request cloning

* Dictionaries: List used one first; badge for marking In use
2024-07-26 08:46:17 +09:00

35 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@model CreateDictionaryViewModel
@{
ViewData.SetActivePage(ServerNavPages.Translations, "Create a new dictionary");
}
<form method="post">
<div class="sticky-header">
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a asp-action="ListDictionaries" text-translate="true">Dictionaries</a>
</li>
<li class="breadcrumb-item active" aria-current="page" text-translate="true">@ViewData["Title"]</li>
</ol>
<h2 text-translate="true">@ViewData["Title"]</h2>
</nav>
<input id="page-primary" type="submit" value="Create" class="btn btn-primary" />
</div>
<div class="row">
<div class="col-xl-8 col-xxl-constrain">
<div class="form-group">
<label asp-for="Name" class="form-label" text-translate="true"></label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Fallback" class="form-label" text-translate="true"></label>
<select asp-for="Fallback" class="form-select w-auto" asp-items="@Model.DictionariesListItems"></select>
<span asp-validation-for="Fallback" class="text-danger"></span>
<div class="form-text" text-translate="true">If a translation isnt available in the new dictionary, it will be searched in the fallback.</div>
</div>
</div>
</div>
</form>