Contact Card text styling..

This commit is contained in:
Cüneyt Şentürk 2021-01-04 15:52:55 +03:00
parent 4a3ac3ac4e
commit 4b80655229
3 changed files with 7 additions and 13 deletions

View File

@ -420,16 +420,10 @@ abstract class DocumentForm extends Component
case 'bill':
case 'expense':
case 'purchase':
$textEditContact = [
'general.form.contact_edit',
'general.vendors'
];
$textEditContact = 'general.form.edit';
break;
default:
$textEditContact = [
'general.form.contact_edit',
'general.customers'
];
$textEditContact = 'general.form.edit';
break;
}

View File

@ -104,7 +104,7 @@
</div>
<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>&nbsp;&nbsp;
<button type="button" class="btn btn-link p-0" @click="onContactList">
{{ chooseDifferentContactText }}
@ -214,7 +214,7 @@ export default {
},
editContactText: {
type: String,
default: 'Edit :contact_name Customer',
default: 'Edit :contact_name',
description: ""
},
contactInfoText: {
@ -388,7 +388,7 @@ export default {
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)
.then(response => {

View File

@ -6,12 +6,12 @@
create-route="{{ $create_route }}"
:contacts="{{ json_encode($contacts) }}"
: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) }}"
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) }}"
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([
'status' => true,
'text' => trans('general.add_new'),