<commit_before>{#
#  @license 3-clause BSD https://github.com/SlightScribe/SlightScribe-Core/blob/master/LICENSE.md
#  @link https://github.com/SlightScribe/SlightScribe-Core
#}


{%  extends 'SlightScribeBundle::base.html.twig' %}

{% block main %}

    <ol class="breadcrumb">
        <li><a href="{{ path('slight_scribe_admin_homepage') }}">Admin</a></li>
        <li><a href="{{ path('slight_scribe_admin_project_show',{'projectId':project.publicId}) }}">Project: {{  project.titleAdmin }}</a></li>
        <li class="active">Fields</li>
    </ol>

    <h2>Fields</h2>

    {% if fields %}
        <table class="table table-striped">
            <thead>
            <tr>
                <th>Field</th>
                <th>Title</th>
                <th></th>
            </tr>
            </thead>
            <tbody>
            {% for field in fields %}
                <tr>
                    <td>{{ field.publicId }}</td>
                    <td>{{ field.titleAdmin }}</td>
                    <td class="action-link"></td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p>No fields</p>
    {% endif %}

{% endblock %}<commit_msg>Admin - show type in field list<commit_after>{#
#  @license 3-clause BSD https://github.com/SlightScribe/SlightScribe-Core/blob/master/LICENSE.md
#  @link https://github.com/SlightScribe/SlightScribe-Core
#}


{%  extends 'SlightScribeBundle::base.html.twig' %}

{% block main %}

    <ol class="breadcrumb">
        <li><a href="{{ path('slight_scribe_admin_homepage') }}">Admin</a></li>
        <li><a href="{{ path('slight_scribe_admin_project_show',{'projectId':project.publicId}) }}">Project: {{  project.titleAdmin }}</a></li>
        <li class="active">Fields</li>
    </ol>

    <h2>Fields</h2>

    {% if fields %}
        <table class="table table-striped">
            <thead>
            <tr>
                <th>Field</th>
                <th>Title</th>
                <th>Type</th>
                <th></th>
            </tr>
            </thead>
            <tbody>
            {% for field in fields %}
                <tr>
                    <td>{{ field.publicId }}</td>
                    <td>{{ field.titleAdmin }}</td>
                    <td>
                        {%  if field.isTypeText %}
                            Text
                        {%  elseif field.isTypeTextArea %}
                            TextArea
                        {%  endif %}
                    </td>
                    <td class="action-link"></td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    {% else %}
        <p>No fields</p>
    {% endif %}

{% endblock %}
{'fraction_non_alphanumeric': 0.1725533480500368, 'fraction_numerical': 0.002207505518763797, 'mean_word_length': 1.4650951949229374, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, 'https://': 4, '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': '3436928', 'n_tokens_mistral': 891, 'n_tokens_neox': 812, 'n_words': 139}