Add database support and model for tips

This commit is contained in:
Sebastian Serth
2020-10-07 17:42:44 +02:00
parent 85a05225ec
commit 2e1c97d87d
7 changed files with 101 additions and 1 deletions

View File

@ -121,6 +121,10 @@ de:
name: Name
usage: Verwendet
difficulty: Anteil an der Aufgabe
tip:
title: Titel
description: Beschreibung
example: Beispiel
file_template:
name: "Name"
file_type: "Dateityp"
@ -215,6 +219,7 @@ de:
errors:
messages:
together: 'muss zusammen mit %{attribute} definiert werden'
at_least: 'oder %{attribute} muss definiert sein'
models:
exercise:
at_most_one_main_file: dürfen höchstens eine Hauptdatei enthalten

View File

@ -121,6 +121,10 @@ en:
name: Name
usage: Used
difficulty: Share on the Exercise
tip:
title: title
description: description
example: example
file_template:
name: "Name"
file_type: "File Type"
@ -215,6 +219,7 @@ en:
errors:
messages:
together: 'has to be set along with %{attribute}'
at_least: 'or %{attribute} must be defined'
models:
exercise:
at_most_one_main_file: must include at most one main file