TT#29201 collapse contact name columns

datatables for contact selectors are squeezed, causing undesired
linebreaks.

the firstname and lastname columns therefore are collapsed to form
a single "Name" column. It will use up less hspace in the end.

Change-Id: I0ec99961d8632eb924b48978ce5a6d2d79602361
changes/37/40737/4
Rene Krenn 5 years ago
parent 22e95b3f34
commit 2c94115a15

@ -10,8 +10,11 @@ has_field 'id' => (
required => 1,
template => 'helpers/datatables_field.tt',
ajax_src => '/contact/ajax',
table_titles => ['#', 'Reseller', 'First Name', 'Last Name', 'Email'],
table_fields => ['id', 'reseller_name', 'firstname', 'lastname', 'email'],
table_titles => ['#', 'Reseller', 'Name', 'Email'],
table_fields => ['id', 'reseller_name', 'firstname', 'email'],
custom_renderers => {
firstname => 'function ( data, type, full ) { var sep = (full.firstname && full.lastname) ? " " : ""; return (full.firstname || "") + sep + (full.lastname || ""); }',
},
);
has_field 'create' => (

@ -10,8 +10,11 @@ has_field 'id' => (
required => 1,
template => 'helpers/datatables_field.tt',
ajax_src => '/contact/ajax_noreseller',
table_titles => ['#', 'First Name', 'Last Name', 'Email'],
table_fields => ['id', 'firstname', 'lastname', 'email'],
table_titles => ['#', 'Name', 'Email'],
table_fields => ['id', 'firstname', 'email'],
custom_renderers => {
firstname => 'function ( data, type, full ) { var sep = (full.firstname && full.lastname) ? " " : ""; return (full.firstname || "") + sep + (full.lastname || ""); }',
},
);
has_field 'create' => (

@ -10,8 +10,11 @@ has_field 'id' => (
required => 1,
template => 'helpers/datatables_field.tt',
ajax_src => '/contact/ajax_reseller',
table_titles => ['#', 'Reseller', 'First Name', 'Last Name', 'Email'],
table_fields => ['id', 'reseller_name', 'firstname', 'lastname', 'email'],
table_titles => ['#', 'Reseller', 'Name', 'Email'],
table_fields => ['id', 'reseller_name', 'firstname', 'email'],
custom_renderers => {
firstname => 'function ( data, type, full ) { var sep = (full.firstname && full.lastname) ? " " : ""; return (full.firstname || "") + sep + (full.lastname || ""); }',
},
);
has_field 'create' => (

@ -12,7 +12,9 @@ has_field 'profile_id' => (
ajax_src => '/billing/ajax',
table_titles => ['#', 'Reseller', 'Profile'],
table_fields => ['id', 'reseller_name', 'name'],
custom_renderers => { name => 'function ( data, type, full ) { if(data.length > 13) data = data.substring(0,10) + \'...\'; return data; }'}
custom_renderers => {
name => 'function ( data, type, full ) { if(data.length > 13) data = data.substring(0,10) + \'...\'; return data; }',
},
);
has_field 'network_id' => (
@ -25,7 +27,9 @@ has_field 'network_id' => (
ajax_src => '/network/ajax',
table_titles => ['#', 'Reseller', 'Network'],
table_fields => ['id', 'reseller_name', 'name'],
custom_renderers => { name => 'function ( data, type, full ) { if(data.length > 13) data = data.substring(0,10) + \'...\'; return data; }'}
custom_renderers => {
name => 'function ( data, type, full ) { if(data.length > 13) data = data.substring(0,10) + \'...\'; return data; }',
},
);
no Moose;

Loading…
Cancel
Save