Commit f119d8f1 authored by Moritz's avatar Moritz
Browse files

Add first navigation and translate HTML template

parent 2f05bb55
{% load i18n %}
{% load bootstrap4 %}
{% load static %}
<!DOCTYPE html>
<html>
<head>
{# Load CSS and JavaScript #}
{% bootstrap_css %}
{% bootstrap_javascript jquery='full' %}
<link href="{% static 'facility/css/dashboard.css' %}" rel="stylesheet">
<head>
{# Load CSS and JavaScript #}
{% bootstrap_css %}
{% bootstrap_javascript jquery='full' %}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.1/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<link href="{% static 'facility/css/dashboard.css' %}" rel="stylesheet">
<meta charset="UTF-8">
<meta charset="UTF-8">
<title>{% block 'title' %}{% endblock %}</title>
</head>
<body>
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">Company name</a>
<input class="form-control form-control-dark w-100" type="text"
placeholder="Search" aria-label="Search">
<ul class="navbar-nav px-3">
<li class="nav-item text-nowrap">
<a class="nav-link" href="#">Sign out</a>
</li>
</ul>
</nav>
<title>{% block 'title' %}{% endblock %}</title>
</head>
<body>
<nav class="navbar navbar-dark fixed-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-sm-3 col-md-2 mr-0" href="#">Company name</a>
<input class="form-control form-control-dark w-100" type="text"
placeholder="{% trans 'Search' %}" aria-label="Search">
<ul class="navbar-nav px-3">
<li class="nav-item text-nowrap">
<a class="nav-link" href="#"><i class="fas fa-sign-out-alt"></i> {% trans "Sign out" %}</a>
</li>
</ul>
</nav>
<div class="container-fluid">
<div class="row">
<nav class="col-md-2 d-none d-md-block bg-light sidebar">
<div class="sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" href="#">
<span data-feather="home"></span>
Dashboard <span class="sr-only">(current)</span>
</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
{% bootstrap_messages %}
</body>
<div class="container-fluid">
<div class="row">
<nav class="col-md-2 d-none d-md-block bg-light sidebar">
<div class="sidebar-sticky">
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link active" href="#">
<i class="fas fa-chart-line"></i>
{% trans "Dashboard" %}
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<i class="fas fa-clipboard-list"></i>
{% trans "Checklists" %}
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<i class="fas fa-map-marker-alt"></i>
{% trans "Locations" %}
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">
<i class="fas fa-dolly"></i>
{% trans "Assets" %}
</a>
</li>
</ul>
</div>
</nav>
</div>
</div>
{% bootstrap_messages %}
</body>
</html>
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-02-03 13:28+0100\n"
"POT-Creation-Date: 2019-02-04 21:52+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Moritz Rosenthal <moritz@mekelburger.org>\n"
"Language: de\n"
......@@ -108,10 +108,34 @@ msgstr "Gerät"
msgid "equipments"
msgstr "Gefäte"
#: pyinventory/settings.py:121
#: facility/templates/facility/index.html:23
msgid "Search"
msgstr "Suchen"
#: facility/templates/facility/index.html:26
msgid "Sign out"
msgstr "Abmelden"
#: facility/templates/facility/index.html:39
msgid "Dashboard"
msgstr "Dashboard"
#: facility/templates/facility/index.html:45
msgid "Checklists"
msgstr "Prüflisten"
#: facility/templates/facility/index.html:51
msgid "Locations"
msgstr "Orte"
#: facility/templates/facility/index.html:57
msgid "Assets"
msgstr "Gegenstände"
#: pyinventory/settings.py:123
msgid "German"
msgstr "Deutsch"
#: pyinventory/settings.py:122
#: pyinventory/settings.py:124
msgid "English"
msgstr "Englisch"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment