smrut.jpg
This commit is contained in:
69
templates/base.html
Normal file
69
templates/base.html
Normal file
@@ -0,0 +1,69 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>kurjerzy.pl labelifier</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
|
||||
<!-- apage satanas -->
|
||||
<meta property="og:image" content="https://static.hackerspace.pl/img/syrenka-1200.png">
|
||||
<meta name="twitter:image" content="https://static.hackerspace.pl/img/syrenka-1200.png">
|
||||
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/bootstrap.css') }}" media="screen">
|
||||
<style>
|
||||
body {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
h3 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
footer {
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
h3.page-header {
|
||||
margin-top: 10px;
|
||||
}
|
||||
.input-group-btn .btn {
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
.placeholder {
|
||||
text-align: center;
|
||||
opacity: 0.5;
|
||||
font-style: italic;
|
||||
}
|
||||
.vend-item code {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.control-label-required::after {
|
||||
content: ' *';
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% for category, message in messages %}
|
||||
<div class="alert alert-{{category}}">{{ message }}</div>
|
||||
{% endfor %}
|
||||
{% endwith %}
|
||||
|
||||
{% block content %}{% endblock %}
|
||||
|
||||
<div class="row">
|
||||
<hr>
|
||||
<footer class="row text-center text-muted"><big>made by volunteers at <a href="https://hackerspace.pl/">Warsaw Hackerspace</a></big> & also wash your lovely hands</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="{{ url_for('static', filename='js/jquery-1.10.2.min.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/bootstrap.min.js') }}"></script>
|
||||
{% block tail_js %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
93
templates/label.html
Normal file
93
templates/label.html
Normal file
@@ -0,0 +1,93 @@
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<style>
|
||||
{% block css %}
|
||||
@page {
|
||||
margin: 0cm;
|
||||
size: 4in 6in;
|
||||
}
|
||||
|
||||
html, body {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: "Noto Mono", monospace;
|
||||
font-size: 16pt;
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.container {
|
||||
background: white;
|
||||
overflow: hidden;
|
||||
transform-origin: top left;
|
||||
transform: rotate(90deg) translate(0, -100%);
|
||||
/* transform: rotate(-90deg) translate(-100%, 0); */
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
width: 6in;
|
||||
height: 4in;
|
||||
}
|
||||
|
||||
.line {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
width: 14.5cm;
|
||||
padding: 0.5cm;
|
||||
}
|
||||
|
||||
.mark {
|
||||
border: 2pt dashed #000;
|
||||
}
|
||||
|
||||
.idline {
|
||||
font-size: 35pt;
|
||||
}
|
||||
|
||||
.idline small {
|
||||
color: #333;
|
||||
display: block;
|
||||
font-size: 9pt;
|
||||
}
|
||||
|
||||
.address {
|
||||
padding-top: 10pt;
|
||||
color: #555;
|
||||
}
|
||||
|
||||
.idline small.labelid {
|
||||
font-size: 14pt;
|
||||
display: inline;
|
||||
font-weight: bold;
|
||||
}
|
||||
{% endblock %}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
{% block content %}
|
||||
{% for model in models %}
|
||||
{% block model_labels scoped %}
|
||||
{% for label_id in range(model.label_count) %}
|
||||
<div class="container">
|
||||
<div class="line idline">
|
||||
<small>{{ model.handling_orga_info.name }} / <u>https://covid.hackerspace.pl</u> / <b>{{ model.status.name }}</b></small>
|
||||
{{ model.faceshield_full_delivered }} <b>#{{ model.id }}</b>{% if model.label_count > 1 %} <small class="labelid">({{ label_id + 1 }}/{{ model.label_count }})</small>{% endif %}
|
||||
</div>
|
||||
<div class="line mark">
|
||||
{{ model.entity_info }}<br />
|
||||
<div class="address">
|
||||
{{ model.shipping_street }}<br />{{ model.shipping_postalcode }} {{ model.shipping_city }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="line">
|
||||
{{ model.full_name }} {{ model.phone_number }}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
13
templates/login.html
Normal file
13
templates/login.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="row">
|
||||
<div class="col-md-4 col-md-offset-4">
|
||||
<form method="POST" action="{{ url_for('login') }}" class="form-horizontal">
|
||||
<div class="form-group"><input name="email" placeholder="email" class="form-control input-lg" /></div>
|
||||
<div class="form-group"><input name="password" type="password" placeholder="hasło" class="form-control input-lg" /></div>
|
||||
<button class="btn btn-lg btn-primary btn-lg btn-block" type="submit">Zaloguj się</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
26
templates/shipping_label.html
Normal file
26
templates/shipping_label.html
Normal file
@@ -0,0 +1,26 @@
|
||||
{% extends "label.html" %}
|
||||
{% block css %}{{ super() }}
|
||||
|
||||
.shipping {
|
||||
flex-direction: row;
|
||||
align-items: initial;
|
||||
}
|
||||
.shipping .inner {
|
||||
width: 6in;
|
||||
height: 4in;
|
||||
overflow: hidden;
|
||||
}
|
||||
.shipping .inner img {
|
||||
height: 100%;
|
||||
}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
{% for shipment in shipments %}
|
||||
<div class="container shipping">
|
||||
<div class="inner">
|
||||
<img src="{{ shipment.labelSource }}" alt="label {{ shipment.id }}" />
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user