<commit_before>{% extends "ndf/gbase.html" %}
{% load i18n %}
{% load ndf_tags %}

{% block title %} {{title}} {% endblock %}
{% block body_content %}
    <div class="row create_unit">
        <div class="small-12 columns">
            <form id ="course_page_form" enctype="multipart/form-data" method="post" action="{% url 'unit_create_edit' group_id %}">{% csrf_token %}
            <input type="hidden" name="node_id" value="{{unit_node.pk}}">
                <div class="course_creator_header">
                    <div class="left course_heading">
                    <h5> {% if 'Group' in unit_node.member_of_names_list and 'base_unit' not in unit_node.member_of_names_list %} {% trans "Enter Group Name" %} {% else %} {% trans "Enter Unit Name" %} {% endif %} </h5>
                    </div>
                    <div class="right course_heading">
                        {% if unit_node %}
                        <input id="unit-name" name="name" type="text"  "{% if 'Group' in unit_node.member_of_names_list and 'base_unit' not in unit_node.member_of_names_list %}" placeholder="Enter group name"
                        "{% else %}" placeholder="Enter unit name" "{% endif %}"
                        value="{% if unit_node %}{{unit_node.name}}{% endif %}" disabled="disabled" />
                        {% else %}
                        <input id="unit-name" name="name" type="text" "{% if 'Group' in unit_node.member_of_names_list and 'base_unit' not in unit_node.member_of_names_list %}" placeholder="Enter group name"
                        "{% else %}" placeholder="Enter unit name" "{% endif %}"
                         autofocus onfocus="this.value = this.value;"/>
                        {% endif %}
                    </div>
                </div>


                {% if unit_node %}
                <div class="course_creator_header">
                    <div class="left course_heading">
                    <h5>{% trans "Enter alternate Name" %}</h5>
                    </div>
                    <div class="right course_heading">
                        <input id="unit-altname" name="altnames" type="text" placeholder="Enter alternate name"
                        value="{% firstof unit_node.altnames unit_node.name %}" autofocus onfocus="this.value = this.value;"/>

                    </div>
                </div>
                {% endif %}

                <hr/>
                {% if 'Group' not in unit_node.member_of_names_list or 'base_unit' in unit_node.member_of_names_list or 'announced_unit' in unit_node.member_of_names_list %}
                <div class="course_creator_header">
                    <div class="left course_heading">
                    <h5>{% trans "Select Module" %}</h5>
                    </div>
                    <div class="right course_heading_unit" style="height:49px;">
                         <select name="module" multiple style="height:46px;">
                            <option value="">{% trans "Choose Module" %}</option>
                            {% for opts in modules %}
                                <option value="{{opts.pk}}" {% if opts.pk in module_val_list %} selected {% endif %}>{{opts.name}}</option>
                            {% endfor %}
                        </select>
                    </div>
                </div>

                {% get_metadata_values "educationallevel" as metadata_educationallevel %}
                {% get_attribute_value unit_node.pk 'educationallevel' as educationallevel_val %}
                <div class="course_creator_header">
                    <div class="left course_heading">
                    <h5>{% trans "Select Grade" %}</h5>
                    </div>
                    <div class="right course_heading_unit">
                         <select name="educationallevel">
                            <option selected>{% trans "Choose Grade" %}</option>
                            {% for opts in metadata_educationallevel %}
                                <option {% if educationallevel_val == opts %} selected {% endif %}>{{opts}}</option><commit_msg>alt name for unit hidden issue fixed<commit_after>{% extends "ndf/gbase.html" %}
{% load i18n %}
{% load ndf_tags %}

{% block title %} {{title}} {% endblock %}
{% block body_content %}
    <div class="row create_unit">
        <div class="small-12 columns">
            <form id ="course_page_form" enctype="multipart/form-data" method="post" action="{% url 'unit_create_edit' group_id %}">{% csrf_token %}
            <input type="hidden" name="node_id" value="{{unit_node.pk}}">
                <div class="course_creator_header">
                    <div class="left course_heading">
                    <h5> {% if 'Group' in unit_node.member_of_names_list and 'base_unit' not in unit_node.member_of_names_list %} {% trans "Enter Group Name" %} {% else %} {% trans "Enter Unit Name" %} {% endif %} </h5>
                    </div>
                    <div class="right course_heading">
                        {% if unit_node %}
                        <input id="unit-name" name="name" type="text"  "{% if 'Group' in unit_node.member_of_names_list and 'base_unit' not in unit_node.member_of_names_list %}" placeholder="Enter group name"
                        "{% else %}" placeholder="Enter unit name" "{% endif %}"
                        value="{% if unit_node %}{{unit_node.name}}{% endif %}" disabled="disabled" />
                        {% else %}
                        <input id="unit-name" name="name" type="text" "{% if 'Group' in unit_node.member_of_names_list and 'base_unit' not in unit_node.member_of_names_list %}" placeholder="Enter group name"
                        "{% else %}" placeholder="Enter unit name" "{% endif %}"
                         autofocus onfocus="this.value = this.value;"/>
                        {% endif %}
                    </div>
                </div>


                <div class="course_creator_header">
                    <div class="left course_heading">
                    <h5>{% trans "Enter alternate Name" %}</h5>
                    </div>
                    <div class="right course_heading">
                        <input id="unit-altname" name="altnames" type="text" placeholder="Enter alternate name"
                        value="{% firstof unit_node.altnames unit_node.name %}" autofocus onfocus="this.value = this.value;"/>

                    </div>
                </div>

                <hr/>
                {% if 'Group' not in unit_node.member_of_names_list or 'base_unit' in unit_node.member_of_names_list or 'announced_unit' in unit_node.member_of_names_list %}
                <div class="course_creator_header">
                    <div class="left course_heading">
                    <h5>{% trans "Select Module" %}</h5>
                    </div>
                    <div class="right course_heading_unit" style="height:49px;">
                         <select name="module" multiple style="height:46px;">
                            <option value="">{% trans "Choose Module" %}</option>
                            {% for opts in modules %}
                                <option value="{{opts.pk}}" {% if opts.pk in module_val_list %} selected {% endif %}>{{opts.name}}</option>
                            {% endfor %}
                        </select>
                    </div>
                </div>

                {% get_metadata_values "educationallevel" as metadata_educationallevel %}
                {% get_attribute_value unit_node.pk 'educationallevel' as educationallevel_val %}
                <div class="course_creator_header">
                    <div class="left course_heading">
                    <h5>{% trans "Select Grade" %}</h5>
                    </div>
                    <div class="right course_heading_unit">
                         <select name="educationallevel">
                            <option selected>{% trans "Choose Grade" %}</option>
                            {% for opts in metadata_educationallevel %}
                                <option {% if educationallevel_val == opts %} selected {% endif %}>{{opts}}</option>
{'fraction_non_alphanumeric': 0.13246816846229187, 'fraction_numerical': 0.0039177277179236044, 'mean_word_length': 1.669607843137255, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 101, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '414427', 'n_tokens_mistral': 2306, 'n_tokens_neox': 2056, 'n_words': 506}