Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: show correct aggregate report to students option value after save in Studio #85

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions feedback/templates/html/studio_view.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@
<label class="label setting-label" for="display_name" aria-describedby="display_name_help">{% trans "Display name" %}</label>
<input class="input setting-input" name="display_name" id="display_name" value="{{display_name}}" type="text" />
</div>
<span class="tip setting-help" id="display_name_help"> {% trans "The name of the component." %} </span>
<span class="tip setting-help" id="display_name_help">{% trans "The name of the component." %}</span>
</li>

<li class="field comp-setting-entry is-set">
<div class="wrapper-comp-setting">
<label class="label setting-label" for="voting_message" aria-describedby="voting_message_help">{% trans "Voting message" %}</label>
<input class="input setting-input" name="voting_message" id="voting_message" value="{{voting_message}}" type="text" />
</div>
<span class="tip setting-help" id="voting_message_help"> {% trans "The message to show after user vote." %} </span>
<span class="tip setting-help" id="voting_message_help">{% trans "The message to show after user vote." %}</span>
</li>

<li class="field comp-setting-entry is-set">
<div class="wrapper-comp-setting">
<label class="label setting-label" for="feedback_message" aria-describedby="feedback_message_help">{% trans "Feedback message" %}</label>
<input class="input setting-input" name="feedback_message" id="feedback_message" value="{{feedback_message}}" type="text" />
</div>
<span class="tip setting-help" id="feedback_message_help"> {% trans "The message to show after user feedback." %} </span>
<span class="tip setting-help" id="feedback_message_help">{% trans "The message to show after user feedback." %}</span>
</li>

<li class="field comp-setting-entry is-set">
<div class="wrapper-comp-setting">
<label class="label setting-label" for="show_aggregate_to_students">{% trans "Show aggregate report to students" %}</label>
<select name="show_aggregate_to_students" value="{{show_aggregate_to_students}}">
<option value="False">{% trans "False" %}</option>
<option value="True">{% trans "True" %}</option>
<select name="show_aggregate_to_students" id="show_aggregate_to_students">
<option value="False" {% if show_aggregate_to_students == False %}selected{% endif %}>{% trans "False" %}</option>
<option value="True" {% if show_aggregate_to_students == True %}selected{% endif %}>{% trans "True" %}</option>
</select>
</div>
<span class="tip setting-help"> {% trans "Wheter to show the aggregate report to students." %} </span>
<span class="tip setting-help">{% trans "Whether to show the aggregate report to students." %}</span>
</li>

<li class="field comp-setting-entry is-set">
Expand All @@ -60,7 +60,7 @@
<label class="label setting-label" for="icon_set" aria-describedby="icon_set_option">{% trans "Likert icon set" %}</label>
<select name="icon_set" id="icon_set">
<option value="face">{% trans "Faces (happy to sad)" %}</option>
<option value="midface">{% trans "Faces (sad to happy to sad)" %}</option>
<option value="midface">{% trans "Faces (sad to happy)" %}</option>
<option value="num">{% trans "Numeric" %}</option>
<option value="star">{% trans "Stars" %}</option>
</select>
Expand Down
Loading