Skip to content

Commit c6f28c3

Browse files
authored
Merge pull request #255 from makeopensource/103-choose-score-frontend
103 choose score frontend - Added no default option
2 parents e3e5d63 + 9d07d5b commit c6f28c3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

devU-client/src/components/pages/forms/assignments/assignmentFormPage.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,11 @@ const AddAssignmentModal = ({ open, onClose }: Props) => {
189189
<input type='date' id="end_date" value={endDate} onChange={handleEndDateChange} />
190190
</div>
191191
</div>
192+
<span>Select submission for final score:</span>
192193
<div className="input-subgroup-2col" style={{justifyContent: 'flex-start'}}>
193-
<span>Select submission for final score:</span>
194-
<label htmlFor="subRecent"><input type="radio" id="subRecent" name="submissionChoice" defaultChecked/>Most Recent</label>
195-
<label htmlFor="subHighest"><input type="radio" id="subHighest" name="submissionChoice"/>Highest Score</label>
194+
<label htmlFor="subRecent" style={{cursor: 'pointer'}}><input type="radio" id="subRecent" name="submissionChoice" defaultChecked/>Most Recent</label>
195+
<label htmlFor="subHighest" style={{cursor: 'pointer'}}><input type="radio" id="subHighest" name="submissionChoice"/>Highest Score</label>
196+
<label htmlFor="subNone" style={{cursor: 'pointer'}}><input type="radio" id="subNone" name="submissionChoice" />No Default</label>
196197
</div>
197198
<label htmlFor="disableHandins">Disable Submissions?<input type="checkbox" id="disableHandins" /></label>
198199
</Modal>

devU-client/src/components/pages/forms/assignments/assignmentUpdatePage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,10 @@ const AssignmentUpdatePage = () => {
294294
<div className={styles.form}>
295295
<h2 className={styles.header}>Edit Info</h2>
296296
<span>Select submission for final score:</span>
297-
<label htmlFor="subRecent" style={{display: 'block', paddingTop: '5px'}}><input type="radio" id="subRecent" name="submissionChoice" defaultChecked />Most Recent</label>
298-
<label htmlFor="subHighest"><input type="radio" id="subHighest" name="submissionChoice" />Highest Score</label>
297+
<label htmlFor="subRecent" style={{display: 'block', paddingTop: '5px', cursor: 'pointer'}}><input type="radio" id="subRecent" name="submissionChoice" defaultChecked />Most Recent</label>
298+
<label htmlFor="subHighest" style={{display: 'block', paddingTop: '5px', cursor: 'pointer'}}><input type="radio" id="subHighest" name="submissionChoice" />Highest Score</label>
299+
<label htmlFor="subNone" style={{display: 'block', paddingTop: '5px', cursor: 'pointer'}}><input type="radio" id="subNone" name="submissionChoice" />No Default</label>
300+
299301
<div className={styles.textFieldContainer}>
300302
<div>
301303
<div className={styles.textFieldHeader}>Assignment Category: </div>

0 commit comments

Comments
 (0)