<commit_before>@extends('ignicms::admin.layouts.default')

@section('pageTitle', $pageTitle)

@section('content')
    <div class="default-form">
        <h3 class="box-title">{{ $pageTitle }} - {{ $actionVerb or 'Edit'  }}</h3>
        {!!  Form::open([
            'url'=>route($formAction, ['id' => $record->id]),
            'method' => (isset($formMethod)) ? $formMethod : 'POST',
            'role' => 'form',
            'enctype'=> 'multipart/form-data', ]
        ) !!}
        {!! $record->buildForm() !!}

        <button type="submit" class="btn btn-primary">Save</button>
        {!! $record->adminPreviewButton() !!}

        {!! Form::close() !!}
    </div>
@stop

@push('additionalScripts')
<script src="{{ asset('/admin_assets/plugins/tinymce/tinymce.min.js') }}"></script>

<script type="text/javascript">
    $(".select2:not(.select2-tags)").select2();
    $(".select2-tags").select2({
        tags: true,
    });

    $(".my-colorpicker2").colorpicker({
        format: 'hex'
    });

    $(".datepicker input").datetimepicker({
        format: 'YYYY-MM-DD'
    });

    $(".datetimepicker input").datetimepicker({
        format: 'YYYY-MM-DD HH:mm'
    });

    tinymce.init({
        selector: ".wysiwyg",
        skin: "despark-cms",
        plugins: [
            "advlist autolink lists link image charmap print preview anchor",
            "searchreplace visualblocks code fullscreen responsivefilemanager",
            "insertdatetime media table contextmenu paste imagetools jbimages"
        ],
        content_css: "/css/styles.css",
        menubar: false,
        toolbar: "code undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link image jbimages | media",
        image_advtab: true,
        relative_urls: false,
        remove_script_host: false,
        convert_urls: true,
        height: 500,<commit_msg>Fix default format for datepicker to include seconds.<commit_after>@extends('ignicms::admin.layouts.default')

@section('pageTitle', $pageTitle)

@section('content')
    <div class="default-form">
        <h3 class="box-title">{{ $pageTitle }} - {{ $actionVerb or 'Edit'  }}</h3>
        {!!  Form::open([
            'url'=>route($formAction, ['id' => $record->id]),
            'method' => (isset($formMethod)) ? $formMethod : 'POST',
            'role' => 'form',
            'enctype'=> 'multipart/form-data', ]
        ) !!}
        {!! $record->buildForm() !!}

        <button type="submit" class="btn btn-primary">Save</button>
        {!! $record->adminPreviewButton() !!}

        {!! Form::close() !!}
    </div>
@stop

@push('additionalScripts')
<script src="{{ asset('/admin_assets/plugins/tinymce/tinymce.min.js') }}"></script>

<script type="text/javascript">
    $(".select2:not(.select2-tags)").select2();
    $(".select2-tags").select2({
        tags: true,
    });

    $(".my-colorpicker2").colorpicker({
        format: 'hex'
    });

    $(".datepicker input").datetimepicker({
        format: 'YYYY-MM-DD'
    });

    $(".datetimepicker input").datetimepicker({
        format: 'YYYY-MM-DD HH:mm:ss'
    });

    tinymce.init({
        selector: ".wysiwyg",
        skin: "despark-cms",
        plugins: [
            "advlist autolink lists link image charmap print preview anchor",
            "searchreplace visualblocks code fullscreen responsivefilemanager",
            "insertdatetime media table contextmenu paste imagetools jbimages"
        ],
        content_css: "/css/styles.css",
        menubar: false,
        toolbar: "code undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist | link image jbimages | media",
        image_advtab: true,
        relative_urls: false,
        remove_script_host: false,
        convert_urls: true,
        height: 500,
{'fraction_non_alphanumeric': 0.17183025253840145, 'fraction_numerical': 0.005727675084613382, 'mean_word_length': 2.676555023923445, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 37, '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': '5997297', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1158, 'n_words': 236}