123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <%
- # 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 <http://www.gnu.org/licenses/>.
- %>
- <label class="bold" for="grading-box-extended">{{#t}}Grade{{/t}}
- <% case assignment.grading_type %>
- <% when "points", "percent", "letter_grade", "gpa_scale" %>
- <input type="text" id="grading-box-extended" maxlength="254"/>
- <% when "pass_fail" %>
- <select id="grading-box-extended" class="pass_fail_grading_type">
- <option value="">---</option>
- <option value="complete">{{#t}}Complete{{/t}}</option>
- <option value="incomplete">{{#t}}Incomplete{{/t}}</option>
- <option value="EX">{{#t}}Excused{{/t}}</option>
- </select>
- <% end %>
- <% if assignment.grading_type == "points" %>
- <%=
- t(
- "out of %{points_possible}",
- points_possible: I18n.n(round_if_whole(assignment.points_possible))
- )
- %>
- <% elsif assignment.grading_type != "gpa_scale" %>
- (<span class="score"> </span> / <%= I18n.n(round_if_whole(assignment.points_possible)) %>)
- <% end %>
- </label>
- <div id="deduction-box" class="hidden">
- <div class="deduction-box-labels">
- <div class="error">
- <%= I18n.t('Late Penalty:') %>
- </div>
- <div class="primary">
- <%= I18n.t('Final Grade:') %>
- </div>
- </div>
- <div class="deduction-box-values">
- <div id="points-deducted" class="error bold"></div>
- <div id="final-grade" class="primary bold"></div>
- </div>
- </div>
|