<commit_before>{% extends '::base.html.twig' %}
{% block stylesheets %}
    <link rel="stylesheet" href="{{ asset('css/bootstrap.css') }}"/>
    <link rel="stylesheet" href="{{ asset('css/bootstrap.icon-large.min.css') }}"/>
    <link rel="stylesheet" href="{{ asset('commons/css/style.css') }}"/>
{% endblock %}
{% block right_content -%}

    <h1>Form design</h1>
    {{ form_start(form, { 'action': path('design_update', { 'id': entity.id }), 'method' : 'PUT' } ) }}
    {{ tinymce_init() }}

    {{ form_widget(form.hypertext, { 'attr': { 'class': 'tinymce', 'data-theme' : 'advanced' } } ) }}
    <p style="margin-top:10px;float: left;">
        <button type="submit" class="btn">Edit</button>
    </p>
    {{ form_end(form) }}
    <a href="{{ path('form') }}" class="btn" style="float:right; margin-top:-10px;">
        Back to the list
    </a>

    <div class="modal fade" id="showPopupModal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title"><i class="icon-circle-remove icon-largest" title="Delete"></i>Deleting</h4>
                </div>
                <div class="modal-body">

                    <select id="content_field" ondblclick="$('#showPopupModal').modal('hide')" name="content" size="10" style="width: 100%; height: 90%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft">
                        {% for field in fields %}
                            <option value="{{ field.inputType.htmltag | replace({'fieldName': field.name, 'fieldId': field.uid, '(fieldId)':  "('" ~ field.uid ~ "')" }) }}">{{ field.caption }}</option>
                        {% endfor %}
                    </select>
                </div><commit_msg>adding the compusory check for data entry<commit_after>{% extends '::base.html.twig' %}
{% block stylesheets %}
    <link rel="stylesheet" href="{{ asset('css/bootstrap.css') }}"/>
    <link rel="stylesheet" href="{{ asset('css/bootstrap.icon-large.min.css') }}"/>
    <link rel="stylesheet" href="{{ asset('commons/css/style.css') }}"/>
{% endblock %}
{% block right_content -%}

    <h1>Form design</h1>
    {{ form_start(form, { 'action': path('design_update', { 'id': entity.id }), 'method' : 'PUT' } ) }}
    {{ tinymce_init() }}

    {{ form_widget(form.hypertext, { 'attr': { 'class': 'tinymce', 'data-theme' : 'advanced' } } ) }}
    <p style="margin-top:10px;float: left;">
        <button type="submit" class="btn">Edit</button>
    </p>
    {{ form_end(form) }}
    <a href="{{ path('form') }}" class="btn" style="float:right; margin-top:-10px;">
        Back to the list
    </a>

    <div class="modal fade" id="showPopupModal">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
                    <h4 class="modal-title"><i class="icon-circle-remove icon-largest" title="Delete"></i>Deleting</h4>
                </div>
                <div class="modal-body">

                    <select id="content_field" ondblclick="$('#showPopupModal').modal('hide')" name="content" size="10" style="width: 100%; height: 90%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft">
                        {% for field in fields %}

                            {% if field.compulsory %}
                                {% set required = "required" %}
                            {% else %}
                                {% set required = "" %}
                            {% endif %}
                            <option value="{{ field.inputType.htmltag | replace({'fieldName': field.name, 'fieldId': field.uid, '(fieldId)':  "('" ~ field.uid ~ "')", 'required': required,}) }}">{{ field.caption }}</option>
                        {% endfor %}
                    </select>
                </div>
{'fraction_non_alphanumeric': 0.2046783625730994, 'fraction_numerical': 0.008284600389863547, 'mean_word_length': 2.3758223684210527, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5028620', 'n_tokens_mistral': 1310, 'n_tokens_neox': 1215, 'n_words': 240}