forked from DHBW-FN-TIT20/essensfindung
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
90 additions
and
3 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# Static | ||
Here you add staic files for the frontend. | ||
Here you add staic files for the frontend. | ||
|
||
# Impressum / Legal Notice | ||
The legal.json file found at `/static/text/legal.json` should contain information about the hosting entity. | ||
Each property should contains the necessary information with the following format: | ||
- Full Name (or company name) | ||
- Address Line 1 (street and house number) | ||
- Address Line 2 (zip code and city) | ||
- Phone number (international format) | ||
- Email (of the contact person) |
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,7 @@ | ||
{ | ||
"full_name": "Max Mustermann", | ||
"address_1": "Straße Hausnummer", | ||
"address_2": "PLZ Ort", | ||
"phone_number": "+49 (0) 123 456789", | ||
"email": "[email protected]" | ||
} |
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,25 @@ | ||
{% extends "shared/layout_singleform.html" %} | ||
|
||
{% block content %} | ||
|
||
<div class="row justify-content-center"> | ||
<div class="col-10 limit-width"> | ||
<h2 class="display-1 fs-4 mb-1">Impressum</h2> | ||
<hr class="mt-1"> | ||
</div> | ||
</div> | ||
|
||
<div class="row justify-content-center"> | ||
<div class="col-10 limit-width"> | ||
<h2>Angaben gemäß § 5 TMG</h2> | ||
<p class="mb-0">{{entity.full_name}}</p> | ||
<p class="mb-0">{{entity.address_1}}</p> | ||
<p>{{entity.address_2}}</p> | ||
|
||
<h2>Kontakt</h2> | ||
<p class="mb-0">Telefon: {{entity.phone_number}}</p> | ||
<p>Email: {{entity.email}}</p> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} |
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,16 @@ | ||
"""Reads legal information from a json file and returns an object""" | ||
|
||
import json | ||
from pathlib import Path | ||
|
||
def read_legal(path: Path = Path("static/text/legal.json")) -> dict: | ||
"""Reads information from the legal. file and returns a dict | ||
Args: | ||
path (Path): path to the file to be read. Defaults to "static/text/legal.json" | ||
Returns: | ||
dict: dict containing the json content | ||
""" | ||
with path.open(encoding="utf-8", mode="r") as file: | ||
return json.load(file) |
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,5 @@ | ||
legal | ||
===== | ||
|
||
.. automodule:: tools.legal | ||
:members: |
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