-
-
+
+
{{
districtContactType.label
@@ -158,7 +115,10 @@
v-if="!districtContactType.publiclyAvailable"
cols="2"
>
-
+
@@ -193,10 +153,9 @@
-
+
No contacts of this type have been listed.
@@ -240,12 +199,12 @@
diff --git a/frontend/src/components/institute/NewDistrictContactPage.vue b/frontend/src/components/institute/district/NewDistrictContactPage.vue
similarity index 88%
rename from frontend/src/components/institute/NewDistrictContactPage.vue
rename to frontend/src/components/institute/district/NewDistrictContactPage.vue
index 6ca7901fe..aa14c99f6 100644
--- a/frontend/src/components/institute/NewDistrictContactPage.vue
+++ b/frontend/src/components/institute/district/NewDistrictContactPage.vue
@@ -113,28 +113,22 @@
-
-
@@ -154,28 +148,30 @@
id="newContactPostBtn"
text="Save"
width="7rem"
- @click-action="addNewDistrictContact"
:disabled="!isFormValid"
:loading="processing"
+ @click-action="addNewDistrictContact"
/>
@@ -470,5 +519,10 @@ export default {
transform: scale(1);
}
}
+
+.expiry-date {
+ color: grey;
+ text-align: right;
+}
diff --git a/frontend/src/components/secure-message/ExchangePage.vue b/frontend/src/components/secure-message/ExchangePage.vue
index 4edcce0bf..ffa08a15c 100644
--- a/frontend/src/components/secure-message/ExchangePage.vue
+++ b/frontend/src/components/secure-message/ExchangePage.vue
@@ -144,7 +144,7 @@
@@ -171,12 +172,12 @@
-
-
-
+
+
+ mdi-circle-medium
+
+
{{
item.raw.label
@@ -243,12 +244,12 @@
-
-
@@ -345,7 +344,6 @@
@@ -480,6 +478,7 @@
+
@@ -522,16 +521,19 @@ import NewMessagePage from './NewMessagePage.vue';
import {mapState} from 'pinia';
import router from '@/router';
import _, {isEmpty, omitBy} from 'lodash';
-import {LocalDate, ChronoUnit, DateTimeFormatter} from '@js-joda/core';
+import {ChronoUnit, LocalDateTime} from '@js-joda/core';
import alertMixin from '@/mixins/alertMixin';
import {edxStore} from '@/store/modules/edx';
import {appStore} from '@/store/modules/app';
import {authStore} from '@/store/modules/auth';
import {notificationsStore} from '@/store/modules/notifications';
+import DatePicker from '@/components/util/DatePicker.vue';
+import {formatDate} from '@/utils/format';
export default {
name: 'ExchangeInbox',
components: {
+ DatePicker,
PrimaryButton,
NewMessagePage
},
@@ -548,8 +550,6 @@ export default {
statusSelectFilter: null,
statusRadioGroup: 'statusFilterAllActive',
statusRadioGroupEnabled: true,
- messageDateFilter: false,
- activeMessageDatePicker: null,
messageDate: null,
subjectFilter: '',
messageIDFilter: '',
@@ -580,7 +580,6 @@ export default {
{value: 50, title: '50'}
],
loadingTableCount: 0,
- dateMenu: false,
headerSearchParams: {
sequenceNumber: '',
contact: '',
@@ -588,10 +587,6 @@ export default {
createDate: [],
secureExchangeStatusCode: ''
},
- headerSortParams: {
- currentSort: 'createDate',
- currentSortDir: true
- },
exchanges: [],
selectedExchanges: [],
isActiveMessagesTabEnabled: true,
@@ -666,9 +661,6 @@ export default {
this.filterExchanges();
}
},
- openMessageDatePicker() {
- this.$refs.messageDatePicker.openMenu();
- },
messageSent() {
this.newMessageSheet = !this.newMessageSheet;
},
@@ -676,8 +668,8 @@ export default {
this.ministryTeamName = this.ministryTeams.find(item => item.groupRoleIdentifier === this.ministryOwnershipGroupRoleID).teamName;
},
getNumberOfDays(start) {
- const start_date = new LocalDate.parse(start, DateTimeFormatter.ofPattern('yyyy/MM/dd'));
- const end_date = LocalDate.now();
+ const start_date = new LocalDateTime.parse(start);
+ const end_date = LocalDateTime.now();
return ChronoUnit.DAYS.between(start_date, end_date) + ' days';
},
@@ -687,9 +679,9 @@ export default {
getContactLineItem(item) {
switch (item.secureExchangeContactTypeCode) {
case 'SCHOOL':
- return `${this.schoolMap.get(item?.contactIdentifier)?.schoolName} (${this.schoolMap.get(item?.contactIdentifier)?.mincode}) - ${item?.createDate}`;
+ return `${this.schoolMap.get(item?.contactIdentifier)?.schoolName} (${this.schoolMap.get(item?.contactIdentifier)?.mincode}) - ${formatDate(item?.createDate)}`;
case 'DISTRICT':
- return `${this.districtMap.get(item?.contactIdentifier)?.name} (${this.districtMap.get(item?.contactIdentifier)?.districtNumber}) - ${item?.createDate}`;
+ return `${this.districtMap.get(item?.contactIdentifier)?.name} (${this.districtMap.get(item?.contactIdentifier)?.districtNumber}) - ${formatDate(item?.createDate)}`;
}
},
getReviewer(reviewer) {
@@ -746,7 +738,6 @@ export default {
this.claimedByFilter = null;
this.contactNameFilter = null;
this.messageDate = null;
- this.messageDateFilter = null;
this.statusSelectFilter = null;
if (runSearch) {
this.resetPageNumber();
@@ -773,9 +764,9 @@ export default {
},
getStatusColor(status) {
- if (status === 'Open') {
+ if (status?.toLowerCase() === 'open') {
return 'green';
- } else if (status === 'Closed') {
+ } else if (status?.toLowerCase() === 'closed') {
return 'red';
}
},
@@ -951,26 +942,29 @@ export default {
font-size: medium;
}
-.hoverTable {
- border-bottom-style: groove;
- border-left-style: groove;
- border-right-style: groove;
- border-color: rgb(255 255 255 / 45%);
-}
-
-.hoverTable:nth-child(1) {
- border-top-style: groove;
-}
-
.hoverTable:hover {
background-color: #e8e8e8;
cursor: pointer;
}
-.containerSetup {
- padding-right: 26em !important;
- padding-left: 26em !important;
+.containerSetup{
+ padding-right: 32em !important;
+ padding-left: 32em !important;
+}
+
+@media screen and (max-width: 1950px) {
+ .containerSetup{
+ padding-right: 20em !important;
+ padding-left: 20em !important;
+ }
+}
+
+@media screen and (max-width: 1200px) {
+ .containerSetup{
+ padding-right: 4em !important;
+ padding-left: 4em !important;
+ }
}
:deep(.dp__input) {
diff --git a/frontend/src/components/secure-message/InstituteAccessPage.vue b/frontend/src/components/secure-message/InstituteAccessPage.vue
index c95ee901d..edd2a8560 100644
--- a/frontend/src/components/secure-message/InstituteAccessPage.vue
+++ b/frontend/src/components/secure-message/InstituteAccessPage.vue
@@ -119,11 +119,3 @@ export default {
}
};
-
-
diff --git a/frontend/src/components/secure-message/InviteUserPage.vue b/frontend/src/components/secure-message/InviteUserPage.vue
index d2397e9fc..4366ed75b 100644
--- a/frontend/src/components/secure-message/InviteUserPage.vue
+++ b/frontend/src/components/secure-message/InviteUserPage.vue
@@ -114,6 +114,16 @@
+
+
@@ -155,12 +165,15 @@ import {Routes} from '@/utils/constants';
import {mapState} from 'pinia';
import {authStore} from '@/store/modules/auth';
import {appStore} from '@/store/modules/app';
+import DatePicker from '../util/DatePicker.vue';
+import {DateTimeFormatter, LocalDate} from '@js-joda/core';
export default {
name: 'InviteUserPage',
components: {
PrimaryButton,
ConfirmationDialog,
+ DatePicker
},
mixins: [alertMixin],
props: {
@@ -207,7 +220,9 @@ export default {
processing: false,
edxAdminUserCode: '',
rolesHint: 'Pick the roles to be assigned to the new user',
- emailHint: 'Valid Email Required'
+ emailHint: 'Valid Email Required',
+ accessExpiryDate: null,
+ minExpiryDate: LocalDate.now().atStartOfDay().format(DateTimeFormatter.ofPattern('yyyy-MM-dd\'T\'HH:mm:ss')).toString()
};
},
mounted() {
@@ -286,7 +301,8 @@ export default {
firstName: this.firstName,
lastName: this.lastName,
email: this.email,
- edxActivationRoleCodes: this.edxActivationRoleCodes
+ edxActivationRoleCodes: this.edxActivationRoleCodes,
+ edxUserExpiryDate: this.accessExpiryDate
};
let url = null;
if (this.instituteTypeCode === 'SCHOOL') {
@@ -316,6 +332,9 @@ export default {
const isValid = this.$refs.newUserForm.validate();
this.isValidForm = isValid.valid;
},
+ clearExpiryDate(){
+ this.accessExpiryDate = null;
+ },
}
};
diff --git a/frontend/src/components/secure-message/MessageDisplay.vue b/frontend/src/components/secure-message/MessageDisplay.vue
index 560df3681..9babc3ff6 100644
--- a/frontend/src/components/secure-message/MessageDisplay.vue
+++ b/frontend/src/components/secure-message/MessageDisplay.vue
@@ -44,7 +44,7 @@
class="createDate"
style="color: black"
>
- {{ secureExchange.createDate }}
+ {{ formatDate(secureExchange.createDate) }}