work
This commit is contained in:
parent
d2e6b65a12
commit
34f3367a08
13 changed files with 175 additions and 519 deletions
|
@ -1,50 +1,20 @@
|
|||
<html>
|
||||
<head>
|
||||
<title> Neues Berichtsheft </title>
|
||||
</head>
|
||||
<body>
|
||||
<h1> Neues Berichtsheft </h1>
|
||||
<head>
|
||||
<title>Neues Berichtsheft</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Neues Berichtsheft</h1>
|
||||
|
||||
<p> Berichtsheft {{ year }} / {{ week }} </p>
|
||||
<p>{{ user.display_name }}</p>
|
||||
<p>Berichtsheft {{ year }} / {{ week }}</p>
|
||||
<p>Von: {{ start_date|date:"d.m.Y" }} bis: {{ end_date|date:"d.m.Y" }}</p>
|
||||
|
||||
<form method="post">
|
||||
{% for var in definition.vars %}
|
||||
<div>
|
||||
<label for="{{ var.name }}"> {{ var.display_name }}:</label>
|
||||
<input type="text" id="{{ var.name }}" name="{{ var.name }}"
|
||||
|
||||
{% if var.name == "week" %}
|
||||
value = "{{ week }}"
|
||||
{% endif %}
|
||||
<form method="post">
|
||||
{{ form }}
|
||||
|
||||
{% if var.name == "year" %}
|
||||
value = "{{ year }}"
|
||||
{% endif %}
|
||||
<button>Submit</button>
|
||||
|
||||
{% if var.name == "start_date" %}
|
||||
value = "{{ start_date|date:"d.m.Y" }}"
|
||||
{% endif %}
|
||||
|
||||
{% if var.name == "end_date" %}
|
||||
value = "{{ end_date|date:"d.m.Y" }}"
|
||||
{% endif %}
|
||||
|
||||
{% if var.name == "num_doc" %}
|
||||
value = "{{ current_num }}"
|
||||
{% endif %}
|
||||
|
||||
{% if var.name == "name" %}
|
||||
value = "{{ user.display_name }}"
|
||||
{% endif %}
|
||||
|
||||
>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<button> Submit </button>
|
||||
|
||||
{% csrf_token %}
|
||||
{% csrf_token %}
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue