diff options
author | Malf Furious <m@lfurio.us> | 2016-03-06 17:09:55 -0500 |
---|---|---|
committer | Malf Furious <m@lfurio.us> | 2016-03-27 20:16:32 -0400 |
commit | 53472e75c050ce9b653cc70eeed56715d9a4163e (patch) | |
tree | c3e2f8279804d28a4a5a55af2d5962d002386622 /app | |
parent | 0cc2192ff7582f5f9c2c9a20adcceae3bbc1fa84 (diff) | |
download | scrott-53472e75c050ce9b653cc70eeed56715d9a4163e.tar.gz scrott-53472e75c050ce9b653cc70eeed56715d9a4163e.zip |
Add settings modal to Common MVC
This modal dialog will be used to change app and object settings from any page in the app. The link to open it is added to the user button menu.
Diffstat (limited to 'app')
-rw-r--r-- | app/view/common/setting.modal.view.php | 24 | ||||
-rw-r--r-- | app/view/common/topp.view.php | 3 |
2 files changed, 27 insertions, 0 deletions
diff --git a/app/view/common/setting.modal.view.php b/app/view/common/setting.modal.view.php new file mode 100644 index 0000000..27fb9d2 --- /dev/null +++ b/app/view/common/setting.modal.view.php @@ -0,0 +1,24 @@ +<div id="settingModal" class="modal fade" tabindex="-1" role="dialog"> + <div class="modal-dialog" role="document"> + <div class="modal-content"> + <div class="modal-header"> + + <button type="button" class="close" data-dismiss="modal"> + <span aria-hidden="true">×</span> + </button> + + <h4 class="modal-title"><span class="glyphicon glyphicon-cog"></span> Settings</h4> + + </div> + + <div class="modal-body"> + </div> + + <div class="modal-footer"> + <button type="button" class="btn btn-primary" data-dismiss="modal"> + Close + </button> + </div> + </div> + </div> +</div> diff --git a/app/view/common/topp.view.php b/app/view/common/topp.view.php index 460887d..b23dc9c 100644 --- a/app/view/common/topp.view.php +++ b/app/view/common/topp.view.php @@ -1,5 +1,7 @@ <?php include "view/master/topp.view.php"; ?> +<?php include "view/common/setting.modal.view.php"; ?> + <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container-fluid"> @@ -23,6 +25,7 @@ <span class="<?=$mod->getCurrentUserGlyphicon()?>"></span> <?=$mod->getCurrentUser()->getDisplayName()?> <span class="caret"></span> </a> <ul class="dropdown-menu"> + <li><a href="#" data-toggle="modal" data-target="#settingModal">Settings</a></li> <li><a href="<?=$mod->ar()?>/logout">Log out</a></li> </ul> </li> |