diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-05-25 22:41:24 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-05-25 22:41:24 -0400 |
commit | a60a65f49e94d31bc17d89fd5e4e536a0f50d065 (patch) | |
tree | d2b519f5c265b7227d212b6a7cf4c6a3bfb8ce48 | |
parent | b08a33c634e8c894cd742266d92c5d16fcf1d364 (diff) | |
download | guff-a60a65f49e94d31bc17d89fd5e4e536a0f50d065.tar.bz2 guff-a60a65f49e94d31bc17d89fd5e4e536a0f50d065.zip |
initial settings panel
-rw-r--r-- | src/guff.cr | 20 | ||||
-rw-r--r-- | src/views/admin-page.ecr | 54 |
2 files changed, 68 insertions, 6 deletions
diff --git a/src/guff.cr b/src/guff.cr index ea9f73a..f2a5da4 100644 --- a/src/guff.cr +++ b/src/guff.cr @@ -1893,6 +1893,26 @@ module Guff name: "Settings", text: "Configure site settings.", }], + + "settings": [{ + id: "general", + css: "active", + icon: "fa-home", + name: "General", + text: "Configure general settings.", + }, { + id: "sites", + css: "", + icon: "fa-cog", + name: "Sites", + text: "Configure sites.", + }, { + id: "users", + css: "", + icon: "fa-users", + name: "Users", + text: "Manage users and permissions.", + }], } TEMPLATES = { diff --git a/src/views/admin-page.ecr b/src/views/admin-page.ecr index 4e271ee..af031eb 100644 --- a/src/views/admin-page.ecr +++ b/src/views/admin-page.ecr @@ -349,13 +349,55 @@ role='tabpanel' > <div class='panel panel-default'> - <div class='panel-heading'> - </div><!-- panel-heading --> - <div class='panel-body'> - <p> - TODO: settings - </p> + <div class='row'> + <div class='col-md-2'> + <ul class='nav nav-pills nav-stacked' role='tablist'><%= + tabs("settings") + %></ul><!-- nav --> + </div><!-- col-md-2 --> + + <div class='col-md-10'> + <div class='tab-content'> + <div + id='settings-pane-general' + class='tab-pane active' + role='tabpanel' + > + <p> + TODO: general settings + </p> + </div><!-- tab-pane --> + + <div + id='settings-pane-users' + class='tab-pane' + role='tabpanel' + > + <div class='panel panel-default'> + <div class='panel-heading'> + </div><!-- panel-heading --> + + <div class='panel-body'> + <p> + TODO: users settings + </p> + </div><!-- panel-body --> + </div><!-- panel --> + </div><!-- tab-pane --> + + <div + id='settings-pane-sites' + class='tab-pane' + role='tabpanel' + > + <p> + TODO: sites settings + </p> + </div><!-- tab-pane --> + </div><!-- tab-content --> + </div><!-- col-md-10 --> + </div><!-- row --> </div><!-- panel-body --> </div><!-- panel --> </div><!-- tab-pane --> |