├── static
└── anketa.css
├── .gitignore
├── README.md
├── LICENSE
├── templates
├── index.html
└── base.html
└── anketa.py
/static/anketa.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 2rem;
3 | padding-bottom: 2rem;
4 | }
5 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | __pycache__/
2 | build/
3 | dist/
4 | *.egg-info/
5 | .cache
6 | *.log
7 | venv/
8 | *.db
9 | *.journal
10 | *.db-journal
11 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | db-workshop-web-app
2 | ===================
3 |
4 | Simple website made using [Flask](http://flask.pocoo.org/), [Bootstrap](https://v4-alpha.getbootstrap.com/getting-started/introduction/) and [SQLite3](https://docs.python.org/3/library/sqlite3.html).
5 |
6 |
7 | Screenshot
8 | ----------
9 |
10 | 
11 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017 Petr Messner
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/templates/index.html:
--------------------------------------------------------------------------------
1 | {% extends "base.html" %}
2 | {% block content %}
3 |
4 |
Anketa
5 |
6 |
O čem by měl být některý příští PyWorking?
7 |
8 |
12 |
13 |
14 |
15 | {% for suggestion in suggestions %}
16 |
17 |
18 | {{ suggestion.vote_count }}
19 |
20 |
21 | {# tlačítka pro hlasování - kliknutí odešle form #}
22 |
35 |
36 |
{{ suggestion.title }}
37 |
38 | {% endfor %}
39 |
40 |
41 |
42 | {% endblock %}
43 |
--------------------------------------------------------------------------------
/templates/base.html:
--------------------------------------------------------------------------------
1 | {#
2 |
3 | Skoro všechno v tomto souboru pochází z Bootstrap Starter template:
4 |
5 | https://v4-alpha.getbootstrap.com/getting-started/introduction/#starter-template
6 |
7 | -#}
8 |
9 |
10 |
11 |
12 |
13 |
14 | {# font awesome pro ikonky #}
15 |
16 | {# aplikační styly #}
17 |
18 | Anketa
19 |
20 |
21 |