// Csv import fix hide checkbox

This commit is contained in:
Jerome Nadaud committed 2013-11-20 16:11:37 +01:00
1 parent 0b3c08acbe
commit e5d03f4e7c
1 file changed
+12 -12
@@ -201,11 +201,11 @@
</p> </p>
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group" style="display: none">
<label for="match_ref" class="control-label col-lg-3" style="display: none">{l s='Use product reference as key?'}</label> <label for="match_ref" class="control-label col-lg-3">{l s='Use product reference as key?'}</label>
<div class="col-lg-6"> <div class="col-lg-6">
<p class="checkbox"> <p class="checkbox">
<input name="match_ref" id="match_ref" type="checkbox" style="display:none"/> <input name="match_ref" id="match_ref" type="checkbox" />
</p> </p>
</div> </div>
</div> </div>
@@ -228,9 +228,9 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="match_ref" class="control-label col-lg-3" style="display: none">{l s='Use product reference as key?'}</label> <div class="col-lg-6 col-lg-push-3">
<div class="col-lg-6"> <input type="submit" name="submitImportFile" id="submitImportFile" value="{l s='Next step'}" class="btn btn-default" {if empty($files_to_import)}disabled{/if}/>
<input type="submit" name="submitImportFile" value="{l s='Next step'}" class="btn btn-default" {if empty($files_to_import)}disabled{/if}/> </div>
</div> </div>
{if empty($files_to_import)} {if empty($files_to_import)}
@@ -305,9 +305,9 @@
$('input[name=multiple_value_separator]').val('{if isset($multiple_value_separator_selected)}{$multiple_value_separator_selected}{else},{/if}'); $('input[name=multiple_value_separator]').val('{if isset($multiple_value_separator_selected)}{$multiple_value_separator_selected}{else},{/if}');
} }
if ($("#entity > option:selected").val() == 1) if ($("#entity > option:selected").val() == 1)
$("label[for=match_ref], #match_ref").show(); $("#match_ref").closest('.form-group.').show();
else else
$("label[for=match_ref], #match_ref").hide(); $("#match_ref").closest('.form-group.').hide();
if ($("#entity > option:selected").val() == 1 || $("#entity > option:selected").val() == 0) if ($("#entity > option:selected").val() == 1 || $("#entity > option:selected").val() == 0)
$(".import_products_categories").show(); $(".import_products_categories").show();
@@ -316,14 +316,14 @@
if ($("#entity > option:selected").val() == 0 || $("#entity > option:selected").val() == 1 || if ($("#entity > option:selected").val() == 0 || $("#entity > option:selected").val() == 1 ||
$("#entity > option:selected").val() == 5 || $("#entity > option:selected").val() == 6) $("#entity > option:selected").val() == 5 || $("#entity > option:selected").val() == 6)
$("label[for=regenerate], #regenerate").show() $("#regenerate").closest('.form-group.').show();
else else
$("label[for=regenerate], #regenerate").hide(); $("#regenerate").closest('.form-group.').hide();
if ($("#entity > option:selected").val() == 0 || $("#entity > option:selected").val() == 1 || $("#entity > option:selected").val() == 3 || $("#entity > option:selected").val() == 5 || $("#entity > option:selected").val() == 6 || $("#entity > option:selected").val() == 7) if ($("#entity > option:selected").val() == 0 || $("#entity > option:selected").val() == 1 || $("#entity > option:selected").val() == 3 || $("#entity > option:selected").val() == 5 || $("#entity > option:selected").val() == 6 || $("#entity > option:selected").val() == 7)
$("label[for=forceIDs], #forceIDs").show(); $("#forceIDs").closest('.form-group.').show();
else else
$("label[for=forceIDs], #forceIDs").hide(); $("#forceIDs").closest('.form-group.').hide();
$("#entitie").html($("#entity > option:selected").text().toLowerCase()); $("#entitie").html($("#entity > option:selected").text().toLowerCase());
$.ajax({ $.ajax({
url: 'ajax.php', url: 'ajax.php',