| 1 | <!DOCTYPE html> |
|---|
| 2 | <!--[if (gt IE 9)|!(IE)]><!--> <html class="no-js" lang="{{=T.accepted_language or 'en'}}"> <!--<![endif]--> |
|---|
| 3 | <head> |
|---|
| 4 | <meta charset="utf-8"> |
|---|
| 5 | <!-- www.phpied.com/conditional-comments-block-downloads/ --> |
|---|
| 6 | <!-- Always force latest IE rendering engine |
|---|
| 7 | (even in intranet) & Chrome Frame |
|---|
| 8 | Remove this if you use the .htaccess --> |
|---|
| 9 | <meta http-equiv="X-UA-Compatible" content="IE=edge{{=not request.is_local and ',chrome=1' or ''}}"> |
|---|
| 10 | <!-- Mobile Viewport Fix |
|---|
| 11 | j.mp/mobileviewport & davidbcalhoun.com/2010/viewport-metatag |
|---|
| 12 | device-width: Occupy full width of the screen in its current orientation |
|---|
| 13 | initial-scale = 1.0 retains dimensions instead of zooming out if page height > device height |
|---|
| 14 | user-scalable = yes allows the user to zoom in --> |
|---|
| 15 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|---|
| 16 | <title>{{=response.title or request.application}}</title> |
|---|
| 17 | <!-- http://dev.w3.org/html5/markup/meta.name.html --> |
|---|
| 18 | <meta name="application-name" content="{{=request.application}}"> |
|---|
| 19 | <!-- Speaking of Google, don't forget to set your site up: |
|---|
| 20 | http://google.com/webmasters --> |
|---|
| 21 | <meta name="google-site-verification" content=""> |
|---|
| 22 | <!-- include stylesheets --> |
|---|
| 23 | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/> |
|---|
| 24 | <link rel="stylesheet" href="{{=URL('static','css/bootstrap.min.css')}}"/> |
|---|
| 25 | <link rel="stylesheet" href="{{=URL('static','css/web2py-bootstrap4.css')}}"/> |
|---|
| 26 | <link rel="shortcut icon" href="{{=URL('static','images/favicon.ico')}}" type="image/x-icon"> |
|---|
| 27 | <link rel="apple-touch-icon" href="{{=URL('static','images/favicon.png')}}"> |
|---|
| 28 | <!-- All JavaScript at the bottom, except for Modernizr which enables |
|---|
| 29 | HTML5 elements & feature detects --> |
|---|
| 30 | <script src="{{=URL('static','js/modernizr-2.8.3.min.js')}}"></script> |
|---|
| 31 | <!-- Favicons --> |
|---|
| 32 | {{include 'web2py_ajax.html'}} <!-- this includes jquery.js, calendar.js/.css and web2py.js --> |
|---|
| 33 | {{block head}}{{end}} |
|---|
| 34 | </head> |
|---|
| 35 | <body> |
|---|
| 36 | <div class="w2p_flash alert alert-dismissable">{{=response.flash or ''}}</div> |
|---|
| 37 | <!-- Navbar ======================================= --> |
|---|
| 38 | <nav class="navbar navbar-light navbar-expand-md bg-faded bg-dark navbar-dark justify-content-center"> |
|---|
| 39 | <a href="http://dev.tmcacad.com" class="navbar-brand d-flex w-50 mr-auto">LCS</a> |
|---|
| 40 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation"> |
|---|
| 41 | <span class="navbar-toggler-icon"></span> |
|---|
| 42 | </button> |
|---|
| 43 | <div class="navbar-collapse collapse w-100" id="navbarNavDropdown"> |
|---|
| 44 | <ul class="navbar-nav w-100 justify-content-center"> |
|---|
| 45 | {{for _item in response.menu or []:}} |
|---|
| 46 | {{if len(_item)<4 or not _item[3]:}} |
|---|
| 47 | <li class="nav-item {{if _item[1]:}}active{{pass}}"> |
|---|
| 48 | <a class="nav-link" href="{{=_item[2]}}">{{=_item[0]}}</a> |
|---|
| 49 | </li> |
|---|
| 50 | {{else:}} |
|---|
| 51 | <li class="nav-item dropdown"> |
|---|
| 52 | <a class="nav-link dropdown-toggle" href="{{=_item[2]}}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{=_item[0]}}</a> |
|---|
| 53 | <div class="dropdown-menu"> |
|---|
| 54 | {{for _subitem in _item[3]:}} |
|---|
| 55 | <a class="dropdown-item" href="{{=_subitem[2]}}">{{=_subitem[0]}}</a> |
|---|
| 56 | {{pass}} |
|---|
| 57 | </div> |
|---|
| 58 | </li> |
|---|
| 59 | {{pass}} |
|---|
| 60 | {{pass}} |
|---|
| 61 | </ul> |
|---|
| 62 | <form class="form-inline my-2 my-lg-0"> |
|---|
| 63 | <input class="form-control mr-sm-2" type="text" placeholder=""> |
|---|
| 64 | </form> |
|---|
| 65 | {{if 'auth' in globals():}} |
|---|
| 66 | <ul class="nav navbar-nav ml-auto w-100 justify-content-end"> |
|---|
| 67 | <li class="nav-item dropdown"> |
|---|
| 68 | <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
|---|
| 69 | {{if auth.user:}}{{=auth.user.first_name}}{{else:}}LOGIN{{pass}} |
|---|
| 70 | </a> |
|---|
| 71 | <div class="dropdown-menu dropdown-menu-right"> |
|---|
| 72 | {{if auth.user:}} |
|---|
| 73 | <a class="dropdown-item" href="{{=URL('default','user/profile')}}">{{=T('Profile')}}</a> |
|---|
| 74 | {{if 'change_password' not in auth.settings.actions_disabled:}} |
|---|
| 75 | <a class="dropdown-item" href="{{=URL('default','user/change_password')}}">{{=T('Change Password')}}</a> |
|---|
| 76 | {{pass}} |
|---|
| 77 | <a class="dropdown-item" href="{{=URL('default','user/logout')}}">{{=T('Logout')}}</a> |
|---|
| 78 | {{else:}} |
|---|
| 79 | <a class="dropdown-item" href="{{=URL('default','user/login')}}">{{=T('Login')}}</a> |
|---|
| 80 | {{if 'register' not in auth.settings.actions_disabled:}} |
|---|
| 81 | <a class="dropdown-item" href="{{=URL('default','user/register')}}">{{=T('Sign up')}}</a> |
|---|
| 82 | {{pass}} |
|---|
| 83 | {{if 'retrieve_password' not in auth.settings.actions_disabled:}} |
|---|
| 84 | <a class="dropdown-item" href="{{=URL('default','user/retrieve_password')}}">{{=T('Lost Password')}}</a> |
|---|
| 85 | {{pass}} |
|---|
| 86 | {{pass}} |
|---|
| 87 | </div> |
|---|
| 88 | </li> |
|---|
| 89 | </ul> |
|---|
| 90 | {{pass}} |
|---|
| 91 | </div> |
|---|
| 92 | </nav> |
|---|
| 93 | |
|---|
| 94 | <!-- Masthead ===================================== --> |
|---|
| 95 | {{block header}} |
|---|
| 96 | {{end}} |
|---|
| 97 | <!-- Main ========================================= --> |
|---|
| 98 | <!-- Begin page content --> |
|---|
| 99 | <div class="container-fluid main-container"> |
|---|
| 100 | {{include}} |
|---|
| 101 | {{=response.toolbar() if response.show_toolbar else ''}} |
|---|
| 102 | </div> |
|---|
| 103 | |
|---|
| 104 | {{block footer}} <!-- this is default footer --> |
|---|
| 105 | <footer class="footer container-fluid"> |
|---|
| 106 | <div class="row"> |
|---|
| 107 | <div class="col-md-12"> |
|---|
| 108 | <div class="copyright pull-left">{{=T('Copyright')}} © {{=request.now.year}}</div> |
|---|
| 109 | <div id="poweredBy" class="pull-right"> |
|---|
| 110 | </div> |
|---|
| 111 | </div> |
|---|
| 112 | </div> |
|---|
| 113 | </footer> |
|---|
| 114 | {{end}} |
|---|
| 115 | <!-- The javascript =============================== --> |
|---|
| 116 | <script src="{{=URL('static','js/bootstrap.bundle.min.js')}}"></script> |
|---|
| 117 | <script src="{{=URL('static','js/web2py-bootstrap4.js')}}"></script> |
|---|
| 118 | {{block page_js}}{{end page_js}} |
|---|
| 119 | {{if response.google_analytics_id:}} |
|---|
| 120 | <!-- Analytics ==================================== --> |
|---|
| 121 | <script src="{{=URL('static','js/analytics.min.js')}}"></script> |
|---|
| 122 | <script type="text/javascript"> |
|---|
| 123 | analytics.initialize({ |
|---|
| 124 | 'Google Analytics':{trackingId:'{{=response.google_analytics_id}}'} |
|---|
| 125 | }); |
|---|
| 126 | </script> |
|---|
| 127 | {{pass}} |
|---|
| 128 | </body> |
|---|
| 129 | </html> |
|---|