mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-12 02:08:32 +01:00
add-theme-picker
This commit is contained in:
parent
29465cbadc
commit
a25e0ef592
3 changed files with 9 additions and 5 deletions
|
@ -8,19 +8,15 @@
|
||||||
<Compile Remove="Build\**" />
|
<Compile Remove="Build\**" />
|
||||||
<Compile Remove="Storage\Services\Providers\GoogleCloudStorage\**" Condition="'$(TargetFramework)' != 'netcoreapp2.1'" />
|
<Compile Remove="Storage\Services\Providers\GoogleCloudStorage\**" Condition="'$(TargetFramework)' != 'netcoreapp2.1'" />
|
||||||
<Compile Remove="wwwroot\bundles\jqueryvalidate\**" />
|
<Compile Remove="wwwroot\bundles\jqueryvalidate\**" />
|
||||||
<Compile Remove="wwwroot\css\**" />
|
|
||||||
<Compile Remove="wwwroot\vendor\jquery-nice-select\**" />
|
<Compile Remove="wwwroot\vendor\jquery-nice-select\**" />
|
||||||
<Content Remove="Build\**" />
|
<Content Remove="Build\**" />
|
||||||
<Content Remove="wwwroot\bundles\jqueryvalidate\**" />
|
<Content Remove="wwwroot\bundles\jqueryvalidate\**" />
|
||||||
<Content Remove="wwwroot\css\**" />
|
|
||||||
<Content Remove="wwwroot\vendor\jquery-nice-select\**" />
|
<Content Remove="wwwroot\vendor\jquery-nice-select\**" />
|
||||||
<EmbeddedResource Remove="Build\**" />
|
<EmbeddedResource Remove="Build\**" />
|
||||||
<EmbeddedResource Remove="wwwroot\bundles\jqueryvalidate\**" />
|
<EmbeddedResource Remove="wwwroot\bundles\jqueryvalidate\**" />
|
||||||
<EmbeddedResource Remove="wwwroot\css\**" />
|
|
||||||
<EmbeddedResource Remove="wwwroot\vendor\jquery-nice-select\**" />
|
<EmbeddedResource Remove="wwwroot\vendor\jquery-nice-select\**" />
|
||||||
<None Remove="Build\**" />
|
<None Remove="Build\**" />
|
||||||
<None Remove="wwwroot\bundles\jqueryvalidate\**" />
|
<None Remove="wwwroot\bundles\jqueryvalidate\**" />
|
||||||
<None Remove="wwwroot\css\**" />
|
|
||||||
<None Remove="wwwroot\vendor\jquery-nice-select\**" />
|
<None Remove="wwwroot\vendor\jquery-nice-select\**" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -11,7 +11,7 @@ namespace BTCPayServer.Services
|
||||||
{
|
{
|
||||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||||
[MaxLength(500)]
|
[MaxLength(500)]
|
||||||
[Display(Name = "Custom theme CSS file")]
|
[Display(Name = "Select Theme")]
|
||||||
public string ThemeCssUri { get; set; }
|
public string ThemeCssUri { get; set; }
|
||||||
|
|
||||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)]
|
||||||
|
|
|
@ -32,7 +32,15 @@
|
||||||
is used on top of Bootstrap
|
is used on top of Bootstrap
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label asp-for="ThemeCssUri"></label>
|
||||||
|
<select id=themes asp-for="ThemeCssUri" class="form-control">
|
||||||
|
<option value="/css/btcpay-theme.css">btcpay</option>
|
||||||
|
<option value="/css/modern-theme.css">modern</option>
|
||||||
|
</select>
|
||||||
|
<span asp-validation-for="ThemeCssUri" class="text-danger"></span>
|
||||||
|
|
||||||
|
</div>
|
||||||
<button type="submit" class="btn btn-primary" name="command" value="Save">Save</button>
|
<button type="submit" class="btn btn-primary" name="command" value="Save">Save</button>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue