<% # Copyright (C) 2011 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %> <% provide :right_side do %>
<% if can_do(@bank, @current_user, :manage) %> <%= t 'buttons.add_a_question', "Add a Question" %> <%= t 'buttons.edit', "Edit Bank Details" %> <%= t 'buttons.move_questions', "Move Multiple Questions" %> <%= t 'buttons.delete', "Delete Bank" %> <% end %> <% if @bank && !@bank.bookmarked_for?(@current_user) %> " class="btn button-sidebar-wide bookmark_bank_link"> <%= t 'buttons.bookmark', "Bookmark this Bank" %> <% else %> <% end %>
<% css_bundle("aligned_outcomes") %>

<%= t 'headings.aligned_outcomes', "Aligned Outcomes" %>

<%= t 'links.align_outcome', "Align Outcome" %>
<%= render :partial => 'shared/find_outcome', :locals => {:purpose => 'question_bank'} %> <% end %>
<%= form_for @bank, :url => context_url(@context, :context_question_bank_url, @bank), :html => {:id => "edit_bank_form", :method => :put} do |f| %>

<%= @bank.title %>

<% end %>

<%= t('edit_warning', "Remember, changes to question templates won't automatically update quizzes that are already using those questions.") %>

1 %> />
<% if @questions.total_pages <= 1 %> <% @questions.each do |question| %> <%= render :partial => "quizzes/quizzes/display_question", :object => question.data, :locals => {:question_bank_id => @bank.id, :editing => true, :asset_string => question.asset_string} %> <% end %> <% else %> <%= render :partial => "question_teaser", :collection => @questions %> <% end %>
<% if @questions.total_pages > 1 %>
" class="more_questions_link"><%= t 'links.more_questions', "more questions" %>
<% end %> <%= render :partial => "question_teaser" %> <%= render :partial => "question_bank" %> <%= render :partial => "quizzes/quizzes/display_question", :object => nil, :locals => {:question_bank_id => @bank.id, :editing => true} %> <%= render :partial => "quizzes/quizzes/display_answer", :object => nil %> <%= render :partial => "quizzes/quizzes/form_answer", :object => nil %> <%= render :partial => "quizzes/quizzes/form_question", :object => nil, :locals => {:question_bank_id => @bank.id} %>
<%= t 'move_copy', 'Move/Copy' %>  
<%= t 'select_bank', 'Select the destination question bank for this question:' %>
  • <%= t 'loading_banks', 'Loading banks...' %>
<%= render :partial => 'quizzes/quizzes/equations_help' %>