<commit_before>{% extends "form.html" %}

{% block title %}
  {% if questionform.instance.pk %} Edit {% else %} New {% endif %}{{ model_class.verbose_name }}
{% endblock %}
{% block pre_form_content %}
<p>Please note that the following special characters will be removed on USSD [* ! # ' ; &]</p>
{% endblock%}
{% block display_form_fields %}
<style type="text/css">
.dataTables_wrapper .row:first-child {
     padding-top: 0px !important; 
     padding-bottom: 0px !important; 
     background-color: #FFF !important; 
}
#id_identifier{
    width: 261px !important;
    height: 25px !important;
    margin-left: -1px !important;
  }
  #id_text{
    width: 261px !important;
    margin-left: 0px !important;
  }
  .dataTables_wrapper select {    margin-bottom: 0 !important;    margin-left: 4px!important;    margin-right: 4px!important;    margin-top: 0px !important;    padding: 3px !important;    width: 261px!important;}
</style>
<!-- <div class="control-group">
        <label class="control-label" for="text_counter"></label>
        <div class="controls">
            <span id="text-counter"></span>
        </div>
  </div> -->

{% include "naked_form.html" with a_form=questionform %}
{% if options %}
  {% for option in options %}
   {% if option %}
   
    <div class="control-group options question-option">
        <label  class="control-label col-md-4" style="margin-top: 15px !important;">Option <span class="number"> {{ option.order }}</span></label>
        <div class="controls">
                <input type="text" maxlength="100" name="options" value="{{option.text}}">
            <a style="padding: 0px !important;" href="javascript:;" class="btn btn-white btn-warning btn-bold add-option"><i class="ace-icon fa fa-plus bigger-120 orange"></i></a>
            <a style="padding: 0px !important;" href="javascript:;" class="btn btn-white btn-warning btn-bold remove-option"><i class="ace-icon fa fa-minus bigger-120 orange"></i></a>
            </div>
    </div>
    {% endif %}
  {% endfor %}

{% endif %}

{% include "_multiple_options.html" with option_label='Option' id="question-option-template" name='options'%}
{% endblock %}

    {% block buttons %}
  <div class="form-actions">
    <button id="button" type="submit" class="btn btn-primary submit" name="save_button" data-disabled-text="{{ loading_text }}"><i class="fa fa-save"></i> Save Changes</button>
    <button id="button" type="submit" class="btn btn-primary submit" name="add_more_button" data-disabled-text="{{ loading_text }}"><i class="fa fa-save"></i> Save and Add More</button>

    {% if cancel_url %}
      <a href="{{ cancel_url }}" class="btn btn-primary" name="cancel_button" class="cancel" style=" padding-right: 5px;
    padding-left: 5px;
    padding-bottom: 1px;"><i class="fa fa-close"></i> Cancel</a>
    {% else %}
      <a href="../" class="btn btn-primary" name="cancel_button" id="cancel_{{ id }}" class="cancel"><i class="fa fa-close"></i> Cancel</a>
    {% endif %}
  </div>
    {% endblock %}

{% block javascripts %}
    <script src="{{ STATIC_URL }}js/jquery.validate.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="{{STATIC_URL}}/js/questions.js" type="text/javascript" charset="utf-8"></script>
    <script src="{{STATIC_URL}}js/question_options.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
    channel_map = {
        {% for answer_type, channels in questionform.answer_map.items %}
            '{{answer_type}}' : [{% for channel in channels %}'{{channel}}',{% endfor %}],
        {% endfor %}
    };

</script>
<script type="text/javascript">
$(document).ready(function(){

$("#id_module option[value='']").text("--Select Module--");
        $("select#id_module").val("");


  
</script>

<script type="text/javascript">

$("#id_text").attr({"cols":29});
</script>


<style type="text/css">
  #id_identifier{width: 261px !important;
height: 25px !important;
margin-left: 0px !important; }
.dataTables_wrapper select {margin-left: 0px !important;}
.btn-white{padding: 0px !important;font-size: 10px !important;}
.dataTables_wrapper input[name=options] {
  width: 261px !important;
    height: 27px !important;
margin-left: 1px !important;
margin-top: 10px !important;
}
.dataTables_wrapper .btn.btn-white, .dataTables_wrapper .question-option{margin-top: 10px !important;}
</style>
{% endblock %}<commit_msg>question options changes<commit_after>{% extends "form.html" %}

{% block title %}
  {% if questionform.instance.pk %} Edit {% else %} New {% endif %}{{ model_class.verbose_name }}
{% endblock %}
{% block pre_form_content %}
<p>Please note that the following special characters will be removed on USSD [* ! # ' ; &]</p>
{% endblock%}
{% block display_form_fields %}
<style type="text/css">
.dataTables_wrapper .row:first-child {
     padding-top: 0px !important; 
     padding-bottom: 0px !important; 
     background-color: #FFF !important; 
}
#id_identifier{
    width: 261px !important;
    height: 25px !important;
    margin-left: -1px !important;
  }
  #id_text{
    width: 261px !important;
    margin-left: 0px !important;
  }
  .dataTables_wrapper select {    margin-bottom: 0 !important;    margin-left: 4px!important;    margin-right: 4px!important;    margin-top: 0px !important;    padding: 3px !important;    width: 261px!important;}
