Improve layout of contact import form

Move the file input to the .propform table.
pull/6144/head
Aleksander Machniak 7 years ago
parent 34301505c9
commit ec25fa857b

@ -459,7 +459,7 @@ $labels['searchdelete'] = 'Delete search';
$labels['import'] = 'Import';
$labels['importcontacts'] = 'Import contacts';
$labels['importfromfile'] = 'Import from file:';
$labels['importfromfile'] = 'Import from file';
$labels['importtarget'] = 'Add contacts to';
$labels['importreplace'] = 'Replace the entire address book';
$labels['importgroups'] = 'Import group assignments';

@ -204,15 +204,19 @@ function rcmail_import_form($attrib)
$writable_books = $RCMAIL->get_address_sources(true, true);
$form = '';
$table = new html_table(array('cols' => 2));
$upload = new html_inputfield(array(
'type' => 'file',
'name' => '_file[]',
'id' => 'rcmimportfile',
'size' => 40,
'multiple' => 'multiple',
'class' => 'form-control-file',
));
$form = html::p(null, html::label('rcmimportfile', $RCMAIL->gettext('importfromfile')) . $upload->show());
$table = new html_table(array('cols' => 2));
$table->add('title', html::label('rcmimportfile', $RCMAIL->gettext('importfromfile')));
$table->add(null, $upload->show());
// addressbook selector
if (count($writable_books) > 1) {

Loading…
Cancel
Save