Contact Card text styling..
This commit is contained in:
		| @@ -420,16 +420,10 @@ abstract class DocumentForm extends Component | |||||||
|             case 'bill': |             case 'bill': | ||||||
|             case 'expense': |             case 'expense': | ||||||
|             case 'purchase': |             case 'purchase': | ||||||
|                 $textEditContact = [ |                 $textEditContact = 'general.form.edit'; | ||||||
|                     'general.form.contact_edit', |  | ||||||
|                     'general.vendors' |  | ||||||
|                 ]; |  | ||||||
|                 break; |                 break; | ||||||
|             default: |             default: | ||||||
|                 $textEditContact = [ |                 $textEditContact = 'general.form.edit'; | ||||||
|                     'general.form.contact_edit', |  | ||||||
|                     'general.customers' |  | ||||||
|                 ]; |  | ||||||
|                 break; |                 break; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -104,7 +104,7 @@ | |||||||
|                     </div> |                     </div> | ||||||
|  |  | ||||||
|                     <button type="button" class="btn btn-link p-0" @click="onContactEdit"> |                     <button type="button" class="btn btn-link p-0" @click="onContactEdit"> | ||||||
|                         {{ editContactText.replace(':contact_name', contact.name) }} |                         {{ editContactText.replace(':contact_name', contact.name).replace(':field', contact.name) }} | ||||||
|                     </button> •  |                     </button> •  | ||||||
|                     <button type="button" class="btn btn-link p-0" @click="onContactList"> |                     <button type="button" class="btn btn-link p-0" @click="onContactList"> | ||||||
|                         {{ chooseDifferentContactText }} |                         {{ chooseDifferentContactText }} | ||||||
| @@ -214,7 +214,7 @@ export default { | |||||||
|         }, |         }, | ||||||
|         editContactText: { |         editContactText: { | ||||||
|             type: String, |             type: String, | ||||||
|             default: 'Edit :contact_name Customer', |             default: 'Edit :contact_name', | ||||||
|             description: "" |             description: "" | ||||||
|         }, |         }, | ||||||
|         contactInfoText: { |         contactInfoText: { | ||||||
| @@ -388,7 +388,7 @@ export default { | |||||||
|  |  | ||||||
|             path += this.contact.id + '/edit'; |             path += this.contact.id + '/edit'; | ||||||
|  |  | ||||||
|             add_new.text = this.editContactText.replace(':contact_name', this.contact.name); |             add_new.text = this.editContactText.replace(':contact_name', this.contact.name).replace(':field', this.contact.name); | ||||||
|  |  | ||||||
|             window.axios.get(path) |             window.axios.get(path) | ||||||
|             .then(response => { |             .then(response => { | ||||||
|   | |||||||
| @@ -6,12 +6,12 @@ | |||||||
|     create-route="{{ $create_route }}" |     create-route="{{ $create_route }}" | ||||||
|     :contacts="{{ json_encode($contacts) }}" |     :contacts="{{ json_encode($contacts) }}" | ||||||
|     :selected="{{ json_encode($contact) }}" |     :selected="{{ json_encode($contact) }}" | ||||||
|     add-contact-text="{{ is_array($textAddContact) ? trans($textAddContact[0], ['field' => trans_choice($textAddContact[1], 1)]) : trans($textAddContact) }}" |     add-contact-text="{{ is_array($textAddContact) ? trans($textAddContact[0], ['field' => Str::lower(trans_choice($textAddContact[1], 1))]) : trans($textAddContact) }}" | ||||||
|     create-new-contact-text="{{ is_array($textCreateNewContact) ? trans($textCreateNewContact[0], ['field' => trans_choice($textCreateNewContact[1], 1)]) : trans($textCreateNewContact) }}" |     create-new-contact-text="{{ is_array($textCreateNewContact) ? trans($textCreateNewContact[0], ['field' => trans_choice($textCreateNewContact[1], 1)]) : trans($textCreateNewContact) }}" | ||||||
|     edit-contact-text="{{ is_array($textEditContact) ? trans($textEditContact[0], ['field' => trans_choice($textEditContact[1], 1)]) : trans($textEditContact) }}" |     edit-contact-text="{{ is_array($textEditContact) ? trans($textEditContact[0], ['field' => trans_choice($textEditContact[1], 1)]) : trans($textEditContact) }}" | ||||||
|     contact-info-text="{{ is_array($textContactInfo) ? trans($textContactInfo[0], ['field' => trans_choice($textContactInfo[1], 1)]) : trans($textContactInfo) }}" |     contact-info-text="{{ is_array($textContactInfo) ? trans($textContactInfo[0], ['field' => trans_choice($textContactInfo[1], 1)]) : trans($textContactInfo) }}" | ||||||
|     tax-number-text="{{ trans('general.tax_number') }}" |     tax-number-text="{{ trans('general.tax_number') }}" | ||||||
|     choose-different-contact-text="{{ is_array($textChooseDifferentContact) ? trans($textChooseDifferentContact[0], ['field' => trans_choice($textChooseDifferentContact[1], 1)]) : trans($textChooseDifferentContact) }}" |     choose-different-contact-text="{{ is_array($textChooseDifferentContact) ? trans($textChooseDifferentContact[0], ['field' => Str::lower(trans_choice($textChooseDifferentContact[1], 1))]) : trans($textChooseDifferentContact) }}" | ||||||
|     :add-new="{{ json_encode([ |     :add-new="{{ json_encode([ | ||||||
|         'status' => true, |         'status' => true, | ||||||
|         'text' => trans('general.add_new'), |         'text' => trans('general.add_new'), | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user