Commit d662f634 authored by Nicolas Widart's avatar Nicolas Widart

Clean up the workbench tabs in partials

parent ab7c82a7
......@@ -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>
......
@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
@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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment