admin_users 多语言
This commit is contained in:
parent
766fa9c2e0
commit
0ba62d4ada
|
|
@ -1,32 +1,32 @@
|
|||
@extends('admin::layouts.master')
|
||||
|
||||
@section('title', '后台用户')
|
||||
@section('title', __('admin/common.admin_user'))
|
||||
|
||||
@section('content')
|
||||
<ul class="nav-bordered nav nav-tabs mb-3">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" aria-current="page" href="{{ admin_route('admin_users.index') }}">后台用户</a>
|
||||
<a class="nav-link active" aria-current="page" href="{{ admin_route('admin_users.index') }}">{{ __('admin/common.admin_user') }}</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="{{ admin_route('admin_roles.index') }}">用户角色</a>
|
||||
<a class="nav-link" href="{{ admin_route('admin_roles.index') }}">{{ __('admin/common.admin_role') }}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div id="tax-classes-app" class="card" v-cloak>
|
||||
<div class="card-body h-min-600">
|
||||
<div class="d-flex justify-content-between mb-4">
|
||||
<button type="button" class="btn btn-primary" @click="checkedCreate('add', null)">创建用户</button>
|
||||
<button type="button" class="btn btn-primary" @click="checkedCreate('add', null)">{{ __('admin/user.admin_users_create') }}</button>
|
||||
</div>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>账号名称</th>
|
||||
<th>邮箱</th>
|
||||
<th>角色</th>
|
||||
<th>创建时间</th>
|
||||
<th>修改时间</th>
|
||||
<th class="text-end">操作</th>
|
||||
<th>{{ __('common.name') }}</th>
|
||||
<th>{{ __('common.email') }}</th>
|
||||
<th>{{ __('admin/common.admin_role') }}</th>
|
||||
<th>{{ __('common.created_at') }}</th>
|
||||
<th>{{ __('common.updated_at') }}</th>
|
||||
<th class="text-end">{{ __('common.action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
|
@ -42,8 +42,8 @@
|
|||
<td>@{{ tax.created_at }}</td>
|
||||
<td>@{{ tax.updated_at }}</td>
|
||||
<td class="text-end">
|
||||
<button class="btn btn-outline-secondary btn-sm" @click="checkedCreate('edit', index)">编辑</button>
|
||||
<button class="btn btn-outline-danger btn-sm ml-1" type="button" @click="deleteCustomer(tax.id, index)">删除</button>
|
||||
<button class="btn btn-outline-secondary btn-sm" @click="checkedCreate('edit', index)">{{ __('common.edit') }}</button>
|
||||
<button class="btn btn-outline-danger btn-sm ml-1" type="button" @click="deleteCustomer(tax.id, index)">{{ __('common.delete') }}</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
@ -52,24 +52,24 @@
|
|||
{{-- {{ $admin_users->links('admin::vendor/pagination/bootstrap-4') }} --}}
|
||||
</div>
|
||||
|
||||
<el-dialog title="用户" :visible.sync="dialog.show" width="600px"
|
||||
<el-dialog title="{{ __('admin/common.admin_user') }}" :visible.sync="dialog.show" width="600px"
|
||||
@close="closeCustomersDialog('form')" :close-on-click-modal="false">
|
||||
|
||||
<el-form ref="form" :rules="rules" :model="dialog.form" label-width="100px">
|
||||
<el-form-item label="账号名称" prop="name">
|
||||
<el-input v-model="dialog.form.name" placeholder="账号名称"></el-input>
|
||||
<el-form-item label="{{ __('common.name') }}" prop="name">
|
||||
<el-input v-model="dialog.form.name" placeholder="{{ __('common.name') }}"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="邮箱" prop="email">
|
||||
<el-input v-model="dialog.form.email" placeholder="邮箱"></el-input>
|
||||
<el-form-item label="{{ __('common.email') }}" prop="email">
|
||||
<el-input v-model="dialog.form.email" placeholder="{{ __('common.email') }}"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="密码" :prop="dialog.form.id === null || dialog.form.id == '' ? 'password' : ''">
|
||||
<el-input v-model="dialog.form.password" placeholder="密码"></el-input>
|
||||
<el-form-item label="{{ __('shop/login.password') }}" :prop="dialog.form.id === null || dialog.form.id == '' ? 'password' : ''">
|
||||
<el-input v-model="dialog.form.password" placeholder="{{ __('common.password') }}"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="语言">
|
||||
<el-select v-model="dialog.form.locale" placeholder="请选择">
|
||||
<el-form-item label="{{ __('common.language') }}">
|
||||
<el-select v-model="dialog.form.locale" placeholder="">
|
||||
<el-option
|
||||
v-for="language in source.languages"
|
||||
:key="language.code"
|
||||
|
|
@ -86,8 +86,8 @@
|
|||
</el-form-item>
|
||||
|
||||
<el-form-item class="mt-5">
|
||||
<el-button type="primary" @click="addFormSubmit('form')">保存</el-button>
|
||||
<el-button @click="closeCustomersDialog('form')">取消</el-button>
|
||||
<el-button type="primary" @click="addFormSubmit('form')">{{ __('common.save') }}</el-button>
|
||||
<el-button @click="closeCustomersDialog('form')">{{ __('common.cancel') }}</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ return [
|
|||
'phone' => 'Phone',
|
||||
'exit' => 'Exit',
|
||||
'return' => 'Return',
|
||||
'language' => 'Language',
|
||||
|
||||
'id' => 'ID',
|
||||
'created_at' => 'Created At',
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ return [
|
|||
'phone' => '电话',
|
||||
'exit' => '退出',
|
||||
'return' => '返回',
|
||||
'language' => '语言',
|
||||
|
||||
'id' => 'ID',
|
||||
'created_at' => '创建时间',
|
||||
|
|
|
|||
Loading…
Reference in New Issue