diff --git a/app/assets/stylesheets/components/table.css.scss b/app/assets/stylesheets/components/table.css.scss index 71418b6971..4d4a8b866c 100644 --- a/app/assets/stylesheets/components/table.css.scss +++ b/app/assets/stylesheets/components/table.css.scss @@ -58,8 +58,6 @@ text-align: right; &.submissions-table { - text-align: center; - // by default the size of the element in the col is used as width if width is smaller than that element. // This width is just here to force everything to the right width: 1px; diff --git a/app/views/feedbacks/_submissions_table.html.erb b/app/views/feedbacks/_submissions_table.html.erb index f050b7a4b2..643030c77c 100644 --- a/app/views/feedbacks/_submissions_table.html.erb +++ b/app/views/feedbacks/_submissions_table.html.erb @@ -33,15 +33,19 @@ <% if @feedback.submission&.id == submission.id %> - + <%= link_to feedback_path(@feedback, feedback: { submission_id: nil }), + class: "btn btn-outline d-btn-danger", + title: t(".undo_selection_tip"), + data: { confirm: t('.undo_selection_confirm') }, + method: :patch do %> + <%= (t '.undo_selection') %> + <% end %> <% else %> <%= link_to (t 'submissions.submissions_table.select'), feedback_path(@feedback, feedback: { submission_id: submission.id }), class: "btn btn-outline", title: t(".update-submission"), - confirm: t('.confirm'), + data: { confirm: t('.confirm') }, method: :patch %> <% end %> diff --git a/config/locales/views/feedbacks/en.yml b/config/locales/views/feedbacks/en.yml index 41544e784f..d01cec76d9 100644 --- a/config/locales/views/feedbacks/en.yml +++ b/config/locales/views/feedbacks/en.yml @@ -59,6 +59,9 @@ en: submissions_table: update-submission: "Change to this submission" confirm: "Are you sure? All comments on the previous submission will be deleted." + undo_selection: Deselect + undo_selection_tip: Undo the selection of this submission + undo_selection_confirm: Are you sure? All comments on the current submission will be deleted. score_card: total_score: Total grade evaluation: Evaluation diff --git a/config/locales/views/feedbacks/nl.yml b/config/locales/views/feedbacks/nl.yml index e85eb35b86..849a19ef56 100644 --- a/config/locales/views/feedbacks/nl.yml +++ b/config/locales/views/feedbacks/nl.yml @@ -59,6 +59,9 @@ nl: submissions_table: update-submission: "Veranderen naar deze oplossing" confirm: "Ben je zeker? Alle opmerkingen op de vorige oplossing zullen verwijderd worden." + undo_selection: Selectie wissen + undo_selection_tip: Selectie van deze oplossing ongedaan maken + undo_selection_confirm: "Ben je zeker? Alle opmerkingen op de huidige oplossing zullen verwijderd worden." score_card: total_score: Totaalscore evaluation: Evaluatie