<commit_before>{% extends '::ojsbase.html.twig' %}
{% block title %}{{ 'title.submission_new'|trans }} {{ parent() }}{% endblock %}
{% set hideleft = 1 %}
{% block stylesheets %}
    {{ parent() }}
    {% stylesheets '@submission_css' output="assets/prod/css/submission.css" filter="cssrewrite" %}
    <link rel="stylesheet" href="{{ asset_url }}" xmlns="http://www.w3.org/1999/html"/>
    {% endstylesheets %}
{% endblock %}

{% block body -%}
    <div class="alert alert-success">
        <h2 class="text-center">
            <i>{{ journal.title }}</i>
        </h2>
    </div>
    <div class="panel panel-info panel-steps">
        <div class="panel-heading">
            <ul class="nav nav-pills nav-justified" id="article-submission-steps">
                <li id="submission-progress-step1">
                    <a href="{{ path('ojs_journal_submission_start', {journalId: selectedJournal().id}) }}">
                        <span class="badge">1</span>
                        {{ "submission.starting"|trans }}
                    </a>
                </li>
                <li id="submission-progress-step2" class="active">
                    <a href="{{ path('ojs_journal_submission_new', {journalId: selectedJournal().id}) }}">
                        <span class="badge">2</span>
                        {{ "article.singular"|trans }}
                    </a>
                </li>
                <li id="submission-progress-step6 last-step">
                    <a href="javascript:void(0)">
                        <span class="badge">3</span>
                        {{ "preview"|trans }} & {{ "submit"|trans }}
                    </a>
                </li>
                <li id="resumeNote" class="text-right"></li>
            </ul>
        </div>
        <div class="panel-body">
            {% include '@OjsJournal/ArticleSubmission/_form.html.twig' %}
        </div>
    </div>
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script>
        $(function() {
            $.each($('.institutionNotListed'), function (index, value) {
                var $institutionSelect = $(this).parent().parent().parent().parent().find('.institution');
                var $institutionName = $(this).parent().parent().parent().parent().find('.institutionName');
                if(this.checked){
                    $institutionName.parent().removeClass('hidden');
                    $institutionSelect.parent().addClass('hidden');
                }else{
                    $institutionName.parent().addClass('hidden');
                    $institutionSelect.parent().removeClass('hidden');
                }
            });
            $(document).on('change', '.institutionNotListed', function () {
                var $institutionSelect = $(this).parent().parent().parent().parent().find('.institution');
                var $institutionName = $(this).parent().parent().parent().parent().find('.institutionName');
                if(this.checked){
                    $institutionName.parent().removeClass('hidden');
                    $institutionSelect.parent().addClass('hidden');
                }else{
                    $institutionName.parent().addClass('hidden');
                    $institutionSelect.parent().removeClass('hidden');
                }
            });
            $(document).on('click','.toggle-author-detail', function () {
                var $authorDetails = $(this).parent().find('.author-details');
                if($authorDetails.is(':visible')){
                    $(this).find('i').removeClass('fa-arrow-up');
                    $(this).find('i').addClass('fa-arrow-down');
                    $authorDetails.hide();
                }else{
                    $(this).find('i').removeClass('fa-arrow-down');
                    $(this).find('i').addClass('fa-arrow-up');
                    $authorDetails.show();
                }
            });
        });
    </script>
    {{ twigEventDispatch({'event_name': 'OJS_NEW_ARTICLE_SUBMISSIN_SCRIPT'})|raw }}
{% endblock %}<commit_msg>create worker for new added author form doms<commit_after>{% extends '::ojsbase.html.twig' %}
{% block title %}{{ 'title.submission_new'|trans }} {{ parent() }}{% endblock %}
{% set hideleft = 1 %}
{% block stylesheets %}
    {{ parent() }}
    {% stylesheets '@submission_css' output="assets/prod/css/submission.css" filter="cssrewrite" %}
    <link rel="stylesheet" href="{{ asset_url }}" xmlns="http://www.w3.org/1999/html"/>
    {% endstylesheets %}
{% endblock %}

{% block body -%}
    <div class="alert alert-success">
        <h2 class="text-center">
            <i>{{ journal.title }}</i>
        </h2>
    </div>
    <div class="panel panel-info panel-steps">
        <div class="panel-heading">
            <ul class="nav nav-pills nav-justified" id="article-submission-steps">
                <li id="submission-progress-step1">
                    <a href="{{ path('ojs_journal_submission_start', {journalId: selectedJournal().id}) }}">
                        <span class="badge">1</span>
                        {{ "submission.starting"|trans }}
                    </a>
                </li>
                <li id="submission-progress-step2" class="active">
                    <a href="{{ path('ojs_journal_submission_new', {journalId: selectedJournal().id}) }}">
                        <span class="badge">2</span>
                        {{ "article.singular"|trans }}
                    </a>
                </li>
                <li id="submission-progress-step6 last-step">
                    <a href="javascript:void(0)">
                        <span class="badge">3</span>
                        {{ "preview"|trans }} & {{ "submit"|trans }}
                    </a>
                </li>
                <li id="resumeNote" class="text-right"></li>
            </ul>
        </div>
        <div class="panel-body">
            {% include '@OjsJournal/ArticleSubmission/_form.html.twig' %}
        </div>
    </div>
{% endblock %}

{% block javascripts %}
    {{ parent() }}
    <script>
        $(function() {
            function reviseInstitutionInputs(){
                $.each($('.institutionNotListed'), function (index, value) {
                    var $institutionSelect = $(this).parent().parent().parent().parent().find('.institution');
                    var $institutionName = $(this).parent().parent().parent().parent().find('.institutionName');
                    if(this.checked){
                        $institutionName.parent().removeClass('hidden');
                        $institutionSelect.parent().addClass('hidden');
                    }else{
                        $institutionName.parent().addClass('hidden');
                        $institutionSelect.parent().removeClass('hidden');
                    }
                });
            }
            reviseInstitutionInputs();
            setInterval(function(){ reviseInstitutionInputs(); }, 1000);
            $(document).on('change', '.institutionNotListed', function () {
                var $institutionSelect = $(this).parent().parent().parent().parent().find('.institution');
                var $institutionName = $(this).parent().parent().parent().parent().find('.institutionName');
                if(this.checked){
                    $institutionName.parent().removeClass('hidden');
                    $institutionSelect.parent().addClass('hidden');
                }else{
                    $institutionName.parent().addClass('hidden');
                    $institutionSelect.parent().removeClass('hidden');
                }
            });
            $(document).on('click','.toggle-author-detail', function () {
                var $authorDetails = $(this).parent().find('.author-details');
                if($authorDetails.is(':visible')){
                    $(this).find('i').removeClass('fa-arrow-up');
                    $(this).find('i').addClass('fa-arrow-down');
                    $authorDetails.hide();
                }else{
                    $(this).find('i').removeClass('fa-arrow-down');
                    $(this).find('i').addClass('fa-arrow-up');
                    $authorDetails.show();
                }
            });
        });
    </script>
    {{ twigEventDispatch({'event_name': 'OJS_NEW_ARTICLE_SUBMISSIN_SCRIPT'})|raw }}
{% endblock %}
{'fraction_non_alphanumeric': 0.17833632555356074, 'fraction_numerical': 0.004069419509275883, 'mean_word_length': 1.7614011896893589, 'pattern_counts': {'":': 0, '<': 77, '<?xml version=': 0, '>': 77, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '4628081', 'n_tokens_mistral': 2301, 'n_tokens_neox': 2131, 'n_words': 311}