<commit_before>{% extends '::ojsbase.html.twig' %}

{% block breadcrumb %}
    {% set list = [
                {'link': path('dashboard'), 'title': 'dashboard'|trans},
                {'link': path('ojs_workflow_homepage'), 'title': 'workflow'|trans},
                {'title': 'workflow.templates'|trans}
] %}
    {{breadcrumb(list)}}
{% endblock %}

{% block body -%}

    <h1>{{ 'workflow.templates'|trans }}</h1>
    {% include '::flashbag.html.twig' %}

    <h3>{{ 'system.templates'|trans }}</h3>
    <div class="list-group">
        {% for entity in templates %}
            {% if entity.isSystemTemplate is defined  %}
                {% if entity.isSystemTemplate %}
                    <a class="list-group-item" href="{{ path('workflow_template_show', { 'id': entity.id } ) }}">
                        <strong class="list-group-item-heading">
                            {{entity.title}}
                        </strong>
                        <br>
                        {{entity.description}}
                    </a>
                {% endif %}
            {% endif %}
        {% endfor %}
    </div>

    <h3>{{ 'created.templates'|trans }}</h3>
    <div class="list-group">
        {% for entity in templates %}
            {% if entity.isSystemTemplate is defined  %}
                {% if entity.isSystemTemplate == false %}
                    <div class="list-group-item">
                        <strong class="list-group-item-heading">
                            <a href="{{path('workflow_template_show',{ 'id': entity.id })}}">
                                {{entity.title}}
                            </a>
                        </strong><br>
                        {{entity.description}}
                        <span class="pull-right btn-group">
                            {% if isJournalManager() %}
                                <a class="btn btn-warning btn-xs" href="{{path('workflow_template_edit',{ 'templateId': entity.id })}}">
                                    <i class="fa fa-pencil"></i>
                                </a>
                                <a class="btn btn-danger btn-xs"  onclick="return confirm('{{"sure"|trans}}');" href="{{path('workflow_template_delete',{ 'templateId': entity.id })}}">
                                    <i class="fa fa-trash"></i>
                                </a>
                            {% endif %}
                        </span>
                    </div>
                {% endif %}
            {% endif %}
        {% endfor %}
    </div>
    <a href="{{ path('workflow_template_new') }}" class="btn btn-primary pull-right">{{ 'c' | trans }}</a>
{% endblock %} <commit_msg>workflow bundle crud buttons standardization fixed #604<commit_after>{% extends '::ojsbase.html.twig' %}

{% block breadcrumb %}
    {% set list = [
                {'link': path('dashboard'), 'title': 'dashboard'|trans},
                {'link': path('ojs_workflow_homepage'), 'title': 'workflow'|trans},
                {'title': 'workflow.templates'|trans}
] %}
    {{breadcrumb(list)}}
{% endblock %}

{% block body -%}

    <h1>{{ 'workflow.templates'|trans }}</h1>
    {% include '::flashbag.html.twig' %}

    <h3>{{ 'system.templates'|trans }}</h3>
    <div class="list-group">
        {% for entity in templates %}
            {% if entity.isSystemTemplate is defined  %}
                {% if entity.isSystemTemplate %}
                    <a class="list-group-item" href="{{ path('workflow_template_show', { 'id': entity.id } ) }}">
                        <strong class="list-group-item-heading">
                            {{entity.title}}
                        </strong>
                        <br>
                        {{entity.description}}
                    </a>
                {% endif %}
            {% endif %}
        {% endfor %}
    </div>

    <h3>{{ 'created.templates'|trans }}</h3>
    <div class="list-group">
        {% for entity in templates %}
            {% if entity.isSystemTemplate is defined  %}
                {% if entity.isSystemTemplate == false %}
                    <div class="list-group-item">
                        <strong class="list-group-item-heading">
                            <a href="{{path('workflow_template_show',{ 'id': entity.id })}}">
                                {{entity.title}}
                            </a>
                        </strong><br>
                        {{entity.description}}
                        <span class="pull-right btn-group">
                            {% if isJournalManager() %}
                                <a class="btn btn-warning btn-xs" href="{{path('workflow_template_edit',{ 'templateId': entity.id })}}">
                                    <i class="fa fa-pencil"></i>
                                </a>
                                <a class="btn btn-danger btn-xs"  onclick="return confirm('{{"sure"|trans}}');" href="{{path('workflow_template_delete',{ 'templateId': entity.id })}}">
                                    <i class="fa fa-trash"></i>
                                </a>
                            {% endif %}
                        </span>
                    </div>
                {% endif %}
            {% endif %}
        {% endfor %}
    </div>
    {% set create_path = 'workflow_template_new' %}
    {% include '::actionbuttons.html.twig' %}
{% endblock %} 
{'fraction_non_alphanumeric': 0.16533827618164967, 'fraction_numerical': 0.0027803521779425394, 'mean_word_length': 1.322858372793801, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2018949', 'n_tokens_mistral': 1543, 'n_tokens_neox': 1386, 'n_words': 266}