1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <META http-equiv="Content-Type" content="text/html; charset=utf-8">
- <META http-equiv="Content-Style-Type" content="text/css">
- <meta name="viewport" content="width=device-width, initial-scale=0.75">
- <link rel="icon" type="image/x-icon" sizes="32x32" href="{{ url_for("static", filename="cv_db/favicon.ico") }}">
- {% if js %}
- <script type="text/javascript" src="{{ url_for("static", filename="cv_db/js/jquery.js") }}"></script>
- <script type="text/javascript">
- var do_alert;
- $(document).ready( function() {
- try {
- do_alert = function(s_in) {
- s_in = String(s_in).replace("\n", "<br />");
- $("#div_alert").show();
- //document.getElementById("div_alert").innerHTML = s_in;
- $("#div_alert").html(s_in);
- }//end of do_alert function
- $.fn.redraw =function(){
- $(this).each(function(){var redraw =this.offsetHeight;});
- };//end of $.fn.redraw function
- var s_server_url = "{{ url }}";
- $.each($("ul.nav").find("a"), function(ix, a) {
- if (s_server_url.endsWith($(a).attr("href"))) { $(a).attr("aria-current", "true"); } else { $(a).attr("aria-current", ""); }
- });// end of .each on nav links
- // alert([s_url, s_server_url]);
- var s_msg = "";
- {% with messages = get_flashed_messages() %}
- {% if messages %}
- s_msg = "{{ messages[-1] }}";
- {% endif %}
- {% endwith %}
- if (String(s_msg).length>0) {
- window.setTimeout( function() {
- $("#div_alert").toggleClass("warning");
- do_alert(s_msg);
- }, 300);
- }
- } catch(e) {
- var s_err = String(e.name) + "\nmessage:" + String(e.message);
- s_err = (typeof(e.lineNumber)!="undefined") ? s_err + "\nline:" + String(e.lineNumber) : s_err;
- alert("Error! " + s_err);
- }//end of catch
- });//end of document ready
- </script>
- {% endif %}{# end of js check #}
- <title>C.V. Database - {% block title %}{% endblock %}</title>
- <link type="text/css" rel="stylesheet" href="{{ url_for("static", filename="cv_db/css/styles.css") }}" />
- <link type="text/css" rel="stylesheet" href="{{ url_for("static", filename="cv_db/css/alteram/styles_1.css") }}" />
- <link type="text/css" rel="stylesheet" href="{{ url_for("static", filename="cv_db/css/alteram/styles_2.css") }}" />
- {% block head_extra %}{% endblock head_extra %}
- </head>
- <body>
- {% from "macros/console.html" import console_replacement %}
- {# { console_replacement() } #}
- <header>
- <div class="header-container">
- <div class="logo-area"></div>
- <nav>
- <ul class="nav" role="navigation">
- {% if current_user.id %}
- <li><a href="{{ url_for("main.index") }}">Landing page</a></li>
- {% if current_user.bl_admin %}
- <li><a href="{{ url_for("main.qualifications") }}">Qualifications</a></li>
- <li><a href="{{ url_for("main.roles") }}">Positions | Roles</a></li>
- <li><a href="{{ url_for("main.users") }}">Access User Profiles</a></li>
- {% endif %}{# end of checking for bl_admin #}
- {% if current_user.bl_capture or current_user.bl_admin %}
- <li><a href="{{ url_for("main.capture_record") }}">Capture record</a></li>
- {% endif %}{# end of checking if either bl_capture or bl_admin #}
- <li><a href="{{ url_for("auth.logout") }}">Logout</a></li>
- {% else %}
- <li><a href="{{ url_for("auth.login") }}">Login</a></li>
- {% endif %}
- </ul>
- </nav>
- </div><!-- end of div.header-container -->
- </header>
- <main>
- <div class="background-container"></div>
- <div class="content-container content">
- <div id="div_alert" style="text-align: center;" aria-live="assertive"> </div>
- {% block content %}{% endblock %}
- </div><!-- end of div.content -->
- </main>
- </body>
- </html>
|