-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add theme picker to admin templates - Add default edit forms to Themes - CSS for vertical tabs - Tabs: stop storing tab state in URL hash
- Loading branch information
Showing
10 changed files
with
158 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{{- $themeID := .ThemeID -}} | ||
{{- $themes := .Themes -}} | ||
|
||
<h1>Select a Theme</h1> | ||
|
||
<div class="flex-row" script="install TabContainer"> | ||
<div role="tablist" class="vertical width-1-5"> | ||
{{- range $themes -}} | ||
{{- if eq .ThemeID $themeID -}} | ||
<div role="tab" aria-controls="theme-{{.ThemeID}}" aria-selected="true">{{.Label}}</div> | ||
{{- else -}} | ||
<div role="tab" aria-controls="theme-{{.ThemeID}}">{{.Label}}</div> | ||
{{- end -}} | ||
{{- end -}} | ||
</div> | ||
<div class="width-4-5"> | ||
{{- range $themes -}} | ||
<div id="theme-{{.ThemeID}}" role="tabpanel"> | ||
<div class="text-lg bold margin-none">{{.Label}}</div> | ||
<div class="text-gray margin-bottom">{{.Description}}</div> | ||
<img src="/.themes/{{.ThemeID}}/resources/startup/splash.png" class="width-100-percent margin-bottom"> | ||
|
||
<div> | ||
<button class="primary" hx-post="/admin/domain/themes" hx-vals='{"themeId":"{{.ThemeID}}"}'>Select Theme</button> | ||
<button script="on click trigger closeModal">Cancel</button> | ||
</div> | ||
</div> | ||
{{- end -}} | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters