-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(wiki-page): page settings (#228)
* feat(wiki-page): page settings * chore: add template * fix: perm check and reload once settings changed * feat: update route from page settings
- Loading branch information
1 parent
fc1fc53
commit 3f12cdd
Showing
6 changed files
with
144 additions
and
5 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
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,43 @@ | ||
<div class="modal page-settings-modal fade" id="pageSettingsModal" tabindex="-1" role="dialog" | ||
aria-labelledby="pageSettingsModalTitle" aria-hidden="true"> | ||
<div class="modal-dialog modal-dialog-centered" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title page-settings-title">Page Settings</h5> | ||
<button type="button" class="d-block d-sm-none close" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<form class="page-settings-form"> | ||
<div class="form-group"> | ||
<div> | ||
<label class="text-muted text-xs" for="pageRoute">Route</label> | ||
<div class="flex align-items-center"> | ||
<div class="text-sm wiki-space-route-block" | ||
title="Wiki Space route (can't be modified)"> | ||
{{ route.split('/')[0] }}/ | ||
</div> | ||
<input type="text" id="pageRoute" name="pageRoute" class="form-control" | ||
style="border-top-left-radius: 0; border-bottom-left-radius: 0;" value="{{ " | ||
/".join(route.split('/')[1:]) }}"> | ||
</div> | ||
</div> | ||
<div class="mt-4 flex align-content-center"> | ||
<input type="checkbox" id="pageHideOnSidebar" {{ 'checked' if bool(hide_on_sidebar) else '' | ||
}} name="pageHideOnSidebar"> | ||
<label class="text-muted text-xs" for="pageHideOnSidebar" class="mt-2"> | ||
Hide on Sidebar | ||
</label> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" data-modal-button="update" | ||
class="btn btn-primary btn-sm update-page-settings-button"> | ||
Update | ||
</button> | ||
</div> | ||
</div> | ||
</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