123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <div class="form-column-left">
- {{#if sectionLabel}}{{sectionLabel}}{{else}}{{#t 'group_assignment_header'}}Group Assignment{{/t}}{{/if}}
- </div>
- <div class="form-column-right">
- <div class="border border-trbl border-round">
- {{!-- Group Assignment selection --}}
- <label class="checkbox flush" for="has_group_category">
- {{#if inClosedGradingPeriod}}
- {{checkbox "has_group_category"
- id="has_group_category"
- prefix=prefix
- checked=groupCategoryId
- aria-role="option"
- aria-checked=ariaChecked
- aria-controls="group_category_options"
- readonly="readonly"
- aria-readonly="true"
- disabled=hasGroupCategoryDisabled
- }}
- {{else}}
- {{checkbox "has_group_category"
- id="has_group_category"
- prefix=prefix
- checked=groupCategoryId
- aria-role="option"
- aria-checked=ariaChecked
- aria-controls="group_category_options"
- disabled=hasGroupCategoryDisabled
- }}
- {{/if}}
- {{#if fieldLabel}}{{fieldLabel}}{{else}}{{#t "is_group_assignment"}}This is a Group Assignment{{/t}}{{/if}}
- </label>
- {{!-- Individual grading? --}}
- <div id="group_category_options" style="{{hiddenUnless groupCategoryId}}">
- <div class="nested">
- {{#unless hideGradeIndividually}}
- <label class="checkbox" for="assignment_grade_students_individually">
- {{#if inClosedGradingPeriod}}
- {{checkbox "grade_group_students_individually"
- id="assignment_grade_students_individually"
- prefix=prefix
- checked=gradeGroupStudentsIndividually
- readonly="readonly"
- aria-readonly="true"
- disabled=gradeIndividuallyDisabled
- }}
- {{else}}
- {{checkbox "grade_group_students_individually"
- id="assignment_grade_students_individually"
- prefix=prefix
- checked=gradeGroupStudentsIndividually
- disabled=gradeIndividuallyDisabled
- }}
- {{/if}}
- {{#t "grade_group_students_individually"}}
- Assign Grades to Each Student Individually
- {{/t}}
- </label>
- {{/unless}}
- {{!-- Group selection --}}
- <label id="assignment_group_category_id_label" for="group_category_id">
- {{#t "group_set"}}Group Set{{/t}}
- </label>
- <select id="assignment_group_category_id"
- name="{{#if nested}}assignment[group_category_id]{{else}}group_category_id{{/if}}"
- {{#if inClosedGradingPeriod}}
- readonly
- aria-readonly="true"
- {{/if}}
- aria-labelledby="assignment_group_category_id_label"
- {{disabledIf groupCategoryIdDisabled}}>
- {{#each groupCategories}}
- <option value="{{id}}" {{selectedIf ../groupCategoryId this.id}}>
- {{name}}
- </option>
- {{/each}}
- <option value="blank" {{selectedIf originalGroupRemoved}}></option>
- </select>
- <div>
- <button
- class="Button"
- type="button"
- id="create_group_category_id"
- {{disabledIf inClosedGradingPeriod}}
- {{disabledIf groupCategoryIdDisabled}}
- >
- {{#t}}New Group Category{{/t}}
- </button>
- </div>
- </div>
- </div>
- {{#if groupCategoryLocked}}
- <div class="group_category_locked_explanation alert assignment-edit-group-alert">
- {{#if lockedMessage}}{{lockedMessage}}{{else}}
- {{#t "group_category_locked_explanation"}}Students have already
- submitted homework on this assignment, so group settings cannot be
- changed.{{/t}}
- {{/if}}
- </div>
- {{/if}}
- </div>
- </div>
|