Skip to content

Commit

Permalink
[FEAT]: Add Exit/Edit Mode Option from Question Groups Preview (#6180)
Browse files Browse the repository at this point in the history
* feat: exit questions group preview

* Trigger build: empty commit
  • Loading branch information
JiyaGupta-cs authored Feb 7, 2025
1 parent db7ad82 commit 682bb35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/views/rapidfire/answer_groups/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
- if params.key?("preview")
.survey-previewing Preview Mode
.survey-previewing
.preview-content
Preview Mode
= link_to t('question_groups.edit_question_group'), edit_question_group_path(@question_group), class: "button"
.loading{"data-survey-form-container" => ""}
= render partial: "surveys/question_group", locals: { |
question_group: @question_group, |
Expand Down
3 changes: 3 additions & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1923,4 +1923,7 @@ en:
weekday_select: "{{weekday}} Press Return key to select"
weekday_selected: "{{weekday}} Selected Press Return Key to unselect"
weekday_unselected: "{{weekday}} Unselected"

question_groups:
edit_question_group: "Edit Question Group"

2 changes: 2 additions & 0 deletions config/locales/qqq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -947,4 +947,6 @@ qqq:
footer:
wiki_education_dashboard:
link_text: '{{optional}}'
question_groups:
edit_question_group: Button label for editing a question group
...

0 comments on commit 682bb35

Please sign in to comment.