From 7c0d92af08cc1593183095efe69c1563713721b8 Mon Sep 17 00:00:00 2001 From: suporte Date: Tue, 23 Feb 2016 17:50:40 -0300 Subject: [PATCH 1/2] Localization --- src/Controllers/QuickadminMenuController.php | 4 +- src/Controllers/publish/UsersController | 6 +- src/Fields/FieldsDescriber.php | 10 +-- src/QuickadminServiceProvider.php | 3 + src/Templates/customView_index | 4 +- src/Templates/view_create | 4 +- src/Templates/view_edit | 6 +- src/Templates/view_index | 18 ++--- src/Translations/en/admin.php | 55 +++++++++++++++ src/Translations/en/auth.php | 27 +++++++ src/Translations/en/emails.php | 7 ++ src/Translations/en/qa.php | 70 +++++++++++++++++++ src/Translations/en/strings.php | 19 +++++ src/Translations/en/templates.php | 44 ++++++++++++ src/Translations/pt_BR/admin.php | 55 +++++++++++++++ src/Translations/pt_BR/auth.php | 27 +++++++ src/Translations/pt_BR/emails.php | 7 ++ src/Translations/pt_BR/qa.php | 69 ++++++++++++++++++ src/Translations/pt_BR/strings.php | 19 +++++ src/Translations/pt_BR/templates.php | 44 ++++++++++++ src/Views/admin/dashboard.blade.php | 2 +- src/Views/admin/partials/header.blade.php | 2 +- .../admin/partials/javascripts.blade.php | 8 +++ src/Views/admin/partials/sidebar.blade.php | 8 +-- src/Views/admin/partials/topbar.blade.php | 2 +- src/Views/admin/users/create.blade.php | 18 ++--- src/Views/admin/users/edit.blade.php | 18 ++--- src/Views/admin/users/index.blade.php | 16 ++--- src/Views/auth/login.blade.php | 12 ++-- src/Views/auth/password.blade.php | 8 +-- src/Views/auth/reset.blade.php | 12 ++-- src/Views/emails/password.blade.php | 2 +- src/Views/qa/logs/index.blade.php | 15 ++-- src/Views/qa/menus/createCrud.blade.php | 32 ++++----- src/Views/qa/menus/createCustom.blade.php | 20 +++--- src/Views/qa/menus/createParent.blade.php | 14 ++-- src/Views/qa/menus/edit.blade.php | 16 ++--- src/Views/qa/menus/index.blade.php | 14 ++-- src/Views/templates/menu_field_line.blade.php | 30 ++++---- 39 files changed, 602 insertions(+), 145 deletions(-) create mode 100644 src/Translations/en/admin.php create mode 100644 src/Translations/en/auth.php create mode 100644 src/Translations/en/emails.php create mode 100644 src/Translations/en/qa.php create mode 100644 src/Translations/en/strings.php create mode 100644 src/Translations/en/templates.php create mode 100644 src/Translations/pt_BR/admin.php create mode 100644 src/Translations/pt_BR/auth.php create mode 100644 src/Translations/pt_BR/emails.php create mode 100644 src/Translations/pt_BR/qa.php create mode 100644 src/Translations/pt_BR/strings.php create mode 100644 src/Translations/pt_BR/templates.php diff --git a/src/Controllers/QuickadminMenuController.php b/src/Controllers/QuickadminMenuController.php index 463d4f6..7792a94 100644 --- a/src/Controllers/QuickadminMenuController.php +++ b/src/Controllers/QuickadminMenuController.php @@ -348,7 +348,7 @@ public function update(Request $request, $id) } } $requestArray = $request->all(); - if ( ! isset($requestArray['parent_id'])) { + if (!isset($requestArray['parent_id'])) { $requestArray['parent_id'] = null; } $requestArray['roles'] = $rolesInsert; @@ -357,4 +357,4 @@ public function update(Request $request, $id) return redirect()->route('menu'); } -} \ No newline at end of file +} diff --git a/src/Controllers/publish/UsersController b/src/Controllers/publish/UsersController index 312d576..25043f0 100644 --- a/src/Controllers/publish/UsersController +++ b/src/Controllers/publish/UsersController @@ -44,7 +44,7 @@ class UsersController extends Controller $input['password'] = Hash::make($input['password']); $user = User::create($input); - return redirect()->route('users.index')->withMessage('User was successfully created!'); + return redirect()->route('users.index')->withMessage(trans('quickadmin::admin.users-controller-successfully_created')); } /** @@ -77,7 +77,7 @@ class UsersController extends Controller $input['password'] = Hash::make($input['password']); $user->update($input); - return redirect()->route('users.index')->withMessage('User was successfully updated!'); + return redirect()->route('users.index')->withMessage(trans('quickadmin::admin.users-controller-successfully_updated')); } /** @@ -92,6 +92,6 @@ class UsersController extends Controller $user = User::findOrFail($id); User::destroy($id); - return redirect()->route('users.index')->withMessage('User was successfully deleted!'); + return redirect()->route('users.index')->withMessage(trans('quickadmin::admin.users-controller-successfully_deleted')); } } \ No newline at end of file diff --git a/src/Fields/FieldsDescriber.php b/src/Fields/FieldsDescriber.php index b489479..8282fc6 100644 --- a/src/Fields/FieldsDescriber.php +++ b/src/Fields/FieldsDescriber.php @@ -33,9 +33,9 @@ public static function types() public static function validation() { return [ - 'optional' => 'Optional', - 'required' => 'Required', - 'required|unique' => 'Required unique' + 'optional' => trans('quickadmin::strings.optional'), + 'required' => trans('quickadmin::strings.required'), + 'required|unique' => trans('quickadmin::strings.required_unique') ]; } @@ -80,8 +80,8 @@ public static function migration() public static function default_cbox() { return [ - 'false' => 'Default unchecked', - 'true' => 'Default checked' + 'false' => trans('quickadmin::strings.default_unchecked'), + 'true' => trans('quickadmin::strings.default_checked'), ]; } } \ No newline at end of file diff --git a/src/QuickadminServiceProvider.php b/src/QuickadminServiceProvider.php index 42b41ad..70a07e6 100644 --- a/src/QuickadminServiceProvider.php +++ b/src/QuickadminServiceProvider.php @@ -16,6 +16,8 @@ class QuickadminServiceProvider extends ServiceProvider */ public function boot() { + // Register vendor translations ( Aom Solucoes - Traducao ) + $this->loadTranslationsFrom(__DIR__ . DIRECTORY_SEPARATOR . 'Translations' . DIRECTORY_SEPARATOR , 'quickadmin'); // Register vendor views $this->loadViewsFrom(__DIR__ . DIRECTORY_SEPARATOR . 'Views' . DIRECTORY_SEPARATOR . 'qa', 'qa'); $this->loadViewsFrom(__DIR__ . DIRECTORY_SEPARATOR . 'Views' . DIRECTORY_SEPARATOR . 'templates', 'tpl'); @@ -25,6 +27,7 @@ public function boot() __DIR__ . DIRECTORY_SEPARATOR . 'Views' . DIRECTORY_SEPARATOR . 'admin' => base_path('resources' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . 'admin'), __DIR__ . DIRECTORY_SEPARATOR . 'Views' . DIRECTORY_SEPARATOR . 'auth' => base_path('resources' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . 'auth'), __DIR__ . DIRECTORY_SEPARATOR . 'Views' . DIRECTORY_SEPARATOR . 'emails' => base_path('resources' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . 'emails'), + __DIR__ . DIRECTORY_SEPARATOR . 'Translations' => base_path('resources' . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'laraveldaily'), __DIR__ . DIRECTORY_SEPARATOR . 'Public' . DIRECTORY_SEPARATOR . 'quickadmin' => base_path('public' . DIRECTORY_SEPARATOR . 'quickadmin'), __DIR__ . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR . 'publish' . DIRECTORY_SEPARATOR . 'UsersController' => app_path('Http' . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR . 'UsersController.php'), __DIR__ . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR . 'publish' . DIRECTORY_SEPARATOR . 'Controller' => app_path('Http' . DIRECTORY_SEPARATOR . 'Controllers' . DIRECTORY_SEPARATOR . 'Controller.php'), diff --git a/src/Templates/customView_index b/src/Templates/customView_index index 5dce265..8b1914a 100644 --- a/src/Templates/customView_index +++ b/src/Templates/customView_index @@ -4,10 +4,10 @@
-
List
+
{{ trans('quickadmin::templates.templates-customView_index-list') }}
- Welcome to your custom view + {{ trans('quickadmin::templates.templates-customView_index-welcome_custom_view') }}
diff --git a/src/Templates/view_create b/src/Templates/view_create index 9f83ecb..183d753 100644 --- a/src/Templates/view_create +++ b/src/Templates/view_create @@ -4,7 +4,7 @@
- +

{{ trans('quickadmin::templates.templates-view_create-add_new') }}

@if ($errors->any())
@@ -23,7 +23,7 @@ $FORMFIELDS$
- {!! Form::submit('Create', array('class' => 'btn btn-primary')) !!} + {!! Form::submit( trans('quickadmin::templates.templates-view_create-create') , array('class' => 'btn btn-primary')) !!}
diff --git a/src/Templates/view_edit b/src/Templates/view_edit index 1afe533..9528cc9 100644 --- a/src/Templates/view_edit +++ b/src/Templates/view_edit @@ -4,7 +4,7 @@
-

Edit

+

{{ trans('quickadmin::templates.templates-view_edit-edit') }}

@if ($errors->any())
@@ -23,8 +23,8 @@ $FORMFIELDS$
- {!! Form::submit('Update', array('class' => 'btn btn-primary')) !!} - {!! link_to_route('admin.$ROUTE$.index', 'Cancel', $$RESOURCE$->id, array('class' => 'btn btn-default')) !!} + {!! Form::submit(trans('quickadmin::templates.templates-view_edit-update'), array('class' => 'btn btn-primary')) !!} + {!! link_to_route('admin.$ROUTE$.index', trans('quickadmin::templates.templates-view_edit-cancel'), $$RESOURCE$->id, array('class' => 'btn btn-default')) !!}
diff --git a/src/Templates/view_index b/src/Templates/view_index index af9aeee..148724d 100644 --- a/src/Templates/view_index +++ b/src/Templates/view_index @@ -2,15 +2,15 @@ @section('content') -

{!! link_to_route('admin.$ROUTE$.create', 'Add new', null, array('class' => 'btn btn-success')) !!}

+

{!! link_to_route('admin.$ROUTE$.create', trans('quickadmin::templates.templates-view_index-add_new') , null, array('class' => 'btn btn-success')) !!}

@if ($$RESOURCE$->count())
-
List
+
{{ trans('quickadmin::templates.templates-view_index-list') }}
- +
@@ -41,7 +41,7 @@
@@ -51,7 +51,7 @@ @else - No entries found. + {{ trans('quickadmin::templates.templates-view_index-no_entries_found') }} @endif @endsection @@ -60,7 +60,7 @@ diff --git a/src/Views/admin/partials/sidebar.blade.php b/src/Views/admin/partials/sidebar.blade.php index 3c5f9cb..24616a4 100644 --- a/src/Views/admin/partials/sidebar.blade.php +++ b/src/Views/admin/partials/sidebar.blade.php @@ -8,19 +8,19 @@
  • - Menu + {{ trans('quickadmin::admin.partials-sidebar-menu') }}
  • - Users + {{ trans('quickadmin::admin.partials-sidebar-users') }}
  • - User actions + {{ trans('quickadmin::admin.partials-sidebar-user-actions') }}
  • @endif @@ -64,7 +64,7 @@
  • - Logout + {{ trans('quickadmin::admin.partials-sidebar-logout') }}
  • diff --git a/src/Views/admin/partials/topbar.blade.php b/src/Views/admin/partials/topbar.blade.php index 7e3330f..ed35bee 100644 --- a/src/Views/admin/partials/topbar.blade.php +++ b/src/Views/admin/partials/topbar.blade.php @@ -3,7 +3,7 @@
    -

    Create admin

    +

    {{ trans('quickadmin::admin.users-create-create_user') }}

    @if ($errors->any())
    @@ -21,28 +21,28 @@ {!! Form::open(['route' => 'users.store', 'class' => 'form-horizontal']) !!}
    - {!! Form::label('name', 'Name', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('name', trans('quickadmin::admin.users-create-name'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=> 'Name']) !!} + {!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::admin.users-create-name_placeholder')]) !!}
    - {!! Form::label('email', 'Email', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('email', trans('quickadmin::admin.users-create-email'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::email('email', old('email'), ['class'=>'form-control', 'placeholder'=> 'Email']) !!} + {!! Form::email('email', old('email'), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::admin.users-create-email_placeholder')]) !!}
    - {!! Form::label('password', 'Password', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('password', trans('quickadmin::admin.users-create-password'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::password('password', ['class'=>'form-control', 'placeholder'=> 'Password']) !!} + {!! Form::password('password', ['class'=>'form-control', 'placeholder'=> trans('quickadmin::admin.users-create-password_placeholder')]) !!}
    - {!! Form::label('role_id', 'Role', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('role_id', trans('quickadmin::admin.users-create-role'), ['class'=>'col-md-2 control-label']) !!}
    {!! Form::select('role_id', $roles, old('role_id'), ['class'=>'form-control']) !!}
    @@ -52,7 +52,7 @@
    - {!! Form::submit('Create', ['class' => 'btn btn-primary']) !!} + {!! Form::submit(trans('quickadmin::admin.users-create-btncreate'), ['class' => 'btn btn-primary']) !!}
    diff --git a/src/Views/admin/users/edit.blade.php b/src/Views/admin/users/edit.blade.php index da20944..d192589 100644 --- a/src/Views/admin/users/edit.blade.php +++ b/src/Views/admin/users/edit.blade.php @@ -4,7 +4,7 @@
    -

    Create admin

    +

    {{ trans('quickadmin::admin.users-edit-edit_user') }}

    @if ($errors->any())
    @@ -21,28 +21,28 @@ {!! Form::open(['route' => ['users.update', $user->id], 'class' => 'form-horizontal', 'method' => 'PATCH']) !!}
    - {!! Form::label('name', 'Name', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('name', trans('quickadmin::admin.users-edit-name'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::text('name', old('name', $user->name), ['class'=>'form-control', 'placeholder'=> 'Name']) !!} + {!! Form::text('name', old('name', $user->name), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::admin.users-edit-name_placeholder')]) !!}
    - {!! Form::label('email', 'Email', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('email', trans('quickadmin::admin.users-edit-email'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::email('email', old('email', $user->email), ['class'=>'form-control', 'placeholder'=> 'Email']) !!} + {!! Form::email('email', old('email', $user->email), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::admin.users-edit-email_placeholder')]) !!}
    - {!! Form::label('password', 'Password', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('password', trans('quickadmin::admin.users-edit-password'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::password('password', ['class'=>'form-control', 'placeholder'=> 'Password']) !!} + {!! Form::password('password', ['class'=>'form-control', 'placeholder'=> trans('quickadmin::admin.users-edit-password_placeholder')]) !!}
    - {!! Form::label('role_id', 'Role', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('role_id', trans('quickadmin::admin.users-edit-role'), ['class'=>'col-md-2 control-label']) !!}
    {!! Form::select('role_id', $roles, old('role_id', $user->role), ['class'=>'form-control']) !!}
    @@ -52,7 +52,7 @@
    - {!! Form::submit('Update', ['class' => 'btn btn-primary']) !!} + {!! Form::submit(trans('quickadmin::admin.users-edit-btnupdate'), ['class' => 'btn btn-primary']) !!}
    diff --git a/src/Views/admin/users/index.blade.php b/src/Views/admin/users/index.blade.php index 588a081..7379d93 100644 --- a/src/Views/admin/users/index.blade.php +++ b/src/Views/admin/users/index.blade.php @@ -2,18 +2,18 @@ @section('content') -

    {!! link_to_route('users.create', 'Add new', [], ['class' => 'btn btn-success']) !!}

    +

    {!! link_to_route('users.create', trans('quickadmin::admin.users-index-add_new'), [], ['class' => 'btn btn-success']) !!}

    @if($users->count() > 0)
    -
    Users list
    +
    {{ trans('quickadmin::admin.users-index-users_list') }}
    -
    @@ -29,9 +29,9 @@ $FIELDS$ - {!! link_to_route('admin.$ROUTE$.edit', 'Edit', array($row->id), array('class' => 'btn btn-xs btn-info')) !!} - {!! Form::open(array('style' => 'display: inline-block;', 'method' => 'DELETE', 'onsubmit' => 'return confirm(\'Confirm deletion\');', 'route' => array('admin.$ROUTE$.destroy', $row->id))) !!} - {!! Form::submit('Delete', array('class' => 'btn btn-xs btn-danger')) !!} + {!! link_to_route('admin.$ROUTE$.edit', trans('quickadmin::templates.templates-view_index-edit'), array($row->id), array('class' => 'btn btn-xs btn-info')) !!} + {!! Form::open(array('style' => 'display: inline-block;', 'method' => 'DELETE', 'onsubmit' => "return confirm('".trans("quickadmin::templates.templates-view_index-confirm_deletion")."');", 'route' => array('admin.$ROUTE$.destroy', $row->id))) !!} + {!! Form::submit(trans('quickadmin::templates.templates-view_index-delete'), array('class' => 'btn btn-xs btn-danger')) !!} {!! Form::close() !!}
    +
    - + @@ -23,9 +23,9 @@ @@ -36,7 +36,7 @@ @else - No entries found + {{ trans('quickadmin::admin.users-index-no_entries_found') }} @endif @endsection \ No newline at end of file diff --git a/src/Views/auth/login.blade.php b/src/Views/auth/login.blade.php index 5a67449..f928f11 100644 --- a/src/Views/auth/login.blade.php +++ b/src/Views/auth/login.blade.php @@ -4,11 +4,11 @@
    -
    Login
    +
    {{ trans('quickadmin::auth.login-login') }}
    @if (count($errors) > 0)
    - Whoops! there are some problems with input! + {{ trans('quickadmin::auth.whoops') }} {{ trans('quickadmin::auth.some_problems_with_input') }}

      @foreach ($errors->all() as $error) @@ -27,7 +27,7 @@ value="{{ csrf_token() }}">
      - +
      - +
      @@ -63,7 +63,7 @@ class="form-control"
      diff --git a/src/Views/auth/password.blade.php b/src/Views/auth/password.blade.php index d6a5f53..8e2f396 100644 --- a/src/Views/auth/password.blade.php +++ b/src/Views/auth/password.blade.php @@ -4,11 +4,11 @@
      -
      Reset password
      +
      {{ trans('quickadmin::auth.password-reset_password') }}
      @if (count($errors) > 0)
      - Whoops! there are some problems with input! + {{ trans('quickadmin::auth.whoops') }} {{ trans('quickadmin::auth.some_problems_with_input') }}

        @foreach ($errors->all() as $error) @@ -27,7 +27,7 @@ value="{{ csrf_token() }}">
        - +
        - Send Password Reset Link + {{ trans('quickadmin::auth.password-btnsend_password') }}
        diff --git a/src/Views/auth/reset.blade.php b/src/Views/auth/reset.blade.php index 8e21e6b..01e1981 100644 --- a/src/Views/auth/reset.blade.php +++ b/src/Views/auth/reset.blade.php @@ -4,11 +4,11 @@
        -
        Login
        +
        {{ trans('quickadmin::auth.reset-reset_password') }}
        @if (count($errors) > 0)
        - Whoops! there are some problems with input! + {{ trans('quickadmin::auth.whoops') }} {{ trans('quickadmin::auth.some_problems_with_input') }}

          @foreach ($errors->all() as $error) @@ -28,7 +28,7 @@
          - +
          - +
          - +
          - Reset password + {{ trans('quickadmin::auth.reset-btnreset_password') }}
          diff --git a/src/Views/emails/password.blade.php b/src/Views/emails/password.blade.php index 828a671..8644dbc 100644 --- a/src/Views/emails/password.blade.php +++ b/src/Views/emails/password.blade.php @@ -1 +1 @@ -Click here to reset your password: {{ url('password/reset/'.$token) }} \ No newline at end of file +{{ trans('quickadmin::emails.password-reset_your_password') }} {{ url('password/reset/'.$token) }} \ No newline at end of file diff --git a/src/Views/qa/logs/index.blade.php b/src/Views/qa/logs/index.blade.php index ec33568..83f4441 100644 --- a/src/Views/qa/logs/index.blade.php +++ b/src/Views/qa/logs/index.blade.php @@ -4,16 +4,16 @@
          -
          List
          +
          {{ trans('quickadmin::qa.logs-index-list') }}
    Name{{ trans('quickadmin::admin.users-index-name') }}  
    {{ $user->name }} - {!! link_to_route('users.edit', 'Edit', [$user->id], ['class' => 'btn btn-xs btn-info']) !!} - {!! Form::open(['style' => 'display: inline-block;', 'method' => 'DELETE', 'onsubmit' => 'return confirm(\'' . 'Are you sure?' . '\');', 'route' => array('users.destroy', $user->id)]) !!} - {!! Form::submit('Delete', array('class' => 'btn btn-xs btn-danger')) !!} + {!! link_to_route('users.edit', trans('quickadmin::admin.users-index-edit'), [$user->id], ['class' => 'btn btn-xs btn-info']) !!} + {!! Form::open(['style' => 'display: inline-block;', 'method' => 'DELETE', 'onsubmit' => 'return confirm(\'' . trans('quickadmin::admin.users-index-are_you_sure') . '\');', 'route' => array('users.destroy', $user->id)]) !!} + {!! Form::submit(trans('quickadmin::admin.users-index-delete'), array('class' => 'btn btn-xs btn-danger')) !!} {!! Form::close() !!}
    - - - - - + + + + + @@ -31,6 +31,9 @@ processing: true, serverSide: true, ajax: '{{ route('actions.ajax') }}', + language: { + url: "{{ trans('quickadmin::strings.datatable_url_language') }}" + }, columns: [ {data: 'users.name', name: 'user_id'}, {data: 'action', name: 'action'}, diff --git a/src/Views/qa/menus/createCrud.blade.php b/src/Views/qa/menus/createCrud.blade.php index 892d62f..cb35b13 100644 --- a/src/Views/qa/menus/createCrud.blade.php +++ b/src/Views/qa/menus/createCrud.blade.php @@ -4,7 +4,7 @@
    -

    Create new CRUD menu item

    +

    {{ trans('quickadmin::qa.menus-createCrud-create_new_crud') }}

    @if ($errors->any())
    @@ -21,28 +21,28 @@ {!! Form::open(['class' => 'form-horizontal']) !!}
    - {!! Form::label('parent_id', 'CRUD parent', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('parent_id', trans('quickadmin::qa.menus-createCrud-crud_parent'), ['class'=>'col-md-2 control-label']) !!}
    {!! Form::select('parent_id', $parentsSelect, old('parent_id'), ['class'=>'form-control']) !!}
    - {!! Form::label('name', 'CRUD name', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('name', trans('quickadmin::qa.menus-createCrud-crud_name'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=> 'ex. Books or Products (used to generate DB table and all back-end files)']) !!} + {!! Form::text('name', old('name'), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::qa.menus-createCrud-crud_name_placeholder')]) !!}
    - {!! Form::label('title', 'CRUD title', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('title', trans('quickadmin::qa.menus-createCrud-crud_title'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::text('title', old('title'), ['class'=>'form-control', 'placeholder'=> 'Menu title (used for menu item)']) !!} + {!! Form::text('title', old('title'), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::qa.menus-createCrud-crud_title_placeholder')]) !!}
    - {!! Form::label('roles', 'Roles', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('roles', trans('quickadmin::qa.menus-createCrud-roles'), ['class'=>'col-md-2 control-label']) !!}
    @foreach($roles as $role)
    {!! Form::hidden('role-'.$role->id,0) !!} @@ -54,27 +54,27 @@
    - {!! Form::label('soft', 'Use soft delete?', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('soft', trans('quickadmin::qa.menus-createCrud-soft_delete'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::select('soft', [1 => 'Yes', 0 => 'No'], old('soft'), ['class' => 'form-control']) !!} + {!! Form::select('soft', [1 => trans('quickadmin::strings.yes'), 0 => trans('quickadmin::strings.no')], old('soft'), ['class' => 'form-control']) !!}
    - {!! Form::label('icon', 'Icon (font-awesome)', ['class'=>'col-md-2 control-label']) !!} + {!! Form::label('icon', trans('quickadmin::qa.menus-createCrud-icon'), ['class'=>'col-md-2 control-label']) !!}
    - {!! Form::text('icon', old('icon','fa-database'), ['class'=>'form-control', 'placeholder'=> 'Font awesome']) !!} + {!! Form::text('icon', old('icon','fa-database'), ['class'=>'form-control', 'placeholder'=> trans('quickadmin::qa.menus-createCrud-icon_placeholder')]) !!}

    -

    Add fields

    +

    {{ trans('quickadmin::qa.menus-createCrud-add_fields') }}

    UserActionAction modelAction idTime{{ trans('quickadmin::qa.logs-index-user') }}{{ trans('quickadmin::qa.logs-index-action') }}{{ trans('quickadmin::qa.logs-index-action_model') }}{{ trans('quickadmin::qa.logs-index-action_id') }}{{ trans('quickadmin::qa.logs-index-time') }}
    - + @@ -93,7 +93,7 @@
    -
    @@ -102,7 +102,7 @@
    - {!! Form::submit('Create CRUD', ['class' => 'btn btn-primary']) !!} + {!! Form::submit(trans('quickadmin::qa.menus-createCrud-create_crud'), ['class' => 'btn btn-primary']) !!}
    @@ -118,7 +118,7 @@ @foreach($models as $key => $model)
    Show in list{{ trans('quickadmin::qa.menus-createCrud-show_in_list') }} + required="required" placeholder="{{ trans('quickadmin::templates.templates-menu_field_line-field_db_name') }}"> - + + placeholder="{{ trans('quickadmin::templates.templates-menu_field_line-size_limit_placeholder') }}" style="display: none;"> - + - + placeholder="{{ trans('quickadmin::templates.templates-menu_field_line-maximum_width_placeholder') }}" style="display: none;"> + + placeholder="{{ trans('quickadmin::templates.templates-menu_field_line-maximum_height_placeholder') }}" style="display: none;"> + placeholder="{{ trans('quickadmin::templates.templates-menu_field_line-value') }}" style="display: none;"> @@ -48,17 +48,17 @@ class="form-control dimensions" + placeholder="{{ trans('quickadmin::templates.templates-menu_field_line-enum_values_placeholder') }}" style="display: none;"> + required="required" placeholder="{{ trans('quickadmin::templates.templates-menu_field_line-field_visual_title_placeholder') }}"> + placeholder="{{ trans('quickadmin::templates.templates-menu_field_line-comment_below_placeholder') }}">