Adding Bootstrap theme uri field to settings

This commit is contained in:
lepipele
2018-04-13 15:42:34 -05:00
parent 75099b99d4
commit f869c06aee
3 changed files with 14 additions and 0 deletions

View File

@@ -15,5 +15,8 @@ namespace BTCPayServer.Services
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
public bool LockSubscription { get; set; }
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
public string CustomBootstrapThemeCssUri { get; set; }
}
}

View File

@@ -15,6 +15,15 @@
<div class="row">
<div class="col-md-6">
<form method="post">
<div class="form-group">
<label asp-for="CustomBootstrapThemeCssUri"></label>
<input asp-for="CustomBootstrapThemeCssUri" class="form-control" />
<span asp-validation-for="CustomBootstrapThemeCssUri" class="text-danger"></span>
<p class="form-text text-muted">
<a href="https://bootstrap.build/app/v4.0/" target="_blank">Build your own theme</a>
or <a href="https://bootswatch.com/" target="_blank">pick one already made</a>
</p>
</div>
<div class="form-group">
<label asp-for="RequiresConfirmedEmail"></label>
<input asp-for="RequiresConfirmedEmail" type="checkbox" class="form-check-inline" />

View File

@@ -19,6 +19,8 @@
@* CSS *@
<bundle name="wwwroot/bundles/main-bundle.min.css" />
@* JS *@
<bundle name="wwwroot/bundles/main-bundle.min.js" />
</head>