Placeholder dialog: Add "name, email, phone snippet", fix some more missing translation issues

This commit is contained in:
nathan 2021-09-28 10:16:57 -06:00
parent a39eeef7e7
commit f6828a8205
2 changed files with 5 additions and 4 deletions

View File

@ -368,8 +368,9 @@ export class et2_placeholder_snippet_select extends et2_placeholder_select
static placeholders = { static placeholders = {
"addressbook": { "addressbook": {
"addresses": { "addresses": {
"{{n_fn}}\n{{adr_one_street}}{{NELF adr_one_street2}}\n{{adr_one_formatted}}": "Work address", "{{org_name}}\n{{n_fn}}\n{{adr_one_street}}{{NELF adr_one_street2}}\n{{adr_one_formatted}}": "Business address",
"{{n_fn}}\n{{adr_two_street}}{{NELF adr_two_street2}}\n{{adr_two_formatted}}": "Home address", "{{n_fn}}\n{{adr_two_street}}{{NELF adr_two_street2}}\n{{adr_two_formatted}}": "Home address",
"{{n_fn}}\n{{email}}\n{{tel_work}}": "Name, email, phone"
} }
} }
}; };
@ -490,7 +491,7 @@ export class et2_placeholder_snippet_select extends et2_placeholder_select
options.push( options.push(
{ {
value: key, value: key,
label: et2_placeholder_snippet_select.placeholders[appname][group][key] label: this.egw().lang(et2_placeholder_snippet_select.placeholders[appname][group][key])
}); });
}); });
return options; return options;

View File

@ -9,7 +9,7 @@
<select id="placeholder_list"/> <select id="placeholder_list"/>
</vbox> </vbox>
<hrule/> <hrule/>
<link-entry id="entry" label="Select entry"/> <link-entry id="entry" label="Select entry" only_app="addressbook"/>
<hbox class="preview"> <hbox class="preview">
<description id="preview_content"/> <description id="preview_content"/>
</hbox> </hbox>
@ -49,7 +49,7 @@
flex-grow: 0; flex-grow: 0;
} }
div.et2_link_entry input.ui-autocomplete-input { div.et2_link_entry input.ui-autocomplete-input {
width: 75% width: 70%
} }
div.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset button, button#cancel, .et2_button { div.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset button, button#cancel, .et2_button {
border: none; border: none;