Make error template UI usable

This commit is contained in:
Maximilian Grundke
2017-07-12 11:04:29 +02:00
parent 4d38195c99
commit 9eadc3a4db
16 changed files with 76 additions and 69 deletions

View File

@@ -0,0 +1,10 @@
h1
= @error_template
= render('shared/edit_button', object: @error_template)
= row(label: 'error_template.name', value: @error_template.name)
= row(label: 'exercise.execution_environment', value: link_to(@error_template.execution_environment))
- [:signature, :description, :hint].each do |attribute|
= row(label: "error_template.#{attribute}", value: @error_template.send(attribute))
//todo: list attributes