Created
April 12, 2021 12:17
-
-
Save camilamoreiradev/2b72e250fe73e018b1f6d27a7b058dc3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(isset([usr_company]) && !empty([usr_company])){ | |
[var_where_fld_contact] = " cm.company_id = ".[usr_company]." ORDER BY cm.company_name, ct.contact_name"; | |
} | |
else{ | |
[var_where_fld_contact] = " 1=1 ORDER BY cm.company_name, ct.contact_name"; | |
} | |
echo <<<HTML | |
<style> | |
div#div_hidden_bloco_4 { | |
margin-left: 20px !important; | |
} | |
</style> | |
<script> | |
$(document).ready(function() { | |
var local, novo_local, button, input, span, inputdiv, buttondiv, spandiv; | |
local = $('#id_read_off_requisition_target_fill_date > span'); | |
$(local).prepend('<div class="input-group"></div>'); | |
novo_local = $('#id_read_off_requisition_target_fill_date > span > div'); | |
button = $('#id_read_off_requisition_target_fill_date > span > button'); | |
$(button).appendTo(novo_local); | |
input = $('#id_read_off_requisition_target_fill_date > span > input'); | |
$(input).prependTo(novo_local); | |
inputdiv = $('#id_read_off_requisition_target_fill_date > span > div > input'); | |
$(inputdiv).attr('aria-describedby', 'basic-calendar'); | |
spandiv = $('#id_read_off_requisition_target_fill_date > span > div > button > span'); | |
$(spandiv).addClass('input-group-text').attr('id', 'basic-calendar').removeClass('scButton_fontawesome').css({'border-radius': '0 6px 6px 0', 'padding': '10px 12px'}); | |
buttondiv = $('#id_read_off_requisition_target_fill_date > span > div > button'); | |
$(buttondiv).css('margin', '.25rem auto 0 -1px'); | |
}); | |
</script> | |
HTML; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment