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
d662f634
Commit
d662f634
authored
Sep 27, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up the workbench tabs in partials
parent
ab7c82a7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
51 deletions
+53
-51
index.blade.php
Resources/views/admin/workbench/index.blade.php
+2
-51
generate.blade.php
Resources/views/admin/workbench/tabs/generate.blade.php
+38
-0
migrate.blade.php
Resources/views/admin/workbench/tabs/migrate.blade.php
+13
-0
No files found.
Resources/views/admin/workbench/index.blade.php
View file @
d662f634
...
...
@@ -24,59 +24,10 @@
</
ul
>
<
div
class
="
tab
-
content
">
<div class="
tab
-
pane
active
" id="
tab_1
-
1
">
@include('flash::message')
<div class="
row
">
<div class="
col
-
md
-
6
">
{!! Form::open(['route' => 'dashboard.workbench.generate.index', 'method' => 'post']) !!}
<div class="
box
-
body
">
<h4>Generate a new module</h4>
<div class='form-group{{
$errors->has
('name') ? ' has-error' : '' }}'>
{!! Form::label('name', 'Module Name:') !!}
{!! Form::text('name', Input::old('name'), ['class' => 'form-control', 'placeholder' => 'Module Name']) !!}
{!!
$errors->first
('name', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">Generate new module</button>
</div>
{!! Form::close() !!}
</div>
<div class="
col
-
md
-
6
">
{!! Form::open(['route' => 'dashboard.workbench.install.index', 'method' => 'post']) !!}
<div class="
box
-
body
">
<h4>Install a module by vendor/name</h4>
<div class='form-group{{
$errors->has
('vendorName') ? ' has-error' : '' }}'>
{!! Form::label('vendorName', 'vendor/name of the module:') !!}
{!! Form::text('vendorName', Input::old('vendorName'), ['class' => 'form-control', 'placeholder' => 'Module Name']) !!}
{!!
$errors->first
('vendorName', '<span class="
help
-
block
">:message</span>') !!}
</div>
<div class="
checkbox
">
<label for="
subtree
">
<input id="
subtree
" name="
subtree
" type="
checkbox
" class="
flat
-
blue
" value="
true
" /> Install as a subtree?
</label>
</div>
</div>
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">Install new module</button>
</div>
{!! Form::close() !!}
</div>
</div>
@include('workshop::admin.workbench.tabs.generate')
</div>
<div class="
tab
-
pane
" id="
tab_2
-
2
">
@include('flash::message')
{!! Form::open(['route' => 'dashboard.workbench.migrate.index', 'method' => 'post']) !!}
<div class="
box
-
body
">
<div class='form-group{{
$errors->has
('module') ? ' has-error' : '' }}'>
{!! Form::label('module', 'Module Name:') !!}
{!! Form::text('module', Input::old('name'), ['class' => 'form-control', 'placeholder' => 'Module Name']) !!}
{!!
$errors->first
('module', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">Migrate</button>
</div>
{!! Form::close() !!}
@include('workshop::admin.workbench.tabs.migrate')
</div>
</div>
</div>
...
...
Resources/views/admin/workbench/tabs/generate.blade.php
0 → 100644
View file @
d662f634
@
include
(
'flash::message'
)
<
div
class
="
row
">
<div class="
col
-
md
-
6
">
{!! Form::open(['route' => 'dashboard.workbench.generate.index', 'method' => 'post']) !!}
<div class="
box
-
body
">
<h4>Generate a new module</h4>
<div class='form-group{{
$errors->has
('name') ? ' has-error' : '' }}'>
{!! Form::label('name', 'Module Name:') !!}
{!! Form::text('name', Input::old('name'), ['class' => 'form-control', 'placeholder' => 'Module Name']) !!}
{!!
$errors->first
('name', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">Generate new module</button>
</div>
{!! Form::close() !!}
</div>
<div class="
col
-
md
-
6
">
{!! Form::open(['route' => 'dashboard.workbench.install.index', 'method' => 'post']) !!}
<div class="
box
-
body
">
<h4>Install a module by vendor/name</h4>
<div class='form-group{{
$errors->has
('vendorName') ? ' has-error' : '' }}'>
{!! Form::label('vendorName', 'vendor/name of the module:') !!}
{!! Form::text('vendorName', Input::old('vendorName'), ['class' => 'form-control', 'placeholder' => 'Module Name']) !!}
{!!
$errors->first
('vendorName', '<span class="
help
-
block
">:message</span>') !!}
</div>
<div class="
checkbox
">
<label for="
subtree
">
<input id="
subtree
" name="
subtree
" type="
checkbox
" class="
flat
-
blue
" value="
true
" /> Install as a subtree?
</label>
</div>
</div>
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">Install new module</button>
</div>
{!! Form::close() !!}
</div>
</div>
\ No newline at end of file
Resources/views/admin/workbench/tabs/migrate.blade.php
0 → 100644
View file @
d662f634
@
include
(
'flash::message'
)
{
!!
Form
::
open
([
'route'
=>
'dashboard.workbench.migrate.index'
,
'method'
=>
'post'
])
!!
}
<
div
class
="
box
-
body
">
<div class='form-group{{
$errors->has
('module') ? ' has-error' : '' }}'>
{!! Form::label('module', 'Module Name:') !!}
{!! Form::text('module', Input::old('name'), ['class' => 'form-control', 'placeholder' => 'Module Name']) !!}
{!!
$errors->first
('module', '<span class="
help
-
block
">:message</span>') !!}
</div>
</div>
<div class="
box
-
footer
">
<button type="
submit
" class="
btn
btn
-
primary
btn
-
flat
">Migrate</button>
</div>
{!! 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