diff --git a/app/views/exercises/_editor.html.slim b/app/views/exercises/_editor.html.slim index 210e976f..42b12e42 100644 --- a/app/views/exercises/_editor.html.slim +++ b/app/views/exercises/_editor.html.slim @@ -37,3 +37,5 @@ i.fa.fa-rocket = t('exercises.editor.test') = render('editor_button', data: {:'data-placement' => 'top', :'data-tooltip' => true}, icon: 'fa fa-trophy', id: 'assess', label: t('exercises.editor.score'), title: t('shared.tooltips.shortcut', shortcut: 'ALT + s')) + += render('shared/modal', id: 'comment-modal', title: t('exercises.implement.comment.request'), template: 'exercises/_request_comment_dialogcontent') \ No newline at end of file diff --git a/app/views/exercises/_request_comment_dialogcontent.html.slim b/app/views/exercises/_request_comment_dialogcontent.html.slim new file mode 100644 index 00000000..330501f9 --- /dev/null +++ b/app/views/exercises/_request_comment_dialogcontent.html.slim @@ -0,0 +1,4 @@ +h5 = t('exercises.implement.comment.question') +textarea.form-control#question(style='resize:none;') +p = '' +button#askForCommentsButton.btn.btn-block.btn-primary(type='button') =t('exercises.implement.comment.request') \ No newline at end of file diff --git a/config/locales/de.yml b/config/locales/de.yml index 7d5710e5..ec798e51 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -245,6 +245,8 @@ de: addComment: Kommentieren removeAllOnLine: Alle Kommentare auf dieser Zeile löschen listing: Die neuesten Kommentaranfragen + request: "Kommentaranfrage stellen" + question: "Was ist Ihre Frage? (optional)" index: clone: Duplizieren implement: Implementieren diff --git a/config/locales/en.yml b/config/locales/en.yml index f9306835..1350caec 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -245,6 +245,8 @@ en: addComment: Comment this removeAllOnLine: Remove all comments on this line listing: Listing the newest comment requests + request: "Request Comments" + question: "What is your question? (optional)" index: clone: Duplicate implement: Implement