<commit_before><div id="questions-container">
    <?php
    //var_dump($question);
    ?>
    <form class="form-horizontal" role="form" id="frm_update_question" method="post" action="{{ url:site }}survey/update_question">
        <legend>General Information About Question</legend>
        <div class="form-group">
            <label for="question_category" class="col-sm-2 control-label">Question category</label>
            <div class="col-sm-10">
                <select class="form-control" id="question_category" name="question_category">
                    <option value="">Select category</option>
                    <?php
                    foreach($q_cat as $cat){
                        echo '<option value="'.$cat->id.'">'.$cat->name.'</option>';
                    }
                    ?>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="question_title" class="col-sm-2 control-label">Question title</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="question_title" name="question_title" value="<?=$question->title?>">
            </div>
        </div>

        <div class="form-group">
            <label for="description" class="col-sm-2 control-label">Question description</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="description" name="description"><?=$question->description?></textarea>
            </div>
        </div>

        <div class="form-group">
            <label for="matter" class="col-sm-2 control-label">Why it matters</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="matter" name="matter"><?=$question->matter?></textarea>
            </div>
        </div>

        <legend>Key question</legend>
        <div class="form-group">
            <label for="question_text1" class="col-sm-2 control-label">Question text for 1st person</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="question_text1" name="question_text1"><?=$question->text1?></textarea>
            </div>
        </div>

        <div class="form-group">
            <label for="question_text2" class="col-sm-2 control-label">Question text for 3rd person</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="question_text2" name="question_text2"><?=$question->text2?></textarea>
            </div>
        </div>

        <legend>Answer Options</legend>
        <div id="question_options">
            <div class="form-group">
                <label for="option_1" class="col-sm-2 control-label">Option 1</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control option_label" name="option_1_label" value="<?=$options->option_1_label?>">
                    <textarea class="form-control" id="option_1" name="option_1"><?=$options->option_1?></textarea>
                </div>
            </div>

            <div class="form-group">
                <label for="option_2" class="col-sm-2 control-label">Option 2</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control option_label" name="option_1_label" value="<?=$options->option_2_label?>">
                    <textarea class="form-control" id="option_2" name="option_2"><?=$options->option_2?></textarea>
                </div>
            </div>

            <div class="form-group">
                <label for="option_3" class="col-sm-2 control-label">Option 3</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control option_label" name="option_1_label" value="<?=$options->option_3_label?>">
                    <textarea class="form-control" id="option_3" name="option_3"><?=$options->option_3?></textarea>
                </div>
            </div>

            <div class="form-group">
                <label for="option_4" class="col-sm-2 control-label">Option 4</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control option_label" name="option_1_label" value="<?=$options->option_4_label?>">
                    <textarea class="form-control" id="option_4" name="option_4"><?=$options->option_4?></textarea>
                </div>
            </div>
        </div>

        <input type="hidden" name="survey_id" value="<?=$survey_id;?>">
        <input type="hidden" name="q_id" value="<?=$question->id;?>">
        <input type="hidden" name="option_id" value="<?=$options->id;?>">
        <input type="hidden" name="user_id" value="{{ user:id }}">


        <legend>Save Changes</legend>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="button" id="update_question_form" class="btn btn-primary btn-block">Update Now</button>
            </div>
        </div>
    </form>

</div>

<!-- Modal -->
<div class="modal fade" id="q_form_validate_popup" tabindex="-1" role="dialog" aria-labelledby="update_programmeLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="update_programmeLabel">Validation message</h4>
            </div><commit_msg>update options labels<commit_after><div id="questions-container">
    <?php
    //var_dump($question);
    ?>
    <form class="form-horizontal" role="form" id="frm_update_question" method="post" action="{{ url:site }}survey/update_question">
        <legend>General Information About Question</legend>
        <div class="form-group">
            <label for="question_category" class="col-sm-2 control-label">Question category</label>
            <div class="col-sm-10">
                <select class="form-control" id="question_category" name="question_category">
                    <option value="">Select category</option>
                    <?php
                    foreach($q_cat as $cat){
                        echo '<option value="'.$cat->id.'">'.$cat->name.'</option>';
                    }
                    ?>
                </select>
            </div>
        </div>

        <div class="form-group">
            <label for="question_title" class="col-sm-2 control-label">Question title</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="question_title" name="question_title" value="<?=$question->title?>">
            </div>
        </div>

        <div class="form-group">
            <label for="description" class="col-sm-2 control-label">Question description</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="description" name="description"><?=$question->description?></textarea>
            </div>
        </div>

        <div class="form-group">
            <label for="matter" class="col-sm-2 control-label">Why it matters</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="matter" name="matter"><?=$question->matter?></textarea>
            </div>
        </div>

        <legend>Key question</legend>
        <div class="form-group">
            <label for="question_text1" class="col-sm-2 control-label">Question text for 1st person</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="question_text1" name="question_text1"><?=$question->text1?></textarea>
            </div>
        </div>

        <div class="form-group">
            <label for="question_text2" class="col-sm-2 control-label">Question text for 3rd person</label>
            <div class="col-sm-10">
                <textarea class="form-control" id="question_text2" name="question_text2"><?=$question->text2?></textarea>
            </div>
        </div>

        <legend>Answer Options</legend>
        <div id="question_options">
            <div class="form-group">
                <label for="option_1" class="col-sm-2 control-label">Option 1</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control option_label" name="option_1_label" value="<?=$options->option_1_label?>">
                    <textarea class="form-control" id="option_1" name="option_1"><?=$options->option_1?></textarea>
                </div>
            </div>

            <div class="form-group">
                <label for="option_2" class="col-sm-2 control-label">Option 2</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control option_label" name="option_2_label" value="<?=$options->option_2_label?>">
                    <textarea class="form-control" id="option_2" name="option_2"><?=$options->option_2?></textarea>
                </div>
            </div>

            <div class="form-group">
                <label for="option_3" class="col-sm-2 control-label">Option 3</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control option_label" name="option_3_label" value="<?=$options->option_3_label?>">
                    <textarea class="form-control" id="option_3" name="option_3"><?=$options->option_3?></textarea>
                </div>
            </div>

            <div class="form-group">
                <label for="option_4" class="col-sm-2 control-label">Option 4</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control option_label" name="option_4_label" value="<?=$options->option_4_label?>">
                    <textarea class="form-control" id="option_4" name="option_4"><?=$options->option_4?></textarea>
                </div>
            </div>
        </div>

        <input type="hidden" name="survey_id" value="<?=$survey_id;?>">
        <input type="hidden" name="q_id" value="<?=$question->id;?>">
        <input type="hidden" name="option_id" value="<?=$options->id;?>">
        <input type="hidden" name="user_id" value="{{ user:id }}">


        <legend>Save Changes</legend>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="button" id="update_question_form" class="btn btn-primary btn-block">Update Now</button>
            </div>
        </div>
    </form>

</div>

<!-- Modal -->
<div class="modal fade" id="q_form_validate_popup" tabindex="-1" role="dialog" aria-labelledby="update_programmeLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="update_programmeLabel">Validation message</h4>
            </div>
{'fraction_non_alphanumeric': 0.1757510343586976, 'fraction_numerical': 0.013311746717035437, 'mean_word_length': 2.277040966696139, 'pattern_counts': {'":': 0, '<': 289, '<?xml version=': 0, '>': 323, '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': '83433', 'n_tokens_mistral': 3292, 'n_tokens_neox': 3131, 'n_words': 557}