[ADD] open/close arrow next to import options
bzr revid: xmo@openerp.com-20111024141737-bk2rg08wvll1hgno
This commit is contained in:
parent
b45b7ad22c
commit
cd59e5e6fb
|
@ -11,6 +11,18 @@
|
|||
.openerp .oe_import_grid-row .oe_import_grid-cell {
|
||||
border-bottom: 1px solid #E3E3E3;
|
||||
}
|
||||
.openerp .oe-import fieldset {
|
||||
cursor: pointer;
|
||||
}
|
||||
.openerp .oe-import fieldset legend:before {
|
||||
content: '\25BC ';
|
||||
}
|
||||
.openerp .oe-import fieldset.oe-closed legend:before {
|
||||
content: '\25B6 ';
|
||||
}
|
||||
.openerp .oe-import fieldset.oe-closed table {
|
||||
display: none;
|
||||
}
|
||||
.openerp .separator.horizontal {
|
||||
font-weight: bold;
|
||||
border-bottom-width: 1px;
|
||||
|
|
|
@ -81,7 +81,7 @@ openerp.web.DataImport = openerp.web.Dialog.extend({
|
|||
this.$element.find('#csvfile').change(this.on_autodetect_data);
|
||||
this.$element.find('fieldset').change(this.on_autodetect_data);
|
||||
this.$element.delegate('fieldset legend', 'click', function() {
|
||||
$(this).next().toggle();
|
||||
$(this).parent().toggleClass('oe-closed');
|
||||
});
|
||||
this.ready.push(new openerp.web.DataSet(this, this.model).call(
|
||||
'fields_get', [], function (fields) {
|
||||
|
|
|
@ -1409,7 +1409,8 @@
|
|||
<a id="importview" href="javascript: void(0)" style="text-decoration: none;color: #3D3D3D;">Import</a>
|
||||
</t>
|
||||
<t t-name="ImportDataView">
|
||||
<form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data">
|
||||
<form name="import_data" id="import_data" action="" method="post" enctype="multipart/form-data"
|
||||
class="oe-import">
|
||||
<input type="hidden" name="session_id" t-att-value="session.session_id"/>
|
||||
<h2 class="separator horizontal">1. Import a .CSV file</h2>
|
||||
<p>Select a .CSV file to import. If you need a sample of file to import,
|
||||
|
@ -1440,9 +1441,9 @@
|
|||
<t t-esc="cell"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
<fieldset>
|
||||
<legend style="cursor:pointer;">Import Options</legend>
|
||||
<table style="display:none">
|
||||
<fieldset class="oe-closed">
|
||||
<legend>Import Options</legend>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
<label for="file_has_headers">Does your file have titles?</label>
|
||||
|
|
Loading…
Reference in New Issue