</style>
<!-- <div class="control-group">
        <label class="control-label" for="text_counter"></label>
        <div class="controls">
            <span id="text-counter"></span>
        </div>
  </div> -->

{% include "naked_form.html" with a_form=questionform %}
{% if options %}
  {% for option in options %}
   {% if option %}
   
    <div class="control-group options question-option">
        <label  class="control-label col-md-4" style="margin-top: 15px !important;">Option <span class="number"> {{ option.order }}</span></label>
        <div class="controls">
                <input type="text" maxlength="100" name="options" value="{{option.text}}">
            <a style="padding: 0px !important;" href="javascript:;" class="btn btn-white btn-warning btn-bold add-option"><i class="ace-icon fa fa-plus bigger-120 orange"></i></a>
            <a style="padding: 0px !important;" href="javascript:;" class="btn btn-white btn-warning btn-bold remove-option"><i class="ace-icon fa fa-minus bigger-120 orange"></i></a>
            </div>
    </div>
    {% endif %}
  {% endfor %}

{% endif %}

{% include "_multiple_options.html" with option_label='Option' id="question-option-template" name='options'%}
{% endblock %}

    {% block buttons %}
  <div class="form-actions">
    <button id="button" type="submit" class="btn btn-primary submit" name="save_button" data-disabled-text="{{ loading_text }}"><i class="fa fa-save"></i> Save Changes</button>
    <button id="button" type="submit" class="btn btn-primary submit" name="add_more_button" data-disabled-text="{{ loading_text }}"><i class="fa fa-save"></i> Save and Add More</button>

    {% if cancel_url %}
      <a href="{{ cancel_url }}" class="btn btn-primary" name="cancel_button" class="cancel" style=" padding-right: 5px;
    padding-left: 5px;
    padding-bottom: 1px;"><i class="fa fa-close"></i> Cancel</a>
    {% else %}
      <a href="../" class="btn btn-primary" name="cancel_button" id="cancel_{{ id }}" class="cancel"><i class="fa fa-close"></i> Cancel</a>
    {% endif %}
  </div>
    {% endblock %}

{% block javascripts %}
    <script src="{{ STATIC_URL }}js/jquery.validate.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="{{STATIC_URL}}/js/questions.js" type="text/javascript" charset="utf-8"></script>
    <script src="{{STATIC_URL}}js/question_options.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
    channel_map = {
        {% for answer_type, channels in questionform.answer_map.items %}
            '{{answer_type}}' : [{% for channel in channels %}'{{channel}}',{% endfor %}],
        {% endfor %}
    };

</script>
<script type="text/javascript">
$(document).ready(function(){

$("#id_module option[value='']").text("--Select Module--");
        $("select#id_module").val("");


  
</script>

<script type="text/javascript">

$("#id_text").attr({"cols":29});
</script>


<style type="text/css">
  #id_identifier{width: 261px !important;
height: 25px !important;
margin-left: 0px !important; }
.dataTables_wrapper select {margin-left: 0px !important;}
.btn-white{padding: 0px !important;font-size: 10px !important;}
.dataTables_wrapper input[name=options] {
  width: 261px !important;
    height: 27px !important;
margin-left: 1px !important;
margin-top: 10px !important;
}
.dataTables_wrapper .btn.btn-white{margin-top: 10px !important;}
.dataTables_wrapper .question-option label{margin-top: 15px !important;}
</style>
{% endblock %}
{'fraction_non_alphanumeric': 0.18829257246376813, 'fraction_numerical': 0.014266304347826086, 'mean_word_length': 4.015900056785917, 'pattern_counts': {'":': 2, '<': 127, '<?xml version=': 0, '>': 127, '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': '2225738', 'n_tokens_mistral': 3016, 'n_tokens_neox': 2755, 'n_words': 647}