Skip to content

Commit

Permalink
Put the times below the dates
Browse files Browse the repository at this point in the history
  • Loading branch information
kreut committed Sep 20, 2024
1 parent b958b23 commit 25748a5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 21 deletions.
6 changes: 3 additions & 3 deletions resources/js/components/AssignTosToView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@
<tr v-for="(assignTo,index) in assignTosToView" :key="`assignTos-${index}`">
<td>{{ assignTo.groups.join(', ') }}</td>
<td>
{{ $moment(assignTo.available_from_date, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}
{{ $moment(assignTo.available_from_date, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}<br>
{{ $moment(assignTo.available_from_time, 'HH:mm:ss A').format('h:mm A') }}
</td>
<td>
{{ $moment(assignTo.due_date, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}
{{ $moment(assignTo.due_date, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}<br>
{{ $moment(assignTo.due_time, 'HH:mm:ss A').format('h:mm A') }}
</td>
<td v-if="assignTosToView[0].final_submission_deadline">
{{ $moment(assignTo.final_submission_deadline_date, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}
{{ $moment(assignTo.final_submission_deadline_date, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}<br>
{{ $moment(assignTo.final_submission_deadline_time, 'HH:mm:ss A').format('h:mm A') }}
</td>
<td>
Expand Down
35 changes: 19 additions & 16 deletions resources/js/pages/instructors/assignments.index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,8 @@
<div v-if="lmsError">
<b-alert variant="danger" show>
There was an error trying to connect to your LMS with ADAPT. Please reach out
to support so that we can troubleshoot the issue. In the meantime, you can still work on your ADAPT assignments.
to support so that we can troubleshoot the issue. In the meantime, you can still work on your ADAPT
assignments.
</b-alert>
</div>
<div v-else>
Expand Down Expand Up @@ -876,7 +877,7 @@
<table class="table table-striped" aria-label="Assignment List">
<thead>
<tr>
<th scope="col">
<th scope="col" style="width:350px">
Assignment Name
</th>
<th v-if="view === 'control panel'" scope="col" style="width:200px">
Expand Down Expand Up @@ -920,19 +921,19 @@
<th v-if="view === 'main view' && [2,4].includes(user.role)" scope="col">
Group
</th>
<th v-if="view === 'main view' && [2,4].includes(user.role)" scope="col">
<th v-if="view === 'main view' && [2,4].includes(user.role)" scope="col" style="width:200px">
Available On
</th>
<th v-if="view === 'main view' && [2,4].includes(user.role)" scope="col">
Due
</th>
<th v-show="view === 'main view' && [2,4].includes(user.role)" scope="col" style="width:100px">
<th v-show="view === 'main view' && [2,4].includes(user.role)" scope="col">
Status
<span @mouseover="showAssignmentStatusModal()" @mouseout="mouseOverAssignmentStatus = false">
<QuestionCircleTooltip />
</span>
</th>
<th v-if="view === 'main view'" scope="col" :style="lms ? 'width: 145px' :'width: 115px'">
<th v-if="view === 'main view'" scope="col" :style="lms ? 'width: 175px' :'width: 145px'">
Actions
</th>
</tr>
Expand Down Expand Up @@ -1055,10 +1056,11 @@
N/A
</div>
<div v-if="!isFormative (assignment)">
<ShowHideAssignmentProperties :key="`show-scores-toggle-${assignment.id}-${showHideAssignmentPropertiesKey}`"
:assignment="assignment"
:property="'show_scores'"
@refreshPage="getAssignments"
<ShowHideAssignmentProperties
:key="`show-scores-toggle-${assignment.id}-${showHideAssignmentPropertiesKey}`"
:assignment="assignment"
:property="'show_scores'"
@refreshPage="getAssignments"
/>
</div>
</td>
Expand All @@ -1067,10 +1069,11 @@
N/A
</div>
<div v-if="!isFormative (assignment)">
<ShowHideAssignmentProperties :key="`show-solutions-toggle-${assignment.id}-${showHideAssignmentPropertiesKey}`"
:assignment="assignment"
:property="'solutions_released'"
@refreshPage="getAssignments"
<ShowHideAssignmentProperties
:key="`show-solutions-toggle-${assignment.id}-${showHideAssignmentPropertiesKey}`"
:assignment="assignment"
:property="'solutions_released'"
@refreshPage="getAssignments"
/>
</div>
</td>
Expand Down Expand Up @@ -1134,7 +1137,7 @@
</div>
<div v-if="showAssignTos(assignment)">
<span v-if="assignment.assign_tos.length === 1">
{{ $moment(assignment.assign_tos[0].available_from, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}
{{ $moment(assignment.assign_tos[0].available_from, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}<br>
{{ $moment(assignment.assign_tos[0].available_from, 'YYYY-MM-DD HH:mm:ss A').format('h:mm A') }}
</span>
<span v-if="assignment.assign_tos.length > 1">
Expand All @@ -1149,13 +1152,13 @@
<div v-if="showAssignTos(assignment)">
<span v-if="assignment.assign_tos.length === 1">
<span v-if="!showFinalSubmissionDeadline(assignment.assign_tos[0])">
{{ $moment(assignment.assign_tos[0].due, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}
{{ $moment(assignment.assign_tos[0].due, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}<br>
{{ $moment(assignment.assign_tos[0].due, 'YYYY-MM-DD HH:mm:ss A').format('h:mm A') }}
</span>
<span v-if="showFinalSubmissionDeadline(assignment.assign_tos[0])">
{{
$moment(assignment.assign_tos[0].final_submission_deadline_date, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY')
}}
}}<br>
{{
$moment(assignment.assign_tos[0].final_submission_deadline_time, 'HH:mm:ss A').format('h:mm A')
}}
Expand Down
4 changes: 2 additions & 2 deletions resources/js/pages/students/assignments.index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -263,15 +263,15 @@
</template>
<template #cell(available_from)="data">
<span v-show="data.item.assessment_type !== 'clicker'">
{{ $moment(data.item.available_from, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}
{{ $moment(data.item.available_from, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}<br>
{{ $moment(data.item.available_from, 'YYYY-MM-DD HH:mm:ss A').format('h:mm A') }}
</span>
<span v-show="data.item.assessment_type === 'clicker'">
N/A</span>
</template>
<template #cell(due)="data">
<span v-show="data.item.assessment_type !== 'clicker'">
{{ $moment(data.item.due.due_date, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}
{{ $moment(data.item.due.due_date, 'YYYY-MM-DD HH:mm:ss A').format('M/D/YY') }}<br>
{{ $moment(data.item.due.due_date, 'YYYY-MM-DD HH:mm:ss A').format('h:mm A') }}
{{ data.item.due.is_extension ? '(Extension)' : '' }}
</span>
Expand Down

0 comments on commit 25748a5

Please sign in to comment.