rename to attachment

This commit is contained in:
2022-03-17 16:40:19 +00:00
parent c818e91050
commit 206a71fb6f
12 changed files with 105 additions and 105 deletions

View File

@@ -7,7 +7,7 @@
<h3>
<a href="{% url 'intern:index' %}#{{ active_topic.topic_group.slug }}">{{ active_topic.topic_group.title }}</a>
/ <a href="{% url 'intern:topic' active_topic.slug %}">{{ active_topic.title }}</a>
/ {{ active_docu.title }}
/ {{ attachment.title }}
</h3>
</div>
</div>
@@ -17,14 +17,14 @@
{% if request.user.is_authenticated %}
<div class="grid-x grid-padding-x padding-top-1">
<div class="cell large-3 medium-4 small-12">
<a class="button" href="{% url 'intern:docu-update' active_topic.slug active_docu.slug %}">Beschreibung bearbeiten</a>
<a class="button" href="{% url 'intern:attachment-update' active_topic.slug attachment.slug %}">Beschreibung bearbeiten</a>
</div>
</div>
{% endif %}
{% if active_docu.description %}
{% if attachment.description %}
<div class="padding-top-1 padding-left-1 padding-right-1">
{{ active_docu.description|safe }}
{{ attachment.description|safe }}
<hr>
</div>
{% endif %}
@@ -32,7 +32,7 @@
<div class="grid-x grid-padding-x">
<div class="cell">
Etherpad Dokumente:
<a href="{% url 'intern:etherpad-create' active_topic.slug active_docu.slug %}">
<a href="{% url 'intern:etherpad-create' active_topic.slug attachment.slug %}">
<div class="news-hero-compact">
<div class="news-hero-compact-text">
<p style="margin-bottom: 0rem;">+ neues Etherpad erstellen</p>
@@ -40,21 +40,21 @@
</div>
</a>
{% for document in documents %}
<a href="{{ document.etherpad_key }}">
{% for etherpad in etherpads %}
<a href="{{ etherpad.etherpad_key }}">
<div class="news-hero-compact">
<div class="news-hero-compact-text">
<p style="margin-bottom: 0rem;">{{ document.title }}</p>
<p style="margin-bottom: 0rem;">{{ etherpad.title }}</p>
</div>
<div class="news-hero-compact-right">
<p style="margin-bottom: 0rem;">{{ document.date }}</p>
<p style="margin-bottom: 0rem;">{{ etherpad.date }}</p>
</div>
</div>
</a>
{% endfor %}
Dokumente:
<a href="{% url 'intern:file-create' active_topic.slug active_docu.slug %}">
<a href="{% url 'intern:file-create' active_topic.slug attachment.slug %}">
<div class="news-hero-compact">
<div class="news-hero-compact-text">
<p style="margin-bottom: 0rem;">+ neue Datei hochladen</p>

View File

@@ -9,7 +9,7 @@
</div>
<hr>
<h2>Neue Dokumentation erstellen</h2>
<h2>Neuen Anhang Ordner erstellen</h2>
<div class="grid-x">
<div class="cell">
<form action="" method="post" enctype="multipart/form-data">

View File

@@ -4,15 +4,15 @@
<div class="grid-container">
<div class="grid-x padding-top-1">
<div class="cell large-3 medium-4 small-12">
<a class="button" href="{% url 'intern:docu' topic_slug slug %}">Zurück</a>
<a class="button" href="{% url 'intern:attachment' topic_slug slug %}">Zurück</a>
</div>
<div class="cell large-3 medium-4 small-12">
<a class="button" href="{% url 'admin:intern_documentation_change' documentation.id %}">Dokumentation im Admin bearbeiten</a>
<a class="button" href="{% url 'admin:intern_attachment_change' attachment.id %}">Anhang Ordner im Admin bearbeiten</a>
</div>
</div>
<hr>
<h2>Dokumentation '{{ documentation.title }}' bearbeiten</h2>
<h2>Anhang Ordner '{{ attachment.title }}' bearbeiten</h2>
<div class="grid-x">
<div class="cell">
<form action="" method="post" enctype="multipart/form-data">

View File

@@ -4,7 +4,7 @@
<div class="grid-container">
<div class="grid-x padding-top-1">
<div class="cell large-3 medium-4 small-12">
<a class="button" href="{% url 'intern:docu' topic_slug slug %}">Zurück</a>
<a class="button" href="{% url 'intern:attachment' topic_slug slug %}">Zurück</a>
</div>
</div>
<hr>

View File

@@ -4,7 +4,7 @@
<div class="grid-container">
<div class="grid-x padding-top-1">
<div class="cell large-3 medium-4 small-12">
<a class="button" href="{% url 'intern:docu' topic_slug slug %}">Zurück</a>
<a class="button" href="{% url 'intern:attachment' topic_slug slug %}">Zurück</a>
</div>
</div>
<hr>

View File

@@ -44,12 +44,12 @@
{% endif %}
<div class="grid-x grid-padding-x">
{% for docu in docus %}
{% for attachment in attachments %}
<div class="cell large-2 medium-4 small-6">
<a href="{% url 'intern:docu' active_topic.slug docu.slug %}">
<a href="{% url 'intern:attachment' active_topic.slug attachment.slug %}">
<div class="intern-topic">
<div class="intern-topic-text">
{{ docu.title }}
{{ attachment.title }}
</div>
</div>
</a>
@@ -57,7 +57,7 @@
{% endfor %}
<div class="cell large-2 medium-4 small-6">
<a href="{% url 'intern:docu-create' active_topic.slug %}">
<a href="{% url 'intern:attachment-create' active_topic.slug %}">
<div class="intern-topic">
<div class="intern-topic-text">
+