diff options
Diffstat (limited to 'src')
-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 --> |