From 2ae8b3e44f00ce17593e72cb4a7122eb9d9cbeee Mon Sep 17 00:00:00 2001 From: patrick Date: Thu, 24 Jun 2021 13:36:56 +0000 Subject: [PATCH] add button for edit links --- fet2020/templates/blackboard/index.html | 48 +++++++++++-------- .../partials/_show_job_posting.html | 40 ++++++++-------- 2 files changed, 48 insertions(+), 40 deletions(-) diff --git a/fet2020/templates/blackboard/index.html b/fet2020/templates/blackboard/index.html index 4d86c344..b2ceaed0 100644 --- a/fet2020/templates/blackboard/index.html +++ b/fet2020/templates/blackboard/index.html @@ -1,38 +1,44 @@ {% extends 'layout.html' %} - {% block content %}
+ {% if request.user.is_authenticated %} +
+ + + {% if bb_info %} + + {% endif %} + + {% if bb_empty %} + + {% endif %} +
+
+ {% endif %} +

Blackboard

{% if bb_info %} {{ bb_info.content|safe }}
- - {% if request.user.is_authenticated %} - oberen Blackboard-Text bearbeiten -
- {% endif %} - {% endif %} - - {% if bb_empty and not job_postings %} - {{ bb_empty.content|safe }} - - {% if request.user.is_authenticated %} -
- oberen Blackboard-Text bearbeiten -
- {% endif %} - {% endif %} - - {% if request.user.is_authenticated %} - neue Stellenausschreibung hinzufügen -
{% endif %}
{% for job in job_postings %} {% include 'blackboard/partials/_show_job_posting.html' %} + {% empty %} + {% if bb_empty %} +
+ {{ bb_empty.content|safe }} +
+ {% endif %} {% endfor %}
diff --git a/fet2020/templates/blackboard/partials/_show_job_posting.html b/fet2020/templates/blackboard/partials/_show_job_posting.html index 56907289..79dc330e 100644 --- a/fet2020/templates/blackboard/partials/_show_job_posting.html +++ b/fet2020/templates/blackboard/partials/_show_job_posting.html @@ -1,20 +1,22 @@ -
-

{{job.company_name}}

-

{{job.job_name}}
- {% if job.number_of_hours == 1 %} - Mindestgehalt: {{job.salary}}€ Stundenlohn

- {% else %} - monatliches Mindestgehalt:
- {{job.salary}}€ für {{job.number_of_hours}}h

- {% endif %} - {# only thumb and name of member #} - - -