<?php echo $__env->make("Backend::head", array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<style>
    html {
        overflow:visible;
        overflow-y:visible;
    }

    body {
        background-color:#fff;
        overflow:visible;
        overflow-y:visible;
    }
</style>

<script type="text/javascript">
    $(function() {
        $("html, body").css('overflow', 'visible');

        $("#choose-tag-form").bind("submit", function(e) {
            e.preventDefault();

            $("#tag-form-container").fadeTo(200, 0.6);
            $("#tag-form-container input[type='submit']").prop('disabled', true);

            $.ajax({
                url: $("#gallerytag").val(),
                type: "GET"
            }).done(function(response) {
                $("#tag-form-container").html(response);

                App.Binder.bindTiptip();
                App.Binder.bindSelect2();
            }).always(function() {
                $("#tag-form-container").fadeTo(1, 1);
                $("#tag-form-container input[type='submit']").prop('disabled', false);
            });
        });
    });
</script>
<div id="tag-form-container">
<?php echo Former::open()->id('choose-tag-form'); ?>


    <?php echo Former::select('gallerytag', false)->options($translatedTagNames); ?>


    <?php echo Former::actions(Former::primary_submit('OK')); ?>


<?php echo Former::close(); ?>

</div>