<commit_before>{% block title %}
{{ 'views.new.creation'|trans({'%entity%': 'Pottery'}, 'JordiLlonchCrudGeneratorBundle') }}
{% endblock %}

{% block page %}

    <script type="text/javascript" src="{{ asset('bundles/bazingaexposetranslation/js/translator.min.js') }}"></script>
    <script type="text/javascript" src="{{ url('bazinga_exposetranslation_js', { 'domain_name': 'validators' }) }}"></script>
    {{ JSFV(form) }}

<script type="text/javascript" src="{{ asset('bundles/bazingaexposetranslation/js/translator.min.js') }}"></script>
<script type="text/javascript" src="{{ url('bazinga_exposetranslation_js', { 'domain_name': 'validators' }) }}"></script>
{{ JSFV(form) }}
<style>

div.savestatus{ /* Style for the "Saving Form Contents" DIV that is shown at the top of the form */
    width:200px;
    padding:2px 5px;
    border:1px solid gray;
    background:#fff6e5;
    -webkit-box-shadow: 0 0 8px #818181;
    box-shadow: 0 0 8px #818181;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius:5px;
    color:red;
    position:absolute;
    top:-10px;
    }

form#feedbackform div{ /*CSS used by demo form*/
    margin-bottom:9px;
}

</style>
    {% stylesheets
        '@KdigOrientBundle/Resources/public/less/orient.less'
    %}
    <link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="screen" />
    {% endstylesheets %}
<form id="potteryform" class="" action="{{ path('pottery_create') }}" method="post" {{ form_enctype(form) }}>
    <div class="row-fluid">
        {{ form_widget(form) }}
        <p>
            <button type="submit" class="btn btn-success">{{ 'views.new.create'|trans({}, 'JordiLlonchCrudGeneratorBundle') }}</button>
        </p>
    </div>
</form>

<div>
    <div class="float-left">
        <a class="btn" href="{{ path('pottery') }}">
            {{ 'views.recordactions.backtothelist'|trans({}, 'JordiLlonchCrudGeneratorBundle') }}
        </a>
    </div>
</div>
<script type="text/javascript">
$(document).ready( function () {
    var formsave1 = new autosaveform({
            formid: 'potteryform',
            pause: 2000 
    });
    
    $(".control-group input[type=radio]").change(function(event){ 
        var radio = $(this);
        if($(this).is(':checked')) {
            var checked = $(this);
            radio.closest('.control-group').find('.selected').html(checked.parent().text());
            radio.closest('.control-group').find('.controls').hide('slow');
        }
    });
    $('.control-group legend').on('click', function(event){ 
        event.preventDefault();
        var legend = $(this);
        legend.closest('.control-group').find('.controls').toggle();
    });
});
</script>

    <script type="text/javascript">
        /*$(document).ready( function () {
            $('.controls').not('.collection > .control-group > .controls').hide('slow');
            $('body').click( function() {
                $('.controls').not('.collection > .control-group > .controls').hide('fast')
            });
            $(".control-label").on("click", function(event){ 
                event.preventDefault(); 
                event.stopPropagation();
                var control = $(this).next('.controls').not('.collection > .control-group > .controls');
                control.toggle('fast');
            });
            
        });*/
    </script>
{% endblock %}<commit_msg>form fields<commit_after>{% block title %}
{{ 'views.new.creation'|trans({'%entity%': 'Pottery'}, 'JordiLlonchCrudGeneratorBundle') }}
{% endblock %}

{% block page %}

<script type="text/javascript" src="{{ asset('bundles/bazingaexposetranslation/js/translator.min.js') }}"></script>
<script type="text/javascript" src="{{ url('bazinga_exposetranslation_js', { 'domain_name': 'validators' }) }}"></script>
{{ JSFV(form) }}
<style>

div.savestatus{ /* Style for the "Saving Form Contents" DIV that is shown at the top of the form */
    width:200px;
    padding:2px 5px;
    border:1px solid gray;
    background:#fff6e5;
    -webkit-box-shadow: 0 0 8px #818181;
    box-shadow: 0 0 8px #818181;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius:5px;
    color:red;
    position:absolute;
    top:-10px;
    }

form#feedbackform div{ /*CSS used by demo form*/
    margin-bottom:9px;
}

</style>
    {% stylesheets
        '@KdigOrientBundle/Resources/public/less/orient.less'
    %}
    <link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="screen" />
    {% endstylesheets %}
<form id="potteryform" class="" action="{{ path('pottery_create') }}" method="post" {{ form_enctype(form) }}>
    <div class="row-fluid">
        {{ form_widget(form) }}
        <p>
            <button type="submit" class="btn btn-success">{{ 'views.new.create'|trans({}, 'JordiLlonchCrudGeneratorBundle') }}</button>
        </p>
    </div>
</form>

<div>
    <div class="float-left">
        <a class="btn" href="{{ path('pottery') }}">
            {{ 'views.recordactions.backtothelist'|trans({}, 'JordiLlonchCrudGeneratorBundle') }}
        </a>
    </div>
</div>
<script type="text/javascript">
$(document).ready( function () {
    var formsave1 = new autosaveform({
            formid: 'potteryform',
            pause: 2000 
    });
    
    $(".control-group input[type=radio]").change(function(event){ 
        var radio = $(this);
        if($(this).is(':checked')) {
            var checked = $(this);
            radio.closest('.control-group').find('.selected').html(checked.parent().text());
            radio.closest('.control-group').find('.controls').hide('slow');
        }
    });
    $('.control-group legend').on('click', function(event){ 
        event.preventDefault();
        var legend = $(this);
        legend.closest('.control-group').find('.controls').toggle();
    });
    
    var id_bucket  = $("#kdig_orientbundle_potterytype_prepottery_bucket option:selected").val();
    var routegetdefault = Routing.generate('kdig_prepottery_defaulttext', { id_bucket: id_bucket });
    getdefaultstringAjax(routegetdefault,'#kdig_orientbundle_potterytype_prepottery_name','fill');

    $('#kdig_orientbundle_potterytype_prepottery_bucket').change(function() {
        var id_bucket = $("#kdig_orientbundle_potterytype_prepottery_bucket option:selected").val();
        var routegetdefault = Routing.generate('kdig_prepottery_defaulttext', { id_bucket: id_bucket });
        getdefaultstringAjax(routegetdefault,'#kdig_orientbundle_potterytype_prepottery_name','fill');
    });
});
</script>
{% endblock %}
{'fraction_non_alphanumeric': 0.19090630740967546, 'fraction_numerical': 0.01132884262094305, 'mean_word_length': 3.256026058631922, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 61, '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': '12897', 'n_tokens_mistral': 2166, 'n_tokens_neox': 2055, 'n_words': 356}