mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
salutationField prop
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-xs-3">
|
||||
<select data-name="salutation{{ucName}}" class="form-control">
|
||||
{{options salutationOptions salutationValue field='salutationName' scope=scope}}
|
||||
{{options salutationOptions salutationValue field=salutationField scope=scope}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-5 col-xs-5">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-xs-3">
|
||||
<select data-name="salutation{{ucName}}" class="form-control">
|
||||
{{options salutationOptions salutationValue field='salutationName' scope=scope}}
|
||||
{{options salutationOptions salutationValue field=salutationField scope=scope}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-9 col-xs-9">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-xs-3">
|
||||
<select data-name="salutation{{ucName}}" class="form-control">
|
||||
{{options salutationOptions salutationValue field='salutationName' scope=scope}}
|
||||
{{options salutationOptions salutationValue field=salutationField scope=scope}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-5 col-xs-5">
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div class="row">
|
||||
<div class="col-sm-3 col-xs-3">
|
||||
<select data-name="salutation{{ucName}}" class="form-control">
|
||||
{{options salutationOptions salutationValue field='salutationName' scope=scope}}
|
||||
{{options salutationOptions salutationValue field=salutationField scope=scope}}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-sm-4 col-xs-4">
|
||||
|
||||
@@ -50,6 +50,13 @@ class PersonNameFieldView extends VarcharFieldView {
|
||||
'pattern',
|
||||
]
|
||||
|
||||
/**
|
||||
* @protected
|
||||
* @type {string}
|
||||
* @since 9.3.0
|
||||
*/
|
||||
salutationField
|
||||
|
||||
data() {
|
||||
const data = super.data();
|
||||
|
||||
@@ -59,6 +66,7 @@ class PersonNameFieldView extends VarcharFieldView {
|
||||
data.lastValue = this.model.get(this.lastField);
|
||||
data.middleValue = this.model.get(this.middleField);
|
||||
data.salutationOptions = this.salutationOptions;
|
||||
data.salutationField = this.salutationField;
|
||||
|
||||
if (this.isEditMode()) {
|
||||
data.firstMaxLength = this.model.getFieldParam(this.firstField, 'maxLength');
|
||||
|
||||
Reference in New Issue
Block a user