refinement to readonly mode: banner now gray and removed disabled for controls as they were too faded to read properly and some controls with action buttons didn't work (email, phone etc)
This commit is contained in:
@@ -59,7 +59,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.name"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Name')"
|
||||
:rules="[form().required(this, 'name')]"
|
||||
:error-messages="form().serverErrors(this, 'name')"
|
||||
@@ -72,7 +71,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.cjkIndex"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('GlobalCJKIndex')"
|
||||
:hint="$ay.t('GlobalCJKIndexDescription')"
|
||||
:persistent-hint="true"
|
||||
|
||||
@@ -17,7 +17,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.name"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Name')"
|
||||
:rules="[form().required(this, 'name')]"
|
||||
:error-messages="form().serverErrors(this, 'name')"
|
||||
@@ -39,7 +38,6 @@
|
||||
:showEditIcon="true"
|
||||
v-model="obj.vendorId"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Vendor')"
|
||||
ref="vendorId"
|
||||
data-cy="vendorId"
|
||||
@@ -52,7 +50,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.employeeNumber"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserEmployeeNumber')"
|
||||
:error-messages="
|
||||
form().serverErrors(this, 'employeeNumber')
|
||||
@@ -68,7 +65,6 @@
|
||||
:label="$ay.t('AuthorizationRoles')"
|
||||
v-model="obj.roles"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="roles"
|
||||
testId="roles"
|
||||
:error-messages="form().serverErrors(this, 'roles')"
|
||||
@@ -87,7 +83,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.active"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Active')"
|
||||
ref="active"
|
||||
data-cy="active"
|
||||
@@ -109,7 +104,6 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserType')"
|
||||
ref="usertype"
|
||||
data-cy="usertype"
|
||||
@@ -167,7 +161,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.notes"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserNotes')"
|
||||
:error-messages="form().serverErrors(this, 'notes')"
|
||||
ref="notes"
|
||||
@@ -181,7 +174,6 @@
|
||||
<gz-tag-picker
|
||||
v-model="obj.tags"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="tags"
|
||||
data-cy="tags"
|
||||
:error-messages="form().serverErrors(this, 'tags')"
|
||||
@@ -194,7 +186,6 @@
|
||||
v-model="obj.customFields"
|
||||
:formKey="formCustomTemplateKey"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:parentVM="this"
|
||||
ref="customFields"
|
||||
data-cy="customFields"
|
||||
@@ -210,7 +201,6 @@
|
||||
ref="wiki"
|
||||
v-model="obj.wiki"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
@input="fieldValueChanged('wiki')"
|
||||
></gz-wiki
|
||||
></v-col>
|
||||
@@ -221,7 +211,6 @@
|
||||
>
|
||||
<gz-attachments
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:ayaType="ayaType"
|
||||
:ayaId="obj.id"
|
||||
></gz-attachments
|
||||
@@ -265,7 +254,6 @@
|
||||
<gz-phone
|
||||
v-model="optionsObj.phone1"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserPhone1')"
|
||||
ref="phone1"
|
||||
data-cy="phone1"
|
||||
@@ -284,7 +272,6 @@
|
||||
<gz-phone
|
||||
v-model="optionsObj.phone2"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserPhone2')"
|
||||
ref="phone2"
|
||||
data-cy="phone2"
|
||||
@@ -303,7 +290,6 @@
|
||||
<gz-phone
|
||||
v-model="optionsObj.phone3"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserPageAddress')"
|
||||
ref="phone3"
|
||||
data-cy="phone3"
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
v-if="item.custom"
|
||||
v-model="item.type"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:items="selectLists.uiFieldDataTypes"
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.name"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:clearable="!formState.readOnly"
|
||||
@click:clear="fieldValueChanged('name')"
|
||||
:label="$ay.t('Name')"
|
||||
|
||||
@@ -28,7 +28,6 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('SeedLevel')"
|
||||
></v-select>
|
||||
</v-col>
|
||||
@@ -36,7 +35,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.timeZoneOffset"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:rules="[
|
||||
form().decimalValid(this, 'timeZoneOffset'),
|
||||
form().required(this, 'timeZoneOffset')
|
||||
@@ -51,7 +49,7 @@
|
||||
<!-- <v-col cols="12">
|
||||
<v-btn
|
||||
:loading="seedingJobActive"
|
||||
:disabled="formState.readOnly"
|
||||
|
||||
@click="generate()"
|
||||
class="my-8 mr-4"
|
||||
>{{ $ay.t("StartJob") }}</v-btn
|
||||
@@ -71,7 +69,6 @@
|
||||
color="blue darken-1"
|
||||
text
|
||||
@click="generate()"
|
||||
:disabled="formState.readOnly"
|
||||
>{{ $ay.t("StartJob") }}</v-btn
|
||||
>
|
||||
</v-card-actions>
|
||||
|
||||
@@ -59,7 +59,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.name"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportName')"
|
||||
:rules="[form().required(this, 'name')]"
|
||||
:error-messages="form().serverErrors(this, 'name')"
|
||||
@@ -73,7 +72,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.active"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Active')"
|
||||
ref="active"
|
||||
data-cy="active"
|
||||
@@ -87,7 +85,6 @@
|
||||
:label="$ay.t('AuthorizationRoles')"
|
||||
v-model="obj.roles"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="roles"
|
||||
testId="roles"
|
||||
:error-messages="form().serverErrors(this, 'roles')"
|
||||
@@ -100,7 +97,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.notes"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportNotes')"
|
||||
:error-messages="form().serverErrors(this, 'notes')"
|
||||
ref="notes"
|
||||
@@ -120,7 +116,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.displayHeaderFooter"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportDisplayHeaderFooter')"
|
||||
ref="displayHeaderFooter"
|
||||
data-cy="displayHeaderFooter"
|
||||
@@ -135,7 +130,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.headerTemplate"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportHeaderTemplate')"
|
||||
:error-messages="form().serverErrors(this, 'headerTemplate')"
|
||||
ref="headerTemplate"
|
||||
@@ -149,7 +143,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.footerTemplate"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportFooterTemplate')"
|
||||
:error-messages="form().serverErrors(this, 'footerTemplate')"
|
||||
ref="footerTemplate"
|
||||
@@ -166,7 +159,6 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportPaperFormat')"
|
||||
ref="paperFormat"
|
||||
data-cy="paperFormat"
|
||||
@@ -179,7 +171,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.landscape"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportLandscape')"
|
||||
ref="landscape"
|
||||
data-cy="landscape"
|
||||
@@ -192,7 +183,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.marginOptionsBottom"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportMarginOptionsBottom')"
|
||||
:error-messages="
|
||||
form().serverErrors(this, 'marginOptionsBottom')
|
||||
@@ -207,7 +197,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.marginOptionsLeft"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportMarginOptionsLeft')"
|
||||
:error-messages="form().serverErrors(this, 'marginOptionsLeft')"
|
||||
ref="marginOptionsLeft"
|
||||
@@ -220,7 +209,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.marginOptionsRight"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportMarginOptionsRight')"
|
||||
:error-messages="
|
||||
form().serverErrors(this, 'marginOptionsRight')
|
||||
@@ -235,7 +223,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.marginOptionsTop"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportMarginOptionsTop')"
|
||||
:error-messages="form().serverErrors(this, 'marginOptionsTop')"
|
||||
ref="marginOptionsTop"
|
||||
@@ -248,7 +235,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.preferCSSPageSize"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportPreferCSSPageSize')"
|
||||
ref="preferCSSPageSize"
|
||||
data-cy="preferCSSPageSize"
|
||||
@@ -261,7 +247,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.printBackground"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportPrintBackground')"
|
||||
ref="printBackground"
|
||||
data-cy="printBackground"
|
||||
@@ -274,7 +259,6 @@
|
||||
<gz-decimal
|
||||
v-model="obj.scale"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ReportScale')"
|
||||
:rules="[
|
||||
form().decimalValid(this, 'scale'),
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.notes"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerNoteNotes')"
|
||||
:error-messages="form().serverErrors(this, 'notes')"
|
||||
ref="notes"
|
||||
@@ -28,7 +27,6 @@
|
||||
<gz-tag-picker
|
||||
v-model="obj.tags"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="tags"
|
||||
data-cy="tags"
|
||||
:error-messages="form().serverErrors(this, 'tags')"
|
||||
@@ -41,7 +39,6 @@
|
||||
:label="$ay.t('CustomerNoteNoteDate')"
|
||||
v-model="obj.noteDate"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="noteDate"
|
||||
testId="noteDate"
|
||||
:error-messages="form().serverErrors(this, 'noteDate')"
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.name"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerName')"
|
||||
:rules="[form().required(this, 'name')]"
|
||||
:error-messages="form().serverErrors(this, 'name')"
|
||||
@@ -39,7 +38,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.active"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Active')"
|
||||
ref="active"
|
||||
data-cy="active"
|
||||
@@ -58,7 +56,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.accountNumber"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerAccountNumber')"
|
||||
ref="accountNumber"
|
||||
data-cy="accountNumber"
|
||||
@@ -77,7 +74,6 @@
|
||||
<gz-url
|
||||
v-model="obj.webAddress"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('WebAddress')"
|
||||
ref="webAddress"
|
||||
data-cy="webAddress"
|
||||
@@ -96,7 +92,6 @@
|
||||
<gz-email
|
||||
v-model="obj.emailAddress"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerEmail')"
|
||||
ref="emailAddress"
|
||||
data-cy="emailAddress"
|
||||
@@ -115,7 +110,6 @@
|
||||
<gz-phone
|
||||
v-model="obj.phone1"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerPhone1')"
|
||||
ref="phone1"
|
||||
data-cy="phone1"
|
||||
@@ -134,7 +128,6 @@
|
||||
<gz-phone
|
||||
v-model="obj.phone2"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerPhone2')"
|
||||
ref="phone2"
|
||||
data-cy="phone2"
|
||||
@@ -153,7 +146,6 @@
|
||||
<gz-phone
|
||||
v-model="obj.phone3"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerPhone3')"
|
||||
ref="phone3"
|
||||
data-cy="phone3"
|
||||
@@ -172,7 +164,6 @@
|
||||
<gz-phone
|
||||
v-model="obj.phone4"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerPhone4')"
|
||||
ref="phone4"
|
||||
data-cy="phone4"
|
||||
@@ -191,7 +182,6 @@
|
||||
<gz-phone
|
||||
v-model="obj.phone5"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerPhone5')"
|
||||
ref="phone5"
|
||||
data-cy="phone5"
|
||||
@@ -212,7 +202,6 @@
|
||||
:showEditIcon="true"
|
||||
v-model="obj.defaultServiceTemplatedId"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('WorkOrderTemplate')"
|
||||
ref="defaultServiceTemplateId"
|
||||
data-cy="defaultServiceTemplateId"
|
||||
@@ -233,7 +222,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.billHeadOffice"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerBillHeadOffice')"
|
||||
ref="billHeadOffice"
|
||||
data-cy="billHeadOffice"
|
||||
@@ -258,7 +246,6 @@
|
||||
:showEditIcon="true"
|
||||
v-model="obj.headOfficeId"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('HeadOffice')"
|
||||
ref="headOfficeId"
|
||||
data-cy="headOfficeId"
|
||||
@@ -279,7 +266,6 @@
|
||||
:showEditIcon="true"
|
||||
v-model="obj.contractId"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Contract')"
|
||||
ref="contractId"
|
||||
data-cy="contractId"
|
||||
@@ -301,7 +287,6 @@
|
||||
:label="$ay.t('ContractExpires')"
|
||||
v-model="obj.contractExpires"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="contractExpires"
|
||||
testId="contractExpires"
|
||||
:error-messages="
|
||||
@@ -321,7 +306,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.usesBanking"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UsesBanking')"
|
||||
ref="usesBanking"
|
||||
data-cy="usesBanking"
|
||||
@@ -335,7 +319,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.notes"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerNotes')"
|
||||
:error-messages="form().serverErrors(this, 'notes')"
|
||||
ref="notes"
|
||||
@@ -349,7 +332,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.techNotes"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerTechNotes')"
|
||||
:error-messages="form().serverErrors(this, 'techNotes')"
|
||||
ref="techNotes"
|
||||
@@ -364,7 +346,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.popUpNotes"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('CustomerPopUpNotes')"
|
||||
:error-messages="form().serverErrors(this, 'popUpNotes')"
|
||||
ref="popUpNotes"
|
||||
@@ -379,7 +360,6 @@
|
||||
<gz-tag-picker
|
||||
v-model="obj.tags"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="tags"
|
||||
data-cy="tags"
|
||||
:error-messages="form().serverErrors(this, 'tags')"
|
||||
@@ -392,7 +372,6 @@
|
||||
v-model="obj.customFields"
|
||||
:formKey="formCustomTemplateKey"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:parentVM="this"
|
||||
ref="customFields"
|
||||
data-cy="customFields"
|
||||
@@ -408,7 +387,6 @@
|
||||
ref="wiki"
|
||||
v-model="obj.wiki"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
@input="fieldValueChanged('wiki')"
|
||||
></gz-wiki
|
||||
></v-col>
|
||||
@@ -419,7 +397,6 @@
|
||||
>
|
||||
<gz-attachments
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:ayaType="ayaType"
|
||||
:ayaId="obj.id"
|
||||
></gz-attachments
|
||||
@@ -478,7 +455,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.address"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressDeliveryAddress')"
|
||||
ref="address"
|
||||
data-cy="address"
|
||||
@@ -497,7 +473,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.city"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressCity')"
|
||||
ref="city"
|
||||
data-cy="city"
|
||||
@@ -516,7 +491,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.region"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressStateProv')"
|
||||
ref="region"
|
||||
data-cy="region"
|
||||
@@ -535,7 +509,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.country"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressCountry')"
|
||||
ref="country"
|
||||
data-cy="country"
|
||||
@@ -554,7 +527,6 @@
|
||||
<gz-decimal
|
||||
v-model="obj.latitude"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressLatitude')"
|
||||
ref="latitude"
|
||||
data-cy="latitude"
|
||||
@@ -575,7 +547,6 @@
|
||||
<gz-decimal
|
||||
v-model="obj.longitude"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressLongitude')"
|
||||
ref="longitude"
|
||||
data-cy="longitude"
|
||||
@@ -629,7 +600,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.postAddress"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressPostalDeliveryAddress')"
|
||||
ref="postAddress"
|
||||
data-cy="postAddress"
|
||||
@@ -648,7 +618,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.postCity"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressPostalCity')"
|
||||
ref="postCity"
|
||||
data-cy="postCity"
|
||||
@@ -667,7 +636,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.postRegion"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressPostalStateProv')"
|
||||
ref="postRegion"
|
||||
data-cy="postRegion"
|
||||
@@ -686,7 +654,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.postCountry"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressPostalCountry')"
|
||||
ref="postCountry"
|
||||
data-cy="postCountry"
|
||||
@@ -705,7 +672,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.postCode"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AddressPostalPostal')"
|
||||
ref="postCode"
|
||||
data-cy="postCode"
|
||||
@@ -750,7 +716,7 @@
|
||||
<v-btn
|
||||
class="ml-12"
|
||||
@click="addContact"
|
||||
:disabled="obj.id == 0"
|
||||
:disabled="obj.id == 0 || formState.readOnly"
|
||||
>
|
||||
<v-icon data-cy="add">$ayiPlus</v-icon>
|
||||
</v-btn>
|
||||
@@ -1436,6 +1402,7 @@ async function clickHandler(menuItem) {
|
||||
function generateMenu(vm) {
|
||||
let menuOptions = {
|
||||
isMain: false,
|
||||
readOnly: vm.formState.readOnly,
|
||||
icon: "$ayiAddressCard",
|
||||
title: "Customer",
|
||||
helpUrl: "form-customer",
|
||||
|
||||
@@ -63,7 +63,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.name"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Name')"
|
||||
:rules="[form().required(this, 'name')]"
|
||||
:error-messages="form().serverErrors(this, 'name')"
|
||||
@@ -78,7 +77,6 @@
|
||||
:label="$ay.t('AuthorizationRoles')"
|
||||
v-model="obj.roles"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="roles"
|
||||
testId="roles"
|
||||
:error-messages="form().serverErrors(this, 'roles')"
|
||||
@@ -97,7 +95,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.active"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Active')"
|
||||
ref="active"
|
||||
data-cy="active"
|
||||
@@ -154,7 +151,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.notes"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserNotes')"
|
||||
:error-messages="form().serverErrors(this, 'notes')"
|
||||
ref="notes"
|
||||
@@ -168,7 +164,6 @@
|
||||
<gz-tag-picker
|
||||
v-model="obj.tags"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="tags"
|
||||
data-cy="tags"
|
||||
:error-messages="form().serverErrors(this, 'tags')"
|
||||
@@ -181,7 +176,6 @@
|
||||
v-model="obj.customFields"
|
||||
:formKey="formCustomTemplateKey"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:parentVM="this"
|
||||
ref="customFields"
|
||||
data-cy="customFields"
|
||||
@@ -197,7 +191,6 @@
|
||||
ref="wiki"
|
||||
v-model="obj.wiki"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
@input="fieldValueChanged('wiki')"
|
||||
></gz-wiki
|
||||
></v-col>
|
||||
@@ -208,7 +201,6 @@
|
||||
>
|
||||
<gz-attachments
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:ayaType="ayaType"
|
||||
:ayaId="obj.id"
|
||||
></gz-attachments
|
||||
@@ -252,7 +244,6 @@
|
||||
<gz-phone
|
||||
v-model="optionsObj.phone1"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserPhone1')"
|
||||
ref="phone1"
|
||||
data-cy="phone1"
|
||||
@@ -271,7 +262,6 @@
|
||||
<gz-phone
|
||||
v-model="optionsObj.phone2"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserPhone2')"
|
||||
ref="phone2"
|
||||
data-cy="phone2"
|
||||
@@ -290,7 +280,6 @@
|
||||
<gz-phone
|
||||
v-model="optionsObj.phone3"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserPageAddress')"
|
||||
ref="phone3"
|
||||
data-cy="phone3"
|
||||
|
||||
@@ -13,7 +13,6 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('NotifyEventType')"
|
||||
ref="eventType"
|
||||
data-cy="eventType"
|
||||
@@ -37,7 +36,6 @@
|
||||
<gz-duration-picker
|
||||
v-model="obj.ageValue"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Duration')"
|
||||
:showSeconds="false"
|
||||
ref="ageValue"
|
||||
@@ -54,7 +52,6 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AyaType')"
|
||||
ref="ayaType"
|
||||
data-cy="ayaType"
|
||||
@@ -68,7 +65,6 @@
|
||||
<gz-duration-picker
|
||||
v-model="obj.advanceNotice"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('NotifySubscriptionPendingSpan')"
|
||||
:showSeconds="false"
|
||||
ref="advanceNotice"
|
||||
@@ -85,7 +81,6 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('NotifyDeliveryMethod')"
|
||||
ref="deliveryMethod"
|
||||
data-cy="deliveryMethod"
|
||||
@@ -99,7 +94,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.deliveryAddress"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:clearable="!formState.readOnly"
|
||||
@click:clear="fieldValueChanged('deliveryAddress')"
|
||||
:label="$ay.t('NotifyDeliveryAddress')"
|
||||
@@ -121,7 +115,6 @@
|
||||
v-model="obj.tags"
|
||||
:label="$ay.t('TaggedWith')"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="tags"
|
||||
data-cy="tags"
|
||||
:error-messages="form().serverErrors(this, 'tags')"
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
<gz-phone
|
||||
v-model="obj.phone1"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserPhone1')"
|
||||
ref="phone1"
|
||||
data-cy="phone1"
|
||||
@@ -58,7 +57,6 @@
|
||||
<gz-phone
|
||||
v-model="obj.phone2"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserPhone2')"
|
||||
ref="phone2"
|
||||
data-cy="phone2"
|
||||
@@ -77,7 +75,6 @@
|
||||
<gz-phone
|
||||
v-model="obj.phone3"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserPageAddress')"
|
||||
ref="phone3"
|
||||
data-cy="phone3"
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.active"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Active')"
|
||||
ref="active"
|
||||
:error-messages="form().serverErrors(this, 'active')"
|
||||
@@ -25,7 +24,6 @@
|
||||
:error-messages="form().serverErrors(this, 'backupTime')"
|
||||
v-model="obj.backupTime"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="backupTime"
|
||||
@input="fieldValueChanged('backupTime')"
|
||||
></gz-time-picker>
|
||||
@@ -35,7 +33,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.backupAttachments"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('BackupAttachments')"
|
||||
ref="backupAttachments"
|
||||
:error-messages="form().serverErrors(this, 'backupAttachments')"
|
||||
@@ -47,7 +44,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.backupSetsToKeep"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('BackupSetsToKeep')"
|
||||
ref="backupSetsToKeep"
|
||||
:rules="[form().integerValid(this, 'backupSetsToKeep')]"
|
||||
|
||||
@@ -46,7 +46,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.smtpDeliveryActive"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('SmtpDeliveryActive')"
|
||||
:persistent-hint="true"
|
||||
ref="smtpDeliveryActive"
|
||||
@@ -61,7 +60,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.smtpServerAddress"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('SmtpServerAddress')"
|
||||
:rules="[form().required(this, 'smtpServerAddress')]"
|
||||
:error-messages="form().serverErrors(this, 'smtpServerAddress')"
|
||||
@@ -74,7 +72,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.smtpAccount"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('SmtpAccount')"
|
||||
:rules="[form().required(this, 'smtpAccount')]"
|
||||
:error-messages="form().serverErrors(this, 'smtpAccount')"
|
||||
@@ -88,7 +85,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.smtpPassword"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('SmtpPassword')"
|
||||
:rules="[form().required(this, 'smtpPassword')]"
|
||||
:error-messages="form().serverErrors(this, 'smtpPassword')"
|
||||
@@ -104,7 +100,6 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ConnectionSecurity')"
|
||||
ref="connectionSecurity"
|
||||
data-cy="connectionSecurity"
|
||||
@@ -122,7 +117,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.smtpServerPort"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('SmtpServerPort')"
|
||||
:rules="[
|
||||
form().integerValid(this, 'smtpServerPort'),
|
||||
@@ -140,7 +134,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.notifyFromAddress"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('NotifyFromAddress')"
|
||||
:rules="[form().required(this, 'notifyFromAddress')]"
|
||||
:error-messages="form().serverErrors(this, 'notifyFromAddress')"
|
||||
@@ -154,7 +147,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.ayaNovaServerURL"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('AyaNovaServerURL')"
|
||||
:rules="[form().required(this, 'ayaNovaServerURL')]"
|
||||
:error-messages="form().serverErrors(this, 'ayaNovaServerURL')"
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
v-model="obj.serverState"
|
||||
:mandatory="true"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
@change="fieldValueChanged('serverState')"
|
||||
>
|
||||
<v-radio
|
||||
@@ -28,7 +27,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.reason"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('ServerStateReason')"
|
||||
:error-messages="form().serverErrors(this, 'reason')"
|
||||
ref="reason"
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.name"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('WidgetName')"
|
||||
:rules="[form().required(this, 'name')]"
|
||||
:error-messages="form().serverErrors(this, 'name')"
|
||||
@@ -30,7 +29,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.serial"
|
||||
:readonly="true"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('WidgetSerial')"
|
||||
data-cy="serial"
|
||||
></v-text-field>
|
||||
@@ -45,7 +43,6 @@
|
||||
<v-text-field
|
||||
v-model="obj.count"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:clearable="!formState.readOnly"
|
||||
@click:clear="fieldValueChanged('count')"
|
||||
:counter="10"
|
||||
@@ -69,7 +66,6 @@
|
||||
<gz-currency
|
||||
v-model="obj.dollarAmount"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('WidgetDollarAmount')"
|
||||
ref="dollarAmount"
|
||||
data-cy="dollarAmount"
|
||||
@@ -87,7 +83,6 @@
|
||||
:label="$ay.t('WidgetStartDate')"
|
||||
v-model="obj.startDate"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="startDate"
|
||||
testId="startDate"
|
||||
:error-messages="form().serverErrors(this, 'startDate')"
|
||||
@@ -102,7 +97,6 @@
|
||||
:error-messages="form().serverErrors(this, 'endDate')"
|
||||
v-model="obj.endDate"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="endDate"
|
||||
testId="endDate"
|
||||
@input="fieldValueChanged('endDate')"
|
||||
@@ -118,7 +112,6 @@
|
||||
<v-checkbox
|
||||
v-model="obj.active"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('Active')"
|
||||
ref="active"
|
||||
data-cy="active"
|
||||
@@ -139,7 +132,6 @@
|
||||
:showEditIcon="true"
|
||||
v-model="obj.userId"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('User')"
|
||||
ref="userid"
|
||||
data-cy="userid"
|
||||
@@ -161,7 +153,6 @@
|
||||
item-text="name"
|
||||
item-value="id"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('UserType')"
|
||||
ref="usertype"
|
||||
data-cy="usertype"
|
||||
@@ -175,7 +166,6 @@
|
||||
<v-textarea
|
||||
v-model="obj.notes"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:label="$ay.t('WidgetNotes')"
|
||||
:error-messages="form().serverErrors(this, 'notes')"
|
||||
ref="notes"
|
||||
@@ -190,7 +180,6 @@
|
||||
<gz-tag-picker
|
||||
v-model="obj.tags"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
ref="tags"
|
||||
data-cy="tags"
|
||||
:error-messages="form().serverErrors(this, 'tags')"
|
||||
@@ -203,7 +192,6 @@
|
||||
v-model="obj.customFields"
|
||||
:formKey="formCustomTemplateKey"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:parentVM="this"
|
||||
ref="customFields"
|
||||
data-cy="customFields"
|
||||
@@ -219,7 +207,6 @@
|
||||
ref="wiki"
|
||||
v-model="obj.wiki"
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
@input="fieldValueChanged('wiki')"
|
||||
></gz-wiki
|
||||
></v-col>
|
||||
@@ -230,7 +217,6 @@
|
||||
>
|
||||
<gz-attachments
|
||||
:readonly="formState.readOnly"
|
||||
:disabled="formState.readOnly"
|
||||
:ayaType="ayaType"
|
||||
:ayaId="obj.id"
|
||||
></gz-attachments
|
||||
|
||||
Reference in New Issue
Block a user