<commit_before><div class="main">
    <div class="row addService">
        <div class="col-lg-12 col-md-12">
            <form id="addServiceForm" class="customform" action="<?php echo base_url('mts/add_service'); ?>" method="post">
                <div class="col-md-12">
                    <h1 class="text-info">Add New Service</h1></div>
                <!--<div class="col-lg-3 col-lg-offset-0 col-md-3"><i class="fa fa-user serviceIcon"></i></div>-->
                <div class="col-md-9">
                    <?php echo validation_errors(); ?>
                    <input class="form-control" type="text" placeholder="Enter Service Name" name="svc_name">
                    <input class="form-control" type="text" placeholder="Service Description" id="desc" name="svc_desc">
                </div>
                <div class="col-lg-3 col-md-3"></div>
                <div class="col-md-9">
                    <input class="form-control" type="text" placeholder="Duration" name="duration">
                    <input class="form-control" type="text" placeholder="Price" name="price">
                    <!--<input class="form-control" type="submit" value="Submit">-->    
                </div>
                <button class="form-control view-button">Submit</button>
            </form>
        </div>
    </div>
</div>

<!--<script>
    $(document).ready(function(){
        $('.view-button').click(function(event){
            event.preventDefault();
            //alert($(this).closest('.tab-pane').html());
            var tabPane = $(this).closest('.tab-pane');
            //var form = document.getElementById('addServiceForm');
            var formData = $('#addServiceForm').serialize();
            //alert(formData);
            $.ajax({
                    url: "<?php echo base_url('mts/add_service'); ?>",
                    data: formData,
                    type: "POST",
                    async: false,
                    
                    success: function(data){<commit_msg>updated add service form<commit_after><div class="main">
    <div class="row addService">
        <div class="col-lg-12 col-md-12">
            <form id="addServiceForm" class="customform" action="<?php echo base_url('mts/add_service'); ?>" method="post">
                <div class="col-md-12">
                    <h1 class="text-info">Add New Service</h1></div>
                <!--<div class="col-lg-3 col-lg-offset-0 col-md-3"><i class="fa fa-user serviceIcon"></i></div>-->
                <div class="col-md-9">
                    <?php echo validation_errors(); ?>
                    <input class="form-control" type="text" placeholder="Enter Service Name" name="svc_name">
                    <input class="form-control" type="text" placeholder="Service Description" id="desc" name="svc_desc">
                </div>
                
                <div class="col-md-9">
                    <input class="form-control" type="text" placeholder="Duration (mins)" name="duration">
                    <input class="form-control" type="text" placeholder="Price" name="price">
                    <!--<input class="form-control" type="submit" value="Submit">-->    

                    <h1 class="text-info">Service Provider</h1>
                    <div class="checkbox">
                        <label><input id="all_staff" type="checkbox" />All Staff</label>
                    </div>
                    <?php 
                        foreach($staffRecord as $s){
                            echo '<div class="checkbox">';
                            echo '<label><input type="checkbox" name="staff[]" value="'.$s['staff_id'].'" />'.$s['first_name'].' '.$s['last_name'].'</label>';
                            echo '</div>';
                        }
                    ?>

                    <button class="form-control view-button">Submit</button>
                </div>
            </form>
        </div>
    </div>
</div>

<script>
$(document).ready(function(){
    $('#all_staff').click(function(){
        if($(this).prop('checked') == true){
            $('input[name="staff[]"]').prop('checked',true);
        }
        else{
            $('input[name="staff[]"]').prop('checked',false);
        }
    });
});
</script>

<!--<script>
    $(document).ready(function(){
        $('.view-button').click(function(event){
            event.preventDefault();
            //alert($(this).closest('.tab-pane').html());
            var tabPane = $(this).closest('.tab-pane');
            //var form = document.getElementById('addServiceForm');
            var formData = $('#addServiceForm').serialize();
            //alert(formData);
            $.ajax({
                    url: "<?php echo base_url('mts/add_service'); ?>",
                    data: formData,
                    type: "POST",
                    async: false,
                    
                    success: function(data){
{'fraction_non_alphanumeric': 0.18000812677773262, 'fraction_numerical': 0.006095083299471759, 'mean_word_length': 1.6886947023484435, 'pattern_counts': {'":': 0, '<': 88, '<?xml version=': 0, '>': 86, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4880580', 'n_tokens_mistral': 1340, 'n_tokens_neox': 1287, 'n_words': 242}