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

The function of "Reset Course Content" is unclear at first glance. Changed to more descriptive button name. #2248

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions app/views/courses/_settings_sidebar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,19 @@

<% if can_do(@context, @current_user, :reset_content) && !MasterCourses::MasterTemplate.is_master_course?(@context) %>
<%= link_to context_url(@context, :course_reset_url), :class => ' Button Button--link Button--link--has-divider Button--course-settings reset_course_content_button' do %>
<i class="icon-reset"></i><%= t('links.reset', 'Reset Course Content') %>
<i class="icon-reset"></i><%= t('links.reset', 'Delete Course Content') %>
<% end %>

<div <%= hidden(true) %> id="reset_course_content_dialog">
<p><%= mt('help.reset_course_content', 'Resetting course content will permanently delete all associated assignments, discussions, quizzes, modules, rubrics, pages, files, learning outcomes, question banks, collaborations, conferences, or any other content. This action is irreversible, and the data *cannot* be recovered. Are you sure you wish to continue?') %></p>
<p><%= mt('help.reset_course_content', 'Deleting course content will permanently delete all associated assignments, discussions, quizzes, modules, rubrics, pages, files, learning outcomes, question banks, collaborations, conferences, or any other content. This action is irreversible, and the data *cannot* be recovered. Are you sure you wish to continue?') %></p>

<%= form_for @context, :url => context_url(@context, :course_reset_url), :html => { :method => :post } do %>
<div class="button-container">
<button type="button" class="btn cancel_button">
<%= t('#buttons.cancel', 'Cancel') %>
</button>
<button type="submit" class="btn btn-danger submit_button">
<%= t('buttons.reset', 'Reset Course Content') %>
<%= t('buttons.reset', 'Delete Course Content') %>
</button>
</div>
<% end %>
Expand Down