<commit_before>@extends('layouts.master')

@section('title')
    {{ trans('user::users.title.users') }}
@endsection
@section('subTitle')
    {{ trans('user::users.title.new-user') }}
@endsection

@section('content')
    <form class="ui form" role="form" method="POST" action="{{route('backend::user.user.store')}}">
        {!! csrf_field() !!}

        <div class="ui top attached tabular menu">
            <a class="active item" data-tab="user">{{ trans('user::users.tabs.user') }}</a>
            <a class="item" data-tab="roles">{{ trans('user::users.tabs.roles') }}</a>
        </div>

        <div class="ui bottom attached active tab segment" data-tab="user">
            @include('user::backend.users.partials.userTab')
        </div>

        <div class="ui bottom attached tab segment" data-tab="roles">
            @include('user::backend.users.partials.rolesTab')
        </div>

        <div class="ui clearing segment">
            <a href="{{ route('backend::user.user.index') }}" class="ui right floated button">
                {{ trans('core::elements.button.cancel') }}
            </a>
            <button class="ui primary right floated button" type="submit">
                {{ trans('core::elements.button.update') }}
            </button>
        </div>

    </form>

@endsection

@section('javascript')
    <script>
        $('.tabular.menu .item')
                .tab();
        $('.pupup.button')
                .popup();
        $('#rolesMultiselect')
                .dropdown();
    </script>
@endsection







@section('content-header')
<h1>
    {{ trans('user::users.title.new-user') }}
</h1>
<ol class="breadcrumb">
    <li><a href="{{ URL::route('dashboard.index') }}"><i class="fa fa-dashboard"></i> {{ trans('core::core.breadcrumb.home') }}</a></li>
    <li class=""><a href="{{ URL::route('backend::user.user.index') }}">{{ trans('user::users.breadcrumb.users') }}</a></li>
    <li class="active">{{ trans('user::users.breadcrumb.new') }}</li>
</ol>
@stop

@section('styles')
    {!! Theme::style('css/vendor/iCheck/flat/blue.css') !!}
@stop
@section('footer')
    <a data-toggle="modal" data-target="#keyboardShortcutsModal"><i class="fa fa-keyboard-o"></i></a> &nbsp;
@stop
@section('shortcuts')
    <dl class="dl-horizontal">
        <dt><code>b</code></dt>
        <dd>{{ trans('user::users.navigation.back to index') }}</dd>
    </dl>
@stop
@section('content')
{!! Form::open(['route' => 'backend::user.user.store', 'method' => 'post']) !!}
<div class="row">
    <div class="col-md-12">
        <div class="nav-tabs-custom">
            <ul class="nav nav-tabs">
                <li class="active"><a href="#tab_1-1" data-toggle="tab">{{ trans('user::users.tabs.data') }}</a></li>
                <li class=""><a href="#tab_2-2" data-toggle="tab">{{ trans('user::users.tabs.roles') }}</a></li>
            </ul>
            <div class="tab-content">
                <div class="tab-pane active" id="tab_1-1">
                    <div class="box-body">
                        <div class="row">
                            <div class="col-sm-4">
                                <div class="form-group{{ $errors->has('first_name') ? ' has-error' : '' }}">
                                    {!! Form::label('first_name', trans('user::users.form.first-name')) !!}
                                    {!! Form::text('first_name', Input::old('first_name'), ['class' => 'form-control', 'placeholder' => trans('user::users.form.first-name')]) !!}
                                    {!! $errors->first('first_name', '<span class="help-block">:message</span>') !!}
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group{{ $errors->has('last_name') ? ' has-error' : '' }}">
                                    {!! Form::label('last_name', trans('user::users.form.last-name')) !!}
                                    {!! Form::text('last_name', Input::old('last_name'), ['class' => 'form-control', 'placeholder' => trans('user::users.form.last-name')]) !!}
                                    {!! $errors->first('last_name', '<span class="help-block">:message</span>') !!}
                                </div>
                            </div>
                            <div class="col-sm-4">
                                <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
                                    {!! Form::label('email', trans('user::users.form.email')) !!}
                                    {!! Form::email('email', Input::old('email'), ['class' => 'form-control', 'placeholder' => trans('user::users.form.email')]) !!}
                                    {!! $errors->first('email', '<span class="help-block">:message</span>') !!}
                                </div>
                            </div>
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
                                    {!! Form::label('password', trans('user::users.form.password')) !!}
                                    {!! Form::password('password', ['class' => 'form-control']) !!}
                                    {!! $errors->first('password', '<span class="help-block">:message</span>') !!}
                                </div>
                            </div>
                            <div class="col-sm-6">
                                <div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
                                    {!! Form::label('password_confirmation', trans('user::users.form.password-confirmation')) !!}
                                    {!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
                                    {!! $errors->first('password_confirmation', '<span class="help-block">:message</span>') !!}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="tab-pane" id="tab_2-2">
                    <div class="box-body">
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>{{ trans('user::users.tabs.roles') }}</label>
                                    <select multiple="" class="form-control" name="roles[]">
                                        <?php foreach ($roles as $role): ?>
                                            <option value="{{ $role->id }}">{{ $role->name }}</option>
                                        <?php endforeach; ?>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="box-footer">
                    <button type="submit" class="btn btn-primary btn-flat">{{ trans('user::button.create') }}</button>
                    <button class="btn btn-default btn-flat" name="button" type="reset">{{ trans('core::core.button.reset') }}</button>
                    <a class="btn btn-danger pull-right btn-flat" href="{{ URL::route('backend::user.user.index')}}"><i class="fa fa-times"></i> {{ trans('user::button.cancel') }}</a>
                </div>
            </div>
        </div>

    </div>
</div>
{!! Form::close() !!}
@stop
<commit_msg>remove old design leftovers<commit_after>@extends('layouts.master')

@section('title')
    {{ trans('user::users.title.users') }}
@endsection
@section('subTitle')
    {{ trans('user::users.title.new-user') }}
@endsection

@section('content')
    <form class="ui form" role="form" method="POST" action="{{route('backend::user.user.store')}}">
        {!! csrf_field() !!}

        <div class="ui top attached tabular menu">
            <a class="active item" data-tab="user">{{ trans('user::users.tabs.user') }}</a>
            <a class="item" data-tab="roles">{{ trans('user::users.tabs.roles') }}</a>
        </div>

        <div class="ui bottom attached active tab segment" data-tab="user">
            @include('user::backend.users.partials.userTab')
        </div>

        <div class="ui bottom attached tab segment" data-tab="roles">
            @include('user::backend.users.partials.rolesTab')
        </div>

        <div class="ui clearing segment">
            <a href="{{ route('backend::user.user.index') }}" class="ui right floated button">
                {{ trans('core::elements.button.cancel') }}
            </a>
            <button class="ui primary right floated button" type="submit">
                {{ trans('core::elements.button.update') }}
            </button>
        </div>

    </form>

@endsection

@section('javascript')
    <script>
        $('.tabular.menu .item')
                .tab();
        $('.pupup.button')
                .popup();
        $('#rolesMultiselect')
                .dropdown();
    </script>
@endsection

{'fraction_non_alphanumeric': 0.20028071690779528, 'fraction_numerical': 0.0019434247462751025, 'mean_word_length': 1.6818181818181819, 'pattern_counts': {'":': 0, '<': 155, '<?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': 22, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '361984', 'n_tokens_mistral': 2614, 'n_tokens_neox': 2533, 'n_words': 430}