Commit ef12490f by Damien Moulard

create add products button

parent 7dd04f64
......@@ -205,6 +205,16 @@ tr.odd td.row_product_no_qty {
background-color: rgb(236, 182, 106); /*#ec971f*/
}
.add_products_button_container {
display: flex;
justify-content: center;
align-items: center;
}
#add_products_button {
display: none;
}
/* Accordion style */
/* Style the buttons that are used to open and close the accordion panel */
......
......@@ -1830,6 +1830,9 @@ function init_dom(partners_display_data) {
document.getElementById('edition_header').innerHTML = "Editer les quantités";
document.getElementById('edition_input_label').innerHTML = "Qté";
// Add products button
document.getElementById('add_products_button').style.display = "block";
document.getElementById("valid_all").innerHTML = "<button class='btn--danger full_width_button' id='valid_all_qties' onclick=\"openModal($('#templates #modal_no_qties').html(), setAllQties, 'Confirmer');\" disabled>Il n'y a plus de produits à compter</button>";
document.getElementById("validation_button").innerHTML = "<button class='btn--primary full_width_button' id='valid_qty' onclick=\"pre_send('qty_valid')\" disabled>Valider le comptage des produits</button>";
......
......@@ -103,7 +103,7 @@
</div>
</div>
<div class="row-2 container_products" id="container_left">
<div class="container_products" id="container_left">
<h4 id="header_container_left"></h4>
<table id="table_to_process" class="display" cellspacing="0" ></table>
</div>
......@@ -111,6 +111,9 @@
<h4 id="header_container_right"></h4>
<table id="table_processed" class="display" cellspacing="0" ></table>
</div>
<div class="txtcenter add_products_button_container">
<button id="add_products_button" class="btn--inverse full_width_button">Ajouter des produits</button>
</div>
<div class="txtcenter">
<span id="validation_button"></span>
</div>
......
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