<commit_before>{#
 # This file is part of the CRUDlex package.
 #
 # (c) <NAME> <<EMAIL>>
 #
 # For the full copyright and license information, please view the LICENSE
 # file that was distributed with this source code.
 #}

{%extends layout %}

{% block content %}
{% set fields = crudData.getDefinition().getEditableFieldNames() %}
<form role="form" method="POST" action="{{ mode == 'create' ? app.url_generator.generate('crudCreate', {'entity': crudEntity}) : app.url_generator.generate('crudEdit', {'entity': crudEntity, 'id': entity.get('id')}) }}">

    {% if mode == 'edit' %}
        <div class="form-group">
            <strong>id: </strong> {{ entity.get('id') }}
        </div>
        <div class="form-group">
            <strong>created_at: </strong> {{ entity.get('created_at') }}
        </div>
        <div class="form-group">
            <strong>updated_at: </strong> {{ entity.get('updated_at') }}<commit_msg>proper labels for the read only fields in the edit form<commit_after>{#
 # This file is part of the CRUDlex package.
 #
 # (c) <NAME> <<EMAIL>>
 #
 # For the full copyright and license information, please view the LICENSE
 # file that was distributed with this source code.
 #}

{%extends layout %}

{% block content %}
{% set fields = crudData.getDefinition().getEditableFieldNames() %}
<form role="form" method="POST" action="{{ mode == 'create' ? app.url_generator.generate('crudCreate', {'entity': crudEntity}) : app.url_generator.generate('crudEdit', {'entity': crudEntity, 'id': entity.get('id')}) }}">

    {% if mode == 'edit' %}
        <div class="form-group">
            <strong>{{ crudData.getDefinition().getFieldLabel('id') }}: </strong> {{ entity.get('id') }}
        </div>
        <div class="form-group">
            <strong>{{ crudData.getDefinition().getFieldLabel('created_at') }}: </strong> {{ entity.get('created_at') }}
        </div>
        <div class="form-group">
            <strong>{{ crudData.getDefinition().getFieldLabel('updated_at') }}: </strong> {{ entity.get('updated_at') }}
{'fraction_non_alphanumeric': 0.18823529411764706, 'fraction_numerical': 0.0, 'mean_word_length': 3.670480549199085, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 0, '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': '2599386', 'n_tokens_mistral': 632, 'n_tokens_neox': 609, 'n_words': 157}