Commit 90207280 authored by Dennis Appel's avatar Dennis Appel

Update make checklist description optional

parent 9f178118
# Generated by Django 2.1.3 on 2018-12-13 14:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('checklist', '0003_auto_20181212_1859'),
]
operations = [
migrations.AlterField(
model_name='checklistentry',
name='checkListEntryDescription',
field=models.TextField(blank=True, null=True),
),
]
......@@ -18,7 +18,7 @@ class CheckListEntry(models.Model):
'checklist.CheckListCategory', on_delete=models.SET_DEFAULT, default=1)
checkListEntryTitle = models.CharField(max_length=200)
checkListEntrySeverity = models.CharField(max_length=10)
checkListEntryDescription = models.TextField()
checkListEntryDescription = models.TextField(blank=True, null=True)
def __str__(self):
return self.checkListEntryTitle
......
......@@ -46,9 +46,11 @@
<span class="primary label">Gewichtung: {{entry.checkListEntrySeverity}}</span>
&nbsp;
</div>
{% if checkListEntryDescription %}
<p class="vertical-space-small">
{{entry.checkListEntryDescription}}</br>
{{entry.checkListEntryDescription}}
</p>
{% endif %}
<button class="button" onclick="checkListToggle(this, {{entry.id}})">Abschlie&szlig;en</button>
{% if entry.wikiEntry.id %}
<a class="link" href="{% url 'wiki:index' %}#item_{{entry.wikiEntry.id}}"><button class="hollow button">Wiki</button></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment