Subversion Repositories wpShopGermany4

Rev

Rev 7002 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php
    
    /**
     * User: Daschmi (https://daschmi.de)
     * Date: 02.05.2018
     * Time: 07:25
     */

?>
    
<?php echo wpsg_drawForm_AdminboxStart(__('Bestellupload', 'wpsg')); ?>

    <?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload_set', __('Bestellupload ermöglichen'), (($this->view['wpsg_mod_orderupload']['set'] > 0)?true:false)); ?>

    <div class="wpsg_mod_orderupload_set_1" style="<?php echo (($this->view['wpsg_mod_orderupload']['set'] > 0)?'display:block;':'display:none;'); ?>">

        <?php echo wpsg_drawForm_Input('wpsg_mod_orderupload[set]', __('Maximale Anzahl an Uploads'), $this->view['wpsg_mod_orderupload']['set']); ?>
        <?php echo wpsg_drawForm_Checkbox('wpsg_mod_orderupload[mandatory]', __('Pflichtfeld'), $this->view['wpsg_mod_orderupload']['mandatory']); ?>
        
    </div>    

    <script>
        
        jQuery(document).ready(function() {
            
            jQuery('#wpsg_mod_orderupload_set').on('change', function() {
                
                if (jQuery(this).prop('checked') === true) {
                    
                    jQuery('.wpsg_mod_orderupload_set_1').show();
                    jQuery('#wpsg_mod_orderuploadset').focus();
                    
                } else {

                    jQuery('.wpsg_mod_orderupload_set_1').hide();
                    
                }
                
            } ).change();
            
        } );
        
    </script>

<?php echo wpsg_drawForm_AdminboxEnd(); ?>