Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
_base.html 15.95 KiB
{% load static %}<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>{% block title %}Scheduling system{% endblock title %}</title>
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

  {% block styles %}
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="{% static 'AdminLTE/css/bootstrap.min.css' %}">

  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

  <!-- Ionicons -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css">

  <!-- Theme style -->
  <link rel="stylesheet" href="{% static 'AdminLTE/css/AdminLTE.min.css' %}">

  <link rel="stylesheet" href="{% static 'AdminLTE/css/skins/skin-green.min.css' %}">

  <style>
  .flag-icon {
    height: 20px;
  }
  </style>

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
	<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  {% endblock styles %}
</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-green sidebar-mini">
<div class="wrapper">

  <header class="main-header">

    <!-- Logo -->
    <a href="{% url 'web.views.index' %}" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><i class="fa fa-calendar-check-o fa-2x"></i></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>Smart</b>Scheduling <small>alpha</small></span>
    </a>

    <!-- Header Navbar -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <!-- Navbar Right Menu -->
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Messages: style can be found in dropdown.less-->
          <li class="dropdown messages-menu" style="display: none">
            <!-- Menu toggle button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-envelope-o"></i>
              <span class="label label-success">
				  0
              </span>
            </a>
            <ul class="dropdown-menu">
              <li class="header">
				  You have 0 letters to send<hr />
          (Not implemented yet)
			  </li>
			  <li>
			  </li>
			{% comment "TODO: Implement letter notification" %}
              <li>
                <!-- inner menu: contains the messages -->
                <ul class="menu">
                  <li><!-- start message -->
                    <a href="#">
                      <div class="pull-left">
                        <!-- User Image -->
                        <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
                      </div>
                      <!-- Message title and timestamp -->
                      <h4>
                        Support Team
                        <small><i class="fa fa-clock-o"></i> 5 mins</small>
                      </h4>
                      <!-- The message -->
                      <p>Why not buy a new awesome theme?</p>
                    </a>
                  </li>
                  <!-- end message -->
                </ul>
                <!-- /.menu -->
              </li>
            {% endcomment %}
              <li class="footer"><a href="#">See All</a></li>
            </ul>
          </li>
          <!-- /.messages-menu -->

          <!-- Notifications Menu -->
          {% if notifications.0 > 0 %}
          <li class="dropdown notifications-menu" >
            <!-- Menu toggle button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-bell-o"></i>
              <span class="label label-warning"> {{notifications.0}}</span>
            </a>
            <ul class="dropdown-menu">
              <li class="header"> You have {{notifications.0}} notification(s): </li>
              <li>
                <!-- Inner Menu: contains the notifications -->
                <ul class="menu">
                  {% for notification in notifications.1 %}
                    {% if notification.count > 0 %}
                      <li><!-- start notification -->
                        <a href="{% url notification.type %}">
                          <i class="fa {{notification.style}}"></i> {{ notification.title }}: {{ notification.count }}
                        </a>
                      </li>
                    {% endif %}
                  {% endfor %}
                  <!-- end notification -->
                </ul>
              </li>
            </ul>
          </li>
          {% endif %}
          <!-- User Account Menu -->
          <li class="dropdown user user-menu">
            <!-- Menu Toggle Button -->
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              {% comment "TODO: Add photo/avatar/initials" %}
              <!-- The user image in the navbar-->
              <img src="dist/img/user2-160x160.jpg" class="user-image" alt="User Image">
              {% endcomment %}
              <span>{{ person }}</span>&nbsp;
              <i class="fa fa-gears"></i>
            </a>
            <ul class="dropdown-menu">
              <li class="user-header">
				  <i class="fa fa-user-circle-o fa-5x white" style="color: rgba(255,255,255,0.8)"></i>
				{% comment "TODO: Add user's photo %}
                <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
				{% endcomment %}
                <p>
                  {{ person }}
                  <small>{{ role }}</small>
                </p>
              </li>
              {% comment "Uncomment if needed %}
              <!-- Menu Body -->
              <li class="user-body">
                <div class="row">
                  <div class="col-xs-4 text-center">
                    <a href="#">Followers</a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="#">Sales</a>
                  </div>
                  <div class="col-xs-4 text-center">
                    <a href="#">Friends</a>
                  </div>
                </div>
                <!-- /.row -->
              {% endcomment %}
              </li>
              <!-- Menu Footer-->
              <li class="user-footer">
                <!--<div class="pull-left">
                  <a href="#" class="btn btn-default btn-flat"><i class="fa fa-user"></i> Profile</a>
                </div>-->
                <div class="pull-right">
                  <a href="{% url 'web.views.logout' %}" class="btn btn-default btn-flat"><i class="fa fa-sign-out"></i> Sign out</a>
                </div>
              </li>
            </ul>
          </li>
          {% comment "Uncomment if needed" %}
          <!-- Control Sidebar Toggle Button -->
          <li>
            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
          </li>
          {% endcomment %}
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">

	  {% comment "Uncomment if needed" %}
      <!-- Sidebar user panel (optional) -->
      <div class="user-panel">
        <div class="pull-left image">
          <!--
			  <img src="dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
		  -->
		  <i class="fa fa-user-circle-o fa-3x white" style="color: rgba(255,255,255,0.8)"></i>
        </div>
        <div class="pull-left info">
          <p>Prenom Nom</p>
          <!-- Status -->
          <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
        </div>
      </div>
      {% endcomment %}

		{% comment "Uncomment if necessary' %}
      <!-- search form (Optional) -->
      <form action="#" method="get" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="q" class="form-control" placeholder="Search...">
              <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form>
      <!-- /.search form -->
      {% endcomment %}

      <!-- Sidebar Menu -->
      <ul class="sidebar-menu">
        <li class="header">Pages</li>

        <li data-desc="subjects">
			<a href="{% url 'web.views.subjects' %}">
				<i class="fa fa-users"></i>
				<span>Subjects</span>
			</a>
		</li>

    <li data-desc="visits">
			<a href="{% url 'web.views.visits' %}">
				<i class="fa fa-id-card-o"></i>
				<span>Visits</span>
			</a>
		</li>

		<li data-desc="appointments">
			<a href="{% url 'web.views.appointments' %}">
				<i class="fa fa-calendar"></i>
				<span>Appointments</span>
			</a>
		</li>

		<li data-desc="workers">
			<a href="{% url 'web.views.doctors' %}">
				<i class="fa fa-user-md"></i>
				<span>Workers</span>
			</a>
		</li>

		<li data-desc="equipment_and_rooms">
			<a href="{% url 'web.views.equipment_and_rooms' %}">
				<i class="fa fa-building-o"></i>
				<span>Equipment&amp;rooms</span>
			</a>
		</li>

    <li data-desc="mail_templates">
			<a href="{% url 'web.views.mail_templates' %}">
				<i class="fa fa-envelope-o"></i>
				<span>Mail templates</span>
			</a>
		</li>

    <li data-desc="export">
			<a href="{% url 'web.views.export' %}">
				<i class="fa fa-file-excel-o"></i>
				<span>Export</span>
			</a>
		</li>

		{% comment "Multi-level" %}
        <li class="treeview">
          <a href="#"><i class="fa fa-link"></i> <span>Multilevel</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="#">Link in level 2</a></li>
            <li><a href="#">Link in level 2</a></li>
          </ul>
        </li>
        {% endcomment %}
      </ul>
      <!-- /.sidebar-menu -->
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
		  <h1>
			{% block page_header %}{% endblock page_header %}
			<small>{% block page_description %}{% endblock page_description %}</small>
		  </h1>

		  <ol class="breadcrumb">
		    {% block breadcrumb %}
			  <li><a href="#"><i class="fa fa-dashboard"></i> Dashboard</a></li>
			  <li class="active">Index</li>
			{% endblock breadcrumb %}
		  </ol>
    </section>


    <!-- Main content -->
    <section class="content">
	{% block maincontent %}
	{% endblock maincontent %}
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <!-- Main Footer -->
  <footer class="main-footer">
	{% block footer %}
		<!-- To the right -->
		<div class="pull-right hidden-xs">
		  Version: <strong>preview 0.2.1</strong> (9 Mar 2017)
		</div>

		<!-- Default to the left -->
		2017, Parkinson Research Clinic <!--(eg. <small>
		<strong>Copyright &copy; 2016 <a href="#">Company</a>.</strong> All rights reserved.
  </small>)-->
	{% endblock footer %}
  </footer>

	{% comment "Uncomment if sidebar is needed" %}
  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
      <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
      <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <!-- Home tab content -->
      <div class="tab-pane active" id="control-sidebar-home-tab">
        <h3 class="control-sidebar-heading">Recent Activity</h3>
        <ul class="control-sidebar-menu">
          <li>
            <a href="javascript::;">
              <i class="menu-icon fa fa-birthday-cake bg-red"></i>

              <div class="menu-info">
                <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>

                <p>Will be 23 on April 24th</p>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->

        <h3 class="control-sidebar-heading">Tasks Progress</h3>
        <ul class="control-sidebar-menu">
          <li>
            <a href="javascript::;">
              <h4 class="control-sidebar-subheading">
                Custom Template Design
                <span class="pull-right-container">
                  <span class="label label-danger pull-right">70%</span>
                </span>
              </h4>

              <div class="progress progress-xxs">
                <div class="progress-bar progress-bar-danger" style="width: 70%"></div>
              </div>
            </a>
          </li>
        </ul>
        <!-- /.control-sidebar-menu -->

      </div>
      <!-- /.tab-pane -->
      <!-- Stats tab content -->
      <div class="tab-pane" id="control-sidebar-stats-tab">Stats Tab Content</div>
      <!-- /.tab-pane -->
      <!-- Settings tab content -->
      <div class="tab-pane" id="control-sidebar-settings-tab">
        <form method="post">
          <h3 class="control-sidebar-heading">General Settings</h3>
          <div class="form-group">
            <label class="control-sidebar-subheading">
              Report panel usage
              <input type="checkbox" class="pull-right" checked>
            </label>

            <p>
              Some information about this general settings option
            </p>
          </div>
          <!-- /.form-group -->
        </form>
      </div>
      <!-- /.tab-pane -->
    </div>
  </aside>
  <!-- /.control-sidebar -->

  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
  {% endcomment %}
</div>
<!-- ./wrapper -->


  {% block scripts %}
	<!-- jQuery 2.2.3 -->
	<script src="{% static 'AdminLTE/plugins/jQuery/jquery-2.2.3.min.js' %}"></script>
	<!-- Bootstrap 3.3.6 -->
	<script src="{% static 'AdminLTE/js/bootstrap.min.js' %}"></script>
	<!-- AdminLTE Template Helpers (for example- left side bar) -->
	<script src="{% static 'AdminLTE/js/app.min.js' %}"></script>

	<script>
	var activate = function(page_to_activate) {
		var $e = $(".sidebar-menu > li[data-desc='" + page_to_activate + "']");
		$e.addClass("active");
	};

	activate({% block ui_active_tab %}{% endblock ui_active_tab %});

	</script>

	{% comment "TODO: Check, and add if works %}
	<!-- Optionally, you can add Slimscroll and FastClick plugins.
     Both of these plugins are recommended to enhance the
     user experience. Slimscroll is required when using the
     fixed layout. -->
     {% endcomment %}
  {% endblock scripts %}
</body>
</html>