add fileupload, create views, detail view of task
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-container">
|
||||
<div class="grid-x grid-padding-x">
|
||||
<div class="cell padding-top-1">
|
||||
@@ -22,32 +22,66 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
will man diese Buttons haben?
|
||||
<div class="grid-x padding-top-1 padding-left-1 padding-right-1">
|
||||
<div class="cell large-3 medium-4 small-10">
|
||||
<a class="button" href="{% url 'etherpad-create' active_topic.slug active_docu.slug %}">neues Etherpad erstellen</a>
|
||||
</div>
|
||||
<div class="cell large-3 medium-4 small-10">
|
||||
<a class="button" href="{% url 'file-create' active_topic.slug active_docu.slug %}">neue Datei hochladen</a>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
oder direkt hier es erstellen?
|
||||
<form action="" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
<div class="grid-x grid-padding-x padding-top-1">
|
||||
|
||||
{{ formset.management_form }}
|
||||
{{ form_add_etherpad.management_form }}
|
||||
|
||||
{% for form in formset %}
|
||||
{% for form in form_add_etherpad %}
|
||||
<div class="cell medium-3 large-2 small-10">
|
||||
{{ form }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{{ formset.non_field_errors }}
|
||||
{{ form_add_etherpad.non_field_errors }}
|
||||
|
||||
<div class="cell medium-3 large-2 small-10 align-self-bottom">
|
||||
<input type="submit" class="button" name="btn_input" value="Hinzufügen">
|
||||
<input type="submit" class="button" name="btn_etherpad" value="Etherpad neu erstellen">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
|
||||
<form action="" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
|
||||
<div class="grid-x grid-padding-x padding-top-1">
|
||||
|
||||
{{ form_add_file.management_form }}
|
||||
|
||||
{% for form in form_add_file %}
|
||||
<div class="cell medium-3 large-2 small-10">
|
||||
{{ form }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{{ form_add_file.non_field_errors }}
|
||||
|
||||
<div class="cell medium-3 large-2 small-10 align-self-bottom">
|
||||
<input type="submit" class="button" name="btn_fileupload" value="Dokument hochladen">
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
{% for message in messages %}
|
||||
<p id="messages" style="background-color: red">{{message}}</p>
|
||||
{% endfor %}
|
||||
|
||||
<hr>
|
||||
|
||||
|
||||
<div class="grid-x grid-padding-x">
|
||||
<div class="cell">
|
||||
|
||||
22
fet2020/templates/intern/etherpad_create.html
Normal file
22
fet2020/templates/intern/etherpad_create.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-container">
|
||||
<div class="grid-x padding-top-1 padding-left-1 padding-right-1">
|
||||
<a class="button" href="{% url 'docu' topic_slug slug %}">Zurück</a>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<h2>Neues Etherpad erstellen</h2>
|
||||
<div class="grid-x">
|
||||
<div class="cell">
|
||||
<form action="" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
<input type="submit" class="button" name="btn_input" value="Hinzufügen">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
22
fet2020/templates/intern/file_create.html
Normal file
22
fet2020/templates/intern/file_create.html
Normal file
@@ -0,0 +1,22 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-container">
|
||||
<div class="grid-x padding-top-1 padding-left-1 padding-right-1">
|
||||
<a class="button" href="{% url 'docu' topic_slug slug %}">Zurück</a>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
<h2>Neue Datei hochladen</h2>
|
||||
<div class="grid-x">
|
||||
<div class="cell">
|
||||
<form action="" method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
<input type="submit" class="button" name="btn_input" value="Hinzufügen">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
@@ -1,10 +1,8 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-container">
|
||||
|
||||
{% regroup topic by topic_group as topic_list %}
|
||||
|
||||
{% for topic in topic_list %}
|
||||
<div class="internheader">
|
||||
<h3>{{ topic.grouper.title }}<a class="headerlink" id="{{topic.list.0.topic_group.slug}}" href="#{{topic.list.0.topic_group.slug}}" title="Permalink to {{topic.grouper}}" style="color: lightgrey;"> #</a></h3>
|
||||
@@ -46,4 +44,5 @@
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% extends "layout.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-container">
|
||||
<div class="grid-x grid-padding-x">
|
||||
<div class="cell padding-top-1">
|
||||
@@ -12,13 +12,34 @@
|
||||
</div>
|
||||
|
||||
<div class="intern-hero">
|
||||
{% if active_topic.description %}
|
||||
<div class="padding-top-1 padding-left-1 padding-right-1">
|
||||
<a href="{% url 'admin:intern_topic_change' active_topic.id %}">Beschreibung bearbeiten</a>
|
||||
<hr>
|
||||
{{ active_topic.description|safe }}
|
||||
<hr>
|
||||
<div class="grid-x padding-top-1 padding-left-1 padding-right-1">
|
||||
<div class="cell large-3 medium-4 small-10">
|
||||
<a class="button" href="{% url 'admin:intern_topic_change' active_topic.id %}">Beschreibung bearbeiten</a>
|
||||
</div>
|
||||
<div class="cell large-3 medium-4 small-10">
|
||||
<a class="button" href="{% url 'task-create' %}">neuen Task hinzufügen</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if active_topic.description %}
|
||||
<div class="grid-x padding-top-1 padding-left-1 padding-right-1">
|
||||
{{ active_topic.description|safe }}
|
||||
</div>
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
||||
{% if tasks %}
|
||||
<div class="grid-x grid-padding-x">
|
||||
<div class="cell">offene Tasks:</div>
|
||||
|
||||
{% for task in tasks %}
|
||||
<div class="cell">
|
||||
<a href="{% url 'task-detail' task.id %}">{{ task }}</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
{% endif %}
|
||||
|
||||
<div class="grid-x grid-padding-x">
|
||||
|
||||
Reference in New Issue
Block a user