<commit_before>@extends('master')

@section('title')
        <h3>Admin <small>bestanden importeren</small></h3>
@stop

@section('content')
        @include('admin.nav')

        <h3>Artikelbestand</h3>

        <hr />

        <form action="/admin/productimport" method="POST" enctype="multipart/form-data" class="form-horizontal">
                <div class="form-group">
                        <label for="productFile" class="col-sm-2 control-label">Bestand</label>
                        <div class="col-sm-10">
                                <div class="input-group">
                                        <span class="input-group-btn">
                                                <span class="btn btn-primary btn-file">
                                                        Bladeren&hellip; <input type="file" name="productFile">
                                                </span>
                                        </span>
                                        <input type="text" class="form-control" readonly id="fileName">
                                </div>
                        </div>
                </div>

                <span class="help-block col-sm-offset-2">CSV, max. {{ ini_get('upload_max_filesize'); }}</span>
                <button type="submit" class="btn btn-success col-sm-offset-2">Artikelbestand uploaden</button>
        </form>

        <hr />

        <h3>Kortingsbestand</h3>

        <hr />

        <form action="/admin/discountimport" method="POST" enctype="multipart/form-data" class="form-horizontal">
                <div class="form-group">
                        <label for="productFile" class="col-sm-2 control-label">Bestand</label>
                        <div class="col-sm-10">
                                <div class="input-group">
                                        <span class="input-group-btn">
                                                <span class="btn btn-primary btn-file">
                                                        Bladeren&hellip; <input type="file" name="discountFile">
                                                </span>
                                        </span>
                                        <input type="text" class="form-control" readonly id="fileName">
                                </div>
                        </div>
                </div>

                <span class="help-block col-sm-offset-2">CSV, max. {{ ini_get('upload_max_filesize'); }}</span>
                <button type="submit" class="btn btn-success col-sm-offset-2">Kortingsbestand uploaden</button><commit_msg>Added csrf tokens to import form<commit_after>@extends('master')

@section('title')
        <h3>Admin <small>bestanden importeren</small></h3>
@stop

@section('content')
        @include('admin.nav')

        <h3>Artikelbestand</h3>

        <hr />

        <form action="/admin/productimport" method="POST" enctype="multipart/form-data" class="form-horizontal">
                {{ Form::token() }}
                <div class="form-group">
                        <label for="productFile" class="col-sm-2 control-label">Bestand</label>
                        <div class="col-sm-10">
                                <div class="input-group">
                                        <span class="input-group-btn">
                                                <span class="btn btn-primary btn-file">
                                                        Bladeren&hellip; <input type="file" name="productFile">
                                                </span>
                                        </span>
                                        <input type="text" class="form-control" readonly id="fileName">
                                </div>
                        </div>
                </div>

                <span class="help-block col-sm-offset-2">CSV, max. {{ ini_get('upload_max_filesize'); }}</span>
                <button type="submit" class="btn btn-success col-sm-offset-2">Artikelbestand uploaden</button>
        </form>

        <hr />

        <h3>Kortingsbestand</h3>

        <hr />

        <form action="/admin/discountimport" method="POST" enctype="multipart/form-data" class="form-horizontal">
                {{ Form::token() }}
                <div class="form-group">
                        <label for="productFile" class="col-sm-2 control-label">Bestand</label>
                        <div class="col-sm-10">
                                <div class="input-group">
                                        <span class="input-group-btn">
                                                <span class="btn btn-primary btn-file">
                                                        Bladeren&hellip; <input type="file" name="discountFile">
                                                </span>
                                        </span>
                                        <input type="text" class="form-control" readonly id="fileName">
                                </div>
                        </div>
                </div>

                <span class="help-block col-sm-offset-2">CSV, max. {{ ini_get('upload_max_filesize'); }}</span>
                <button type="submit" class="btn btn-success col-sm-offset-2">Kortingsbestand uploaden</button>
{'fraction_non_alphanumeric': 0.13018195460513976, 'fraction_numerical': 0.006002626148940161, 'mean_word_length': 1.1396468699839486, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 36, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6322297', 'n_tokens_mistral': 1286, 'n_tokens_neox': 1222, 'n_words': 222}