Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
fdb78acb
Commit
fdb78acb
authored
Oct 04, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Translating the workbench views
parent
e1434bb5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
69 additions
and
19 deletions
+69
-19
workbench.php
Resources/lang/en/workbench.php
+25
-0
workbench.php
Resources/lang/fr/workbench.php
+25
-0
index.blade.php
Resources/views/admin/workbench/index.blade.php
+6
-6
generate.blade.php
Resources/views/admin/workbench/tabs/generate.blade.php
+9
-9
migrate.blade.php
Resources/views/admin/workbench/tabs/migrate.blade.php
+2
-2
seed.blade.php
Resources/views/admin/workbench/tabs/seed.blade.php
+2
-2
No files found.
Resources/lang/en/workbench.php
0 → 100644
View file @
fdb78acb
<?php
return
[
'title'
=>
'Module helpers'
,
'subtitle'
=>
[
'generate new module'
=>
'Generate a new module'
,
'install new module by vendor name'
=>
'Install a module by vendor/name'
,
],
'tab'
=>
[
'generators'
=>
'Generators'
,
'migrations'
=>
'Migrations'
,
'seeds'
=>
'Seeds'
,
],
'form'
=>
[
'module name'
=>
'Module name'
,
'vendor name of the module'
=>
'Vendor/name of the module'
,
'install as subtree'
=>
'Install as a subtree?'
,
],
'button'
=>
[
'generate new module'
=>
'Generate new module'
,
'install new module'
=>
'Install new module'
,
'migrate'
=>
'Migrate'
,
'seed'
=>
'Seed'
,
]
];
Resources/lang/fr/workbench.php
0 → 100644
View file @
fdb78acb
<?php
return
[
'title'
=>
'Aide au modules'
,
'subtitle'
=>
[
'generate new module'
=>
'Générer un nouveau module'
,
'install new module by vendor name'
=>
'Installer un nouveau module par son vendor/name'
,
],
'tab'
=>
[
'generators'
=>
'Generators'
,
'migrations'
=>
'Migrations'
,
'seeds'
=>
'Seeds'
,
],
'form'
=>
[
'module name'
=>
'Nom du module'
,
'vendor name of the module'
=>
'Vendor/name du module'
,
'install as subtree'
=>
'Installer en tant que subtree?'
,
],
'button'
=>
[
'generate new module'
=>
'Generer le module'
,
'install new module'
=>
'Installer le module'
,
'migrate'
=>
'Migrer'
,
'seed'
=>
'Seed'
,
]
];
Resources/views/admin/workbench/index.blade.php
View file @
fdb78acb
...
@@ -2,11 +2,11 @@
...
@@ -2,11 +2,11 @@
@
section
(
'content-header'
)
@
section
(
'content-header'
)
<
h1
>
<
h1
>
Module
helpers
{{
trans
(
'workshop::workbench.title'
)
}}
</
h1
>
</
h1
>
<
ol
class
="
breadcrumb
">
<
ol
class
="
breadcrumb
">
<li><a href="
{{
URL
::
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i>
Home
</a></li>
<li><a href="
{{
URL
::
route
(
'dashboard.index'
)
}}
"><i class="
fa
fa
-
dashboard
"></i>
{{ trans('user::users.breadcrumb.home') }}
</a></li>
<li class="
active
">
Workbench
</li>
<li class="
active
">
{{ trans('workshop::workbench.title') }}
</li>
</ol>
</ol>
@stop
@stop
...
@@ -19,9 +19,9 @@
...
@@ -19,9 +19,9 @@
<div class="
col
-
md
-
12
">
<div class="
col
-
md
-
12
">
<div class="
nav
-
tabs
-
custom
">
<div class="
nav
-
tabs
-
custom
">
<ul class="
nav
nav
-
tabs
">
<ul class="
nav
nav
-
tabs
">
<li class="
active
"><a href="
#tab_1-1" data-toggle="tab">
Generator
</a></li>
<li class="
active
"><a href="
#tab_1-1" data-toggle="tab">
{{ trans('workshop::workbench.tab.generators') }}
</a></li>
<
li
><
a
href
=
"#tab_2-2"
data
-
toggle
=
"tab"
>
Migrations
</
a
></
li
>
<
li
><
a
href
=
"#tab_2-2"
data
-
toggle
=
"tab"
>
{{
trans
(
'workshop::workbench.tab.migrations'
)
}}
</
a
></
li
>
<
li
><
a
href
=
"#tab_3-3"
data
-
toggle
=
"tab"
>
Seeds
</
a
></
li
>
<
li
><
a
href
=
"#tab_3-3"
data
-
toggle
=
"tab"
>
{{
trans
(
'workshop::workbench.tab.seeds'
)
}}
</
a
></
li
>
</
ul
>
</
ul
>
<
div
class
="
tab
-
content
">
<
div
class
="
tab
-
content
">
<div class="
tab
-
pane
active
" id="
tab_1
-
1
">
<div class="
tab
-
pane
active
" id="
tab_1
-
1
">
...
...
Resources/views/admin/workbench/tabs/generate.blade.php
View file @
fdb78acb
...
@@ -3,35 +3,35 @@
...
@@ -3,35 +3,35 @@
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
{!! Form::open(['route' => 'dashboard.workbench.generate.index', 'method' => 'post']) !!}
{!! Form::open(['route' => 'dashboard.workbench.generate.index', 'method' => 'post']) !!}
<div class="
box
-
body
">
<div class="
box
-
body
">
<h4>
Generate a new module
</h4>
<h4>
{{ trans('workshop::workbench.subtitle.generate new module') }}
</h4>
<div class='form-group{{
$errors->has
('name') ? ' has-error' : '' }}'>
<div class='form-group{{
$errors->has
('name') ? ' has-error' : '' }}'>
{!! Form::label('name',
'Module Name:'
) !!}
{!! Form::label('name',
trans('workshop::workbench.form.module name')
) !!}
{!! Form::text('name', Input::old('name'), ['class' => 'form-control', 'placeholder' =>
'Module Name'
]) !!}
{!! Form::text('name', Input::old('name'), ['class' => 'form-control', 'placeholder' =>
trans('workshop::workbench.form.module name')
]) !!}
{!!
$errors->first
('name', '<span class="
help
-
block
">:message</span>') !!}
{!!
$errors->first
('name', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
<div class="
box
-
footer
">
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
Generate new module
</button>
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
{{ trans('workshop::workbench.button.generate new module') }}
</button>
</div>
</div>
{!! Form::close() !!}
{!! Form::close() !!}
</div>
</div>
<div class="
col
-
md
-
6
">
<div class="
col
-
md
-
6
">
{!! Form::open(['route' => 'dashboard.workbench.install.index', 'method' => 'post']) !!}
{!! Form::open(['route' => 'dashboard.workbench.install.index', 'method' => 'post']) !!}
<div class="
box
-
body
">
<div class="
box
-
body
">
<h4>
Install a module by vendor/name
</h4>
<h4>
{{ trans('workshop::workbench.subtitle.install new module by vendor name') }}
</h4>
<div class='form-group{{
$errors->has
('vendorName') ? ' has-error' : '' }}'>
<div class='form-group{{
$errors->has
('vendorName') ? ' has-error' : '' }}'>
{!! Form::label('vendorName',
'vendor/name of the module:'
) !!}
{!! Form::label('vendorName',
trans('workshop::workbench.form.vendor name of the module')
) !!}
{!! Form::text('vendorName', Input::old('vendorName'), ['class' => 'form-control', 'placeholder' =>
'Module Name'
]) !!}
{!! Form::text('vendorName', Input::old('vendorName'), ['class' => 'form-control', 'placeholder' =>
trans('workshop::workbench.form.vendor name of the module')
]) !!}
{!!
$errors->first
('vendorName', '<span class="
help
-
block
">:message</span>') !!}
{!!
$errors->first
('vendorName', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
<div class="
checkbox
">
<div class="
checkbox
">
<label for="
subtree
">
<label for="
subtree
">
<input id="
subtree
" name="
subtree
" type="
checkbox
" class="
flat
-
blue
" value="
true
" />
Install as a subtree?
<input id="
subtree
" name="
subtree
" type="
checkbox
" class="
flat
-
blue
" value="
true
" />
{{ trans('workshop::workbench.form.install as subtree') }}
</label>
</label>
</div>
</div>
</div>
</div>
<div class="
box
-
footer
">
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
Install new module
</button>
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
{{ trans('workshop::workbench.button.install new module') }}
</button>
</div>
</div>
{!! Form::close() !!}
{!! Form::close() !!}
</div>
</div>
...
...
Resources/views/admin/workbench/tabs/migrate.blade.php
View file @
fdb78acb
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
{
!!
Form
::
open
([
'route'
=>
'dashboard.workbench.migrate.index'
,
'method'
=>
'post'
])
!!
}
{
!!
Form
::
open
([
'route'
=>
'dashboard.workbench.migrate.index'
,
'method'
=>
'post'
])
!!
}
<
div
class
="
box
-
body
">
<
div
class
="
box
-
body
">
<div class='form-group{{
$errors->has
('module') ? ' has-error' : '' }}'>
<div class='form-group{{
$errors->has
('module') ? ' has-error' : '' }}'>
{!! Form::label('module',
'Module Name:'
) !!}
{!! Form::label('module',
trans('workshop::workbench.form.module name')
) !!}
{!! Form::select('module',
$modules
, null, ['class' => 'form-control']) !!}
{!! Form::select('module',
$modules
, null, ['class' => 'form-control']) !!}
{!!
$errors->first
('module', '<span class="
help
-
block
">:message</span>') !!}
{!!
$errors->first
('module', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
<div class="
box
-
footer
">
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
Migrate
</button>
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
{{ trans('workshop::workbench.button.migrate') }}
</button>
</div>
</div>
{!! Form::close() !!}
{!! Form::close() !!}
\ No newline at end of file
Resources/views/admin/workbench/tabs/seed.blade.php
View file @
fdb78acb
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
{
!!
Form
::
open
([
'route'
=>
'dashboard.workbench.seed.index'
,
'method'
=>
'post'
])
!!
}
{
!!
Form
::
open
([
'route'
=>
'dashboard.workbench.seed.index'
,
'method'
=>
'post'
])
!!
}
<
div
class
="
box
-
body
">
<
div
class
="
box
-
body
">
<div class='form-group{{
$errors->has
('module') ? ' has-error' : '' }}'>
<div class='form-group{{
$errors->has
('module') ? ' has-error' : '' }}'>
{!! Form::label('module',
'Module Name:'
) !!}
{!! Form::label('module',
trans('workshop::workbench.form.module name')
) !!}
{!! Form::select('module',
$modules
, null, ['class' => 'form-control']) !!}
{!! Form::select('module',
$modules
, null, ['class' => 'form-control']) !!}
{!!
$errors->first
('module', '<span class="
help
-
block
">:message</span>') !!}
{!!
$errors->first
('module', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
</div>
</div>
<div class="
box
-
footer
">
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
Seed
</button>
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">
{{ trans('workshop::workbench.button.seed') }}
</button>
</div>
</div>
{!! Form::close() !!}
{!! Form::close() !!}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment