2018-10-24 07:52:19 +02:00
|
|
|
@using Microsoft.AspNetCore.Mvc.Rendering
|
|
|
|
@model UpdateChangellySettingsViewModel
|
|
|
|
@{
|
|
|
|
Layout = "../Shared/_NavLayout.cshtml";
|
|
|
|
ViewData.SetActivePageAndTitle(StoreNavPages.Index, "Update Store Changelly Settings");
|
|
|
|
}
|
|
|
|
|
|
|
|
<h4>@ViewData["Title"]</h4>
|
|
|
|
<partial name="_StatusMessage" for="StatusMessage"/>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-10">
|
|
|
|
<form method="post">
|
2018-10-27 15:41:07 +02:00
|
|
|
<p>
|
|
|
|
You can obtain API keys at
|
|
|
|
<a href="https://changelly.com/?ref_id=804298eb5753" target="_blank">
|
|
|
|
Changelly.com
|
|
|
|
</a>
|
|
|
|
</p>
|
2018-10-24 07:52:19 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="ApiUrl"></label>
|
|
|
|
<input asp-for="ApiUrl" class="form-control"/>
|
|
|
|
<span asp-validation-for="ApiUrl" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="ApiKey"></label>
|
|
|
|
<input asp-for="ApiKey" class="form-control"/>
|
|
|
|
<span asp-validation-for="ApiKey" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="ApiSecret"></label>
|
|
|
|
<input asp-for="ApiSecret" class="form-control"/>
|
|
|
|
<span asp-validation-for="ApiSecret" class="text-danger"></span>
|
2018-10-27 15:41:07 +02:00
|
|
|
</div>
|
2018-10-24 07:52:19 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="ChangellyMerchantId"></label>
|
|
|
|
<input asp-for="ChangellyMerchantId" class="form-control"/>
|
|
|
|
<span asp-validation-for="ChangellyMerchantId" class="text-danger"></span>
|
2018-10-27 15:41:07 +02:00
|
|
|
</div>
|
2018-10-24 07:52:19 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="AmountMarkupPercentage"></label>
|
|
|
|
<input asp-for="AmountMarkupPercentage" class="form-control"/>
|
|
|
|
<span asp-validation-for="AmountMarkupPercentage" class="text-danger"></span>
|
2018-10-27 15:41:07 +02:00
|
|
|
</div>
|
2018-10-24 07:52:19 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="ShowFiat"></label>
|
|
|
|
<input asp-for="ShowFiat" class="form-check"/>
|
|
|
|
<span asp-validation-for="ShowFiat" class="text-danger"></span>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label asp-for="Enabled"></label>
|
|
|
|
<input asp-for="Enabled" type="checkbox" class="form-check"/>
|
|
|
|
</div>
|
|
|
|
<button name="command" type="submit" value="save" class="btn btn-primary">Submit</button>
|
|
|
|
<button name="command" type="submit" value="test" class="btn btn-primary">Test Settings</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@section Scripts {
|
|
|
|
@await Html.PartialAsync("_ValidationScriptsPartial")
|
|
|
|
}
|