Commit 625384da authored by Gabriel Monnerat's avatar Gabriel Monnerat Committed by Jérome Perrin

HACK: Hide Configure and Sort buttons

Requested in an email from Galien Renault with title "Retour livraison interface consulaire" document "Retour livraison Interface Consulaire ERP5 .pdf" Suppression des boutons d’action : "Sort ", page 4.1.4 item A, page 14
parent 5444a7f2
...@@ -797,28 +797,29 @@ ...@@ -797,28 +797,29 @@
})); }));
} else { } else {
if (gadget.state.form_id && gadget.state.form_id.indexOf("form_list_sr") === -1) {
// Add Configure button
// <button {{disabled}} data-rel="configure_columns" data-i18n="Configure" name="Configure" type="button" class="ui-icon-wrench ui-btn-icon-left {{configure_class}}"></button>
div_element_list.push(domsugar('button', {
'disabled': gadget.state.disabled,
'data-rel': 'configure_columns',
'name': 'Configure',
'type': 'button',
'class': 'ui-icon-wrench ui-btn-icon-left ' + gadget.state.configure_class,
'text': translation_list[2]
}));
// Add Configure button // Add Sort button
// <button {{disabled}} data-rel="configure_columns" data-i18n="Configure" name="Configure" type="button" class="ui-icon-wrench ui-btn-icon-left {{configure_class}}"></button> // <button {{disabled}} data-rel="Sort" data-i18n="Sort" name="Sort" type="button" class="ui-icon-sort-amount-desc ui-btn-icon-left {{sort_class}}"></button>
div_element_list.push(domsugar('button', { div_element_list.push(domsugar('button', {
'disabled': gadget.state.disabled, 'disabled': gadget.state.disabled,
'data-rel': 'configure_columns', 'data-rel': 'Sort',
'name': 'Configure', 'name': 'Sort',
'type': 'button', 'type': 'button',
'class': 'ui-icon-wrench ui-btn-icon-left ' + gadget.state.configure_class, 'class': 'ui-icon-sort-amount-desc ui-btn-icon-left ' + gadget.state.sort_class,
'text': translation_list[2] 'text': translation_list[3]
})); }));;
}
// Add Sort button
// <button {{disabled}} data-rel="Sort" data-i18n="Sort" name="Sort" type="button" class="ui-icon-sort-amount-desc ui-btn-icon-left {{sort_class}}"></button>
div_element_list.push(domsugar('button', {
'disabled': gadget.state.disabled,
'data-rel': 'Sort',
'name': 'Sort',
'type': 'button',
'class': 'ui-icon-sort-amount-desc ui-btn-icon-left ' + gadget.state.sort_class,
'text': translation_list[3]
}));
if (gadget.state.editable) { if (gadget.state.editable) {
// Add Do button // Add Do button
......
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