Commit 28194192 authored by Ghislain Loas's avatar Ghislain Loas

dev #71715 improve file browser rendering

parent 14f10477
......@@ -405,6 +405,9 @@ class ZendAfi_View_Helper_Admin_FileManager extends ZendAfi_View_Helper_BaseHelp
protected function _search($term, $item, $key, $settings) {
if($item->isFile())
return '';
$url = $this->view->url(['search_' . $key => null]) . '&search_' . $key;
$onclick = $this->view->isPopup()
? sprintf("var value = encodeURIComponent($(this).closest('div').find('input').val());opacDialogFromUrl(addPath('%s=' + value, '&render=popup'));", $url)
......@@ -414,7 +417,7 @@ class ZendAfi_View_Helper_Admin_FileManager extends ZendAfi_View_Helper_BaseHelp
null,
['type' => 'text',
'value' => $term,
'placeholder' => $term ? $term : $this->_('Rechercher'),
'placeholder' => $term ? $term : $this->_('Rechercher dans "%s"', $item->getPath()),
'name' => 'search_' . $key,
'onkeypress' => sprintf('if (event.keyCode==13) {%s}', $onclick)]) .
$this->view->button((new Class_Entity)
......
......@@ -56,11 +56,12 @@ body .file-manager .browser li.wall-item,
body .file-manager .file-manager-contextmenu,
body .file-manager .file-manager-tools > div,
body .file-manager .tree > ul,
body .file-manager .browser {
body .file-manager .browser,
body .file-manager .browser table {
vertical-align: top;
box-shadow: 1px 1px 5px var(--widget-shadow);
padding: 0.4%;
margin: 0 0.4%;
padding: 1ex 0.4%;
margin: 1ex 0.4%;
}
body .file-manager dt .fa,
......@@ -82,7 +83,7 @@ body .file-manager a.opened {
body .file-manager .browser h2 {
text-transform: none;
padding: 0;
margin: 0 0 0.5em 0;
margin: 1ex 0;
border: none;
color: var(--nav-background);
}
......@@ -143,7 +144,7 @@ body .file-manager .browser.current_browser {
}
body .file-manager .browser h2 {
font-size: 1em;
font-size: 1.2em;
white-space: nowrap;
}
......@@ -256,6 +257,8 @@ body .file-manager .browser dl + a {
body .file-manager .actions a {
display: none;
margin-left: 0;
margin-right: 5px;
}
body .file-manager .file-manager-contextmenu a,
......@@ -266,6 +269,11 @@ body .file-manager .actions > a.directory {
body .file-manager .show_actions > .actions > a {
display: inline-block;
margin: 0 1em 0 0;
}
body .file-manager .show_actions > .actions > a:empty {
margin: 0;
}
body .file-manager .show_actions > .actions > a:first-child {
......@@ -284,6 +292,7 @@ body .file-manager .admin-button {
body .file-manager .browser_tools input {
line-height: 1.62em;
width: 40%;
}
body .file-manager p,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment