Skip to content
Snippets Groups Projects
Commit 3a9359c8 authored by jan.bednarik's avatar jan.bednarik
Browse files

Rename 'schuzky' to 'kontakty'.

parent bc509452
Branches
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ class ReportForm(ErrorClassMixin, forms.Form):
widget=forms.TextInput(attrs={'class': INPUT_CLASS}),
)
date = forms.DateField(
label='datum schůzky',
label='datum kontaktu',
initial=date.today,
widget=forms.DateInput(attrs={'class': INPUT_CLASS + ' col-md-2'}),
)
......
......@@ -30,7 +30,7 @@
{% endif %}
</div>
{% if viewer.isAuthor %}
<div class="my-3"><a href="{% url 'author' id=viewer.id %}">moje schůzky</a></div>
<div class="my-3"><a href="{% url 'author' id=viewer.id %}">moje kontakty</a></div>
{% endif %}
</div>
......
......@@ -13,7 +13,7 @@
</div>
</div>
<div class="d-flex pt-1">
<div class="px-3 text-right" style="min-width: 14em"><small class="text-muted">přidal schůzek:</small></div>
<div class="px-3 text-right" style="min-width: 14em"><small class="text-muted">přidal kontaktů:</small></div>
<div>{{ total_reports }}</div>
</div>
{% if author.extra.login %}
......@@ -27,7 +27,7 @@
<div class="my-4">
<div class="d-flex align-items-end mb-4">
<h5 class="mb-0 mt-1">Schůzky</h5>
<h5 class="mb-0 mt-1">Kontakty</h5>
{% include "core/pagination_snippet.html" %}
</div>
......
......@@ -14,7 +14,7 @@
<tr>
<th scope="col">jméno</th>
<th scope="col">příjmení</th>
<th scope="col">přidal schůzek</th>
<th scope="col">přidal kontaktů</th>
</tr>
</thead>
<tbody>
......
......@@ -3,14 +3,14 @@
{% block content %}
{% if saved_message %}
<div class="alert alert-success text-center mb-4" role="alert">Koncept schůzky byl uložen.</div>
<div class="alert alert-success text-center mb-4" role="alert">Koncept kontaktu byl uložen.</div>
{% endif %}
<div class="mb-4">
{% if report.isDraft %}
<h5 class="mb-3">Editace konceptu schůzky</h5>
<h5 class="mb-3">Editace konceptu kontaktu</h5>
{% else %}
<h5 class="mb-3">Editace <span class="text-danger">publikované</span> schůzky</h5>
<h5 class="mb-3">Editace <span class="text-danger">publikovaného</span> kontaktu</h5>
{% endif %}
<form class="form" action="{% url 'edit-report' id=report.id %}" method="post">
{% csrf_token %}
......
......@@ -4,7 +4,7 @@
{% if drafts %}
<div class="mb-4">
<h5 class="mb-3">Vaše koncepty schůzek</h5>
<h5 class="mb-3">Koncepty kontaktů</h5>
<ul>
{% for draft in drafts %}
<li><a href="{% url 'edit-report' id=draft.id %}">{{ draft.date|date:"DATE_FORMAT" }} - {{ draft.title }} - {{ draft.body|truncatewords:5 }}</a></li>
......@@ -14,7 +14,7 @@
{% endif %}
<div class="mb-4">
<h5 class="mb-3">Nová schůzka</h5>
<h5 class="mb-3">Nový kontakt</h5>
<form class="form" action="{% url 'new-report' %}" method="post">
{% csrf_token %}
{% include "core/form_field_snippet.html" with field=form.date %}
......
......@@ -3,7 +3,7 @@
{% block content %}
{% if saved_message %}
<div class="alert alert-success text-center mb-4" role="alert">Schůzka byla publikována.</div>
<div class="alert alert-success text-center mb-4" role="alert">Kontakt byl publikován.</div>
{% endif %}
{% include "core/report_snippet.html" %}
......
<!doctype html>
<html lang="en">
<head>
<title>Registr lobbistických schůzek (beta)</title>
<title>Registr lobbistických kontaktů</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
......@@ -29,7 +29,7 @@
<nav class="navbar navbar-dark navbar-expand-lg bg-dark mb-0"> {# mb-4 až tu nebude alert #}
<div class="container px-3">
<a class="navbar-brand" href="/">Registr lobbistických schůzek <sup class="text-muted">beta</sup></a>
<a class="navbar-brand" href="/">Registr lobbistických kontaktů</a>
<form class="form-inline" action="{% url 'index' %}" method="get">
<input class="form-control form-control-sm" type="search" name="q" id="id_q" value="{{ form.q.value|default_if_none:"" }}">
......@@ -56,14 +56,14 @@
<div class="container">
<ul class="nav">
<li class="nav-item">
<a class="nav-link py-1" href="{% url 'index' %}">schůzky</a>
<a class="nav-link py-1" href="{% url 'index' %}">kontakty</a>
</li>
<li class="nav-item">
<a class="nav-link py-1" href="{% url 'authors' %}">autoři</a>
</li>
{% if viewer %}
<li class="nav-item">
<a class="nav-link py-1" href="{% url 'new-report' %}">přidat schůzku</a>
<a class="nav-link py-1" href="{% url 'new-report' %}">přidat kontakt</a>
</li>
{% endif %}
</ul>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment