add change button, only useable if login
This commit is contained in:
@@ -2,15 +2,27 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-container">
|
||||
<div class="grid-container padding-top-1">
|
||||
<h1>Blackboard</h1>
|
||||
|
||||
{% if bb_info %}
|
||||
{{ bb_info.content|safe }}
|
||||
|
||||
{% if request.user.is_authenticated %}
|
||||
<hr>
|
||||
<a href="{% url 'admin:core_customflatpage_change' bb_info.id %}">oberen Blackboard-Text bearbeiten</a>
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% if bb_empty and not job_postings %}
|
||||
{{ bb_empty.content|safe }}
|
||||
|
||||
{% if request.user.is_authenticated %}
|
||||
<hr>
|
||||
<a href="{% url 'admin:core_customflatpage_change' bb_empty.id %}">oberen Blackboard-Text bearbeiten</a>
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
<div class="grid-x grid-margin-x">
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-container">
|
||||
<div class="grid-container padding-top-1">
|
||||
{% if request.user.is_authenticated %}
|
||||
<a href="{% url 'admin:core_customflatpage_change' flatpage.id %}">Diese Seite bearbeiten</a>
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
{{ flatpage.content }}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -56,6 +56,12 @@
|
||||
<div class="cell padding-top-1 padding-left-1 padding-right-1" style="background-color: white; text-align: justify;">
|
||||
{% if fs_info %}
|
||||
{{ fs_info.content|safe }}
|
||||
|
||||
{% if request.user.is_authenticated %}
|
||||
<hr>
|
||||
<a href="{% url 'admin:core_customflatpage_change' fs_info.id %}">Fachschaft-Text bearbeiten</a>
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -105,11 +105,11 @@
|
||||
{% endif %}
|
||||
|
||||
{% if post.post_type == 'N' %}
|
||||
<a href="{% url 'admin:posts_news_change' post.id %}">Bearbeiten</a>
|
||||
<a href="{% url 'admin:posts_news_change' post.id %}">Post bearbeiten</a>
|
||||
{% elif post.post_type == 'E' %}
|
||||
<a href="{% url 'admin:posts_event_change' post.id %}">Bearbeiten</a>
|
||||
<a href="{% url 'admin:posts_event_change' post.id %}">Event bearbeiten</a>
|
||||
{% elif post.post_type == 'F' %}
|
||||
<a href="{% url 'admin:posts_fetmeeting_change' post.id %}">Bearbeiten</a>
|
||||
<a href="{% url 'admin:posts_fetmeeting_change' post.id %}">FET Sitzung bearbeiten</a>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user