-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Envelope labels #173
Merged
Merged
Envelope labels #173
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
64ffac5
Add possibility to pring labels for envelopes
frenzymadness 8742586
Add some basic tests for pages requiring login
frenzymadness fec7396
Add tests for envelope labels
frenzymadness c1036b8
We have more than one form on award_prep page now
frenzymadness File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<!-- | ||
|
||
This page is prepared for 16 labels 105×37 mm each. | ||
For example: https://obalyostrava.cz/samolepici-etikety/428-etikety-a4-105x37mm-100stranek.html | ||
|
||
--> | ||
<!DOCTYPE html> | ||
<html lang="cs"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Štítky na obálky</title> | ||
<!-- <link rel="stylesheet" href="{{ url_for('static', filename='css/award_document.css') }}"> --> | ||
<style> | ||
body { | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
padding: 0; | ||
background-color: grey; /* #FAFAFA */ | ||
font-family: Arial, Helvetica, sans-serif; | ||
font-size: 16pt; | ||
} | ||
|
||
.page { | ||
width: 210mm; | ||
height: 297mm; | ||
margin: 10mm auto; | ||
background: white; | ||
} | ||
|
||
.label { | ||
width: 105mm; | ||
height: 37mm; | ||
float: left; | ||
} | ||
|
||
p { | ||
margin: 4mm auto auto 5mm; | ||
} | ||
|
||
@page { | ||
size: A4; | ||
margin: 0; | ||
} | ||
|
||
@media print { | ||
html, body { | ||
width: 210mm; | ||
height: 297mm; | ||
} | ||
.page { | ||
margin: 0; | ||
border: initial; | ||
border-radius: initial; | ||
width: initial; | ||
min-height: initial; | ||
box-shadow: initial; | ||
background: initial; | ||
page-break-after: always; | ||
} | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
{% for page in pages %} | ||
<div class="page"> | ||
{% for donor in page %} | ||
<div class="label"> | ||
<p>{{ donor.first_name}} {{ donor.last_name }}</p> | ||
<p>{{ donor.address }}</p> | ||
<p>{{ donor.postal_code }} {{donor.city}}</p> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
{% endfor %} | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this manually and the propper message does not seem to show itself. I see only an info message in English.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works if you have disabled javascript. If you use JS, the browser doesn't allow you to send the request to the server.