<commit_before>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')
    @if ($statuslabel->id)
        @lang('admin/statuslabels/table.update') ::
    @else
        @lang('admin/statuslabels/table.create') ::
    @endif
@parent
@stop

{{-- Page content --}}
@section('content')

<div class="row header">
    <div class="col-md-12">
        <a href="{{ URL::previous() }}" class="btn-flat gray pull-right right">
        <i class="fa fa-arrow-left icon-white"></i>  @lang('general.back')</a>
        <h3>
        @if ($statuslabel->id)
            @lang('admin/statuslabels/table.update')
        @else
            @lang('admin/statuslabels/table.create')
        @endif
        </h3>
    </div>
</div>

<div class="user-profile">
<div class="row profile">
<div class="col-md-9 bio">

        <!-- checked out assets table -->

        <form class="form-horizontal" method="post" action="" autocomplete="off">
            <!-- CSRF Token -->
            <input type="hidden" name="_token" value="{{ csrf_token() }}" />



            <!-- Asset Title -->
            <div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
                <label for="name" class="col-md-3 control-label">@lang('general.name')
                <i class='fa fa-asterisk'></i></label>
                </label>
                    <div class="col-md-6">
                        <input class="form-control" type="text" name="name" id="name" value="{{{ Input::old('name', $statuslabel->name) }}}" />
                        {{ $errors->first('name', '<br><span class="alert-msg"><i class="fa fa-times"></i> :message</span>') }}
                    </div>
            </div>


            <!-- Note -->
            <div class="form-group {{ $errors->has('notes') ? 'error' : '' }}">
                <label for="notes" class="col-md-3 control-label">@lang('admin/hardware/form.notes')</label>
                <div class="col-md-7">
                    <textarea class="col-md-6 form-control" id="notes" name="notes">{{{ Input::old('notes', $statuslabel->notes) }}}</textarea>
                    {{ $errors->first('notes', '<br><span class="alert-msg"><i class="fa fa-times"></i> :message</span>') }}
                </div>
            </div>


            <!-- Label type -->
            <div class="form-group {{ $errors->has('status_type_bool') ? 'error' : '' }}">
                <label for="notes" class="col-md-3 control-label">@lang('admin/statuslabels/table.status_type')
                <i class='fa fa-asterisk'></i></label>
                </label>
                <div class="col-md-7">
                  {{ Form::select('statuslabel_types', $statuslabel_types , $use_statuslabel_type, array('class'=>'select2', 'style'=>'min-width:400px')) }}
                    {{ $errors->first('notes', '<br><span class="alert-msg"><i class="fa fa-times"></i> :message</span>') }}
                    {{ $errors->first('status_type', '<br><span class="alert-msg"><i class="fa fa-times"></i> :message</span>') }}
                </div>
            </div>




            <!-- Form actions -->
                <div class="form-group">
                <label class="col-md-2 control-label"></label>
                    <div class="col-md-7">
                        <a class="btn btn-link" href="{{ URL::previous() }}">@lang('button.cancel')</a>
                        <button type="submit" class="btn btn-success"><i class="fa fa-check icon-white"></i> @lang('general.save')</button><commit_msg>Nicer validation display<commit_after>@extends('backend/layouts/default')

{{-- Page title --}}
@section('title')
    @if ($statuslabel->id)
        @lang('admin/statuslabels/table.update') ::
    @else
        @lang('admin/statuslabels/table.create') ::
    @endif
@parent
@stop

{{-- Page content --}}
@section('content')

<div class="row header">
    <div class="col-md-12">
        <a href="{{ URL::previous() }}" class="btn-flat gray pull-right right">
        <i class="fa fa-arrow-left icon-white"></i>  @lang('general.back')</a>
        <h3>
        @if ($statuslabel->id)
            @lang('admin/statuslabels/table.update')
        @else
            @lang('admin/statuslabels/table.create')
        @endif
        </h3>
    </div>
</div>

<div class="user-profile">
<div class="row profile">
<div class="col-md-9 bio">

        <!-- checked out assets table -->

        <form class="form-horizontal" method="post" action="" autocomplete="off">
            <!-- CSRF Token -->
            <input type="hidden" name="_token" value="{{ csrf_token() }}" />



            <!-- Asset Title -->
            <div class="form-group {{ $errors->has('name') ? ' has-error' : '' }}">
                <label for="name" class="col-md-3 control-label">@lang('general.name')
                <i class='fa fa-asterisk'></i></label>
                </label>
                    <div class="col-md-7">
                        <input class="form-control" type="text" name="name" id="name" value="{{{ Input::old('name', $statuslabel->name) }}}" />
                        {{ $errors->first('name', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') }}
                    </div>
            </div>


            <!-- Note -->
            <div class="form-group {{ $errors->has('notes') ? 'has-error' : '' }}">
                <label for="notes" class="col-md-3 control-label">@lang('admin/hardware/form.notes')</label>
                <div class="col-md-7">
                    <textarea class="col-md-12 form-control" id="notes" name="notes">{{{ Input::old('notes', $statuslabel->notes) }}}</textarea>
                    {{ $errors->first('notes', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') }}
                </div>
            </div>


            <!-- Label type -->
            <div class="form-group {{ $errors->has('statuslabel_types') ? 'has-error' : '' }}">
                <label for="statuslabel_types" class="col-md-3 control-label">@lang('admin/statuslabels/table.status_type')
                <i class='fa fa-asterisk'></i></label>
                </label>
                <div class="col-md-7">
                    {{ Form::select('statuslabel_types', $statuslabel_types, $statuslabel_types, array('class'=>'select2', 'style'=>'min-width:400px')) }}
                    {{ $errors->first('statuslabel_types', '<br><span class="alert-msg"><i class="fa fa-times"></i> :message</span>') }}
                </div>
            </div>




            <!-- Form actions -->
                <div class="form-group">
                <label class="col-md-2 control-label"></label>
                    <div class="col-md-7">
                        <a class="btn btn-link" href="{{ URL::previous() }}">@lang('button.cancel')</a>
                        <button type="submit" class="btn btn-success"><i class="fa fa-check icon-white"></i> @lang('general.save')</button>
{'fraction_non_alphanumeric': 0.2140792136455623, 'fraction_numerical': 0.005348366579936398, 'mean_word_length': 2.062859672421425, 'pattern_counts': {'":': 0, '<': 152, '<?xml version=': 0, '>': 177, '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': '2358038', 'n_tokens_mistral': 2095, 'n_tokens_neox': 2012, 'n_words': 361}