mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
c71e671311
* Added custodian account trade support * UI updates * Improved UI spacing and field sizes + Fixed input validation * Reset error message when opening trade modal * Better error handing + test + surface error in trade modal in UI * Add delete confirmation modal * Fixed duplicate ID in site nav * Replace jQuery.ajax with fetch for onTradeSubmit * Added support for minimumTradeQty to trading pairs * Fixed LocalBTCPayServerClient after previous refactoring * Handling dust amounts + minor API change * Replaced jQuery with Fetch API + UX improvements + more TODOs * Moved namespace because Rider was unhappy * Major UI improvements when swapping or changing assets, fixed bugs in min trade qty, fixed initial qty after an asset change etc * Commented out code for easier debugging * Fixed missing default values Co-authored-by: Dennis Reimann <mail@dennisreimann.de>
35 lines
967 B
Plaintext
35 lines
967 B
Plaintext
@model BTCPayServer.Abstractions.Form.Form
|
|
|
|
@foreach (var fieldset in Model.Fieldsets)
|
|
{
|
|
<fieldset>
|
|
<legend class="h3 mt-4 mb-3">@fieldset.Label</legend>
|
|
@foreach (var field in fieldset.Fields)
|
|
{
|
|
@if ("text".Equals(field.Type))
|
|
{
|
|
<div class="form-group">
|
|
@if (field.Required)
|
|
{
|
|
<label class="form-label" for="@field.Name" data-required>
|
|
@field.Label
|
|
</label>
|
|
}
|
|
else
|
|
{
|
|
<label class="form-label" for="@field.Name">
|
|
@field.Label
|
|
</label>
|
|
}
|
|
|
|
<input class="form-control @(field.IsValid() ? "" : "is-invalid")" id="@field.Name" type="text" required="@field.Required" name="@field.Name" value="@field.Value" aria-describedby="HelpText@field.Name"/>
|
|
<small id="HelpText@field.Name" class="form-text text-muted">
|
|
@field.HelpText
|
|
</small>
|
|
|
|
</div>
|
|
}
|
|
}
|
|
</fieldset>
|
|
}
|