Add interdisciplinary instrument

This commit is contained in:
Ramon Wenger 2020-04-08 10:50:06 +02:00
parent 1a8e28c114
commit dc66293684
6 changed files with 52 additions and 1 deletions

View File

@ -57,7 +57,9 @@
const instruments = {
base_communication: 'Sprache & Kommunikation',
base_society: 'Gesellschaft'
base_society: 'Gesellschaft',
base_interdisciplinary: 'Überfachliches Instrument',
};
export default {
@ -291,6 +293,14 @@
}
}
&--base_interdisciplinary {
@include content-box($color-accent-4-list);
.content-block__instrument-label {
color: $color-accent-4-dark;
}
}
/deep/ p {
line-height: 1.5;
margin-bottom: 1em;

View File

@ -21,6 +21,7 @@ $color-accent-5: #DBE6EC;
$color-accent-1-list: $color-accent-1 $color-accent-1-light $color-accent-1-dark;
$color-accent-2-list: $color-accent-2 $color-accent-2-light $color-accent-2-dark;
$color-accent-4-list: $color-accent-4 $color-accent-4-light $color-accent-4-dark;
/* brand */
$color-brand-dark: #138E72;

View File

@ -0,0 +1,18 @@
# Generated by Django 2.1.15 on 2020-04-08 08:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('basicknowledge', '0004_auto_20191128_1601'),
]
operations = [
migrations.AlterField(
model_name='basicknowledge',
name='type',
field=models.CharField(choices=[('language_communication', 'Sprache & Kommunikation'), ('society', 'Gesellschaft'), ('interdisciplinary', 'Überfachliches Instrument')], max_length=100),
),
]

View File

@ -26,10 +26,12 @@ class BasicKnowledge(StrictHierarchyPage):
LANGUAGE_COMMUNICATION = 'language_communication'
SOCIETY = 'society'
INTERDISCIPLINARY = 'interdisciplinary'
TYPE_CHOICES = (
(LANGUAGE_COMMUNICATION, 'Sprache & Kommunikation'),
(SOCIETY, 'Gesellschaft'),
(INTERDISCIPLINARY, 'Überfachliches Instrument'),
)
type = models.CharField(

View File

@ -0,0 +1,18 @@
# Generated by Django 2.1.15 on 2020-04-08 08:41
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('books', '0018_remove_module_solutions_enabled_by'),
]
operations = [
migrations.AlterField(
model_name='contentblock',
name='type',
field=models.CharField(choices=[('normal', 'Normal'), ('base_communication', 'Instrument Sprache & Kommunikation'), ('task', 'Auftrag'), ('base_society', 'Instrument Gesellschaft'), ('base_interdisciplinary', 'Überfachliches Instrument')], default='normal', max_length=100),
),
]

View File

@ -27,12 +27,14 @@ class ContentBlock(StrictHierarchyPage):
BASE_COMMUNICATION = 'base_communication'
TASK = 'task'
BASE_SOCIETY = 'base_society'
BASE_INTERDISCIPLINARY = 'base_interdisciplinary'
TYPE_CHOICES = (
(NORMAL, 'Normal'),
(BASE_COMMUNICATION, 'Instrument Sprache & Kommunikation'),
(TASK, 'Auftrag'),
(BASE_SOCIETY, 'Instrument Gesellschaft'),
(BASE_INTERDISCIPLINARY, 'Überfachliches Instrument'),
)
# blocks without owner are visible by default, need to be hidden for each class