<style>


.ulp-sortable-field-ul{


    list-style-type: none;


}


.ulp-sortable-field-ul li {


    cursor: move;


    margin-bottom: 2px;


    background: #f7f7f7;


    background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));


    border: 1px solid #d1d1d1;


    border-radius: 2px;


    color: #686868;


    padding: 0.625em 0.4375em;


    width: 100%;


}


</style>


<script>


jQuery(document).ready(function(){


	jQuery('.ulp-sortable-field-ul').sortable({


		 update: function(e, ui) {


			   jQuery('.ulp-sortable-field-ul li').each(function (i, row) {});


		 }


	});


});


</script>


<div class="ulp-sorting-field-wrapp">


    <?php if ($data ['values']):?>


        <ul class="ulp-sortable-field-ul">


            <?php foreach ($data ['values'] as $value):?>


                <li>


                    <span class="input-group-addon"><i class="fa-ulp fa-sort-ulp"></i></span>


                    <span><?php echo $value;?></span>


                    <input type="hidden" data-field_type="sorting" name="<?php echo $data ['name'] . '[]';?>" class='<?php echo $data ['classes'] . ' ' . $data ['field_extra_attributes'];?>' value="<?php echo $value;?>" />


                </li>


            <?php endforeach;?>


        </ul>


    <?php endif;?>


</div>


