Commit 17cb5a0c by Francisco Salazar

version minima

parent 6be46607
...@@ -5,6 +5,7 @@ return [ ...@@ -5,6 +5,7 @@ return [
"slug-shop-category" => "categoria", "slug-shop-category" => "categoria",
"tags-enable" => false, "tags-enable" => false,
"subcategory-enable" => false, "subcategory-enable" => false,
"version-minima-enable" => true,
"product-index" => [ "product-index" => [
"pagination" => 15, "pagination" => 15,
"otros" => 3 "otros" => 3
......
...@@ -7,18 +7,17 @@ ...@@ -7,18 +7,17 @@
{!! Form::label('slug', 'URL Slug *') !!} {!! Form::label('slug', 'URL Slug *') !!}
{!! Form::text('slug', null, ["class"=>"form-control", "required"=>"required", "placeholder"=>"Coloque aquí la liga o URL de la categoría", "id"=>"second"]) !!} {!! Form::text('slug', null, ["class"=>"form-control", "required"=>"required", "placeholder"=>"Coloque aquí la liga o URL de la categoría", "id"=>"second"]) !!}
</div> </div>
@if(config("shop.version-minima-enable") == false)
<div class="form-group"> <div class="form-group">
{!! Form::label('description', 'Resumen') !!} {!! Form::label('description', 'Resumen') !!}
{!! Form::text('description', null, ["class"=>"form-control", "placeholder"=>"Coloque la información descriptiva de la categoría"]) !!} {!! Form::text('description', null, ["class"=>"form-control", "placeholder"=>"Coloque la información descriptiva de la categoría"]) !!}
</div> </div>
@endif
<div class="form-group"> <div class="form-group">
{!! Form::label('active', 'Estado') !!} {!! Form::label('active', 'Estado') !!}
{!! Form::select('active', [true=>'Activo', false=>'Inactivo'], null, ["class"=>"form-control", "required"=>"required"]) !!} {!! Form::select('active', [true=>'Activo', false=>'Inactivo'], null, ["class"=>"form-control", "required"=>"required"]) !!}
</div> </div>
@if(config("shop.version-minima-enable") == false)
<div class="form-group"> <div class="form-group">
{!! Form::label('portada', 'Imagén de portada') !!} {!! Form::label('portada', 'Imagén de portada') !!}
@if (isset($category)) @if (isset($category))
...@@ -32,3 +31,4 @@ ...@@ -32,3 +31,4 @@
<br> <br>
{!! Form::file('portada', null, ["class"=>"form-control"]) !!} {!! Form::file('portada', null, ["class"=>"form-control"]) !!}
</div> </div>
@endif
\ No newline at end of file
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
@endif @endif
</div> </div>
@if(config("shop.version-minima-enable") == false)
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
{!! Form::label('description', 'Descripción', ['class'=>'control-label'])!!} {!! Form::label('description', 'Descripción', ['class'=>'control-label'])!!}
...@@ -140,5 +140,14 @@ ...@@ -140,5 +140,14 @@
{!! Form::textarea('specifications', null, ["class"=>"form-control", "required"=>"required", 'id'=>'body', 'rows'=>"30", 'cols'=>"80"]) !!} {!! Form::textarea('specifications', null, ["class"=>"form-control", "required"=>"required", 'id'=>'body', 'rows'=>"30", 'cols'=>"80"]) !!}
</div> </div>
</div> </div>
@endif
@if(config("shop.version-minima-enable"))
<div class="row">
<div class="col-md-12">
{!! Form::label('description', 'Descripción', ['class'=>'control-label'])!!}
{!! Form::textarea('description', null, ["class"=>"form-control", "required"=>"required", 'id'=>'body', 'rows'=>"30", 'cols'=>"80"]) !!}
</div>
</div>
@endif
...@@ -32,8 +32,10 @@ ...@@ -32,8 +32,10 @@
<th>#</th> <th>#</th>
<th>Producto</th> <th>Producto</th>
<th>Descripción</th> <th>Descripción</th>
@if(config("shop.version-minima-enable") == false)
<th>Características</th> <th>Características</th>
<th>Especificaciones</th> <th>Especificaciones</th>
@endif
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
...@@ -56,8 +58,10 @@ ...@@ -56,8 +58,10 @@
{data: 'id', name: 'id'}, {data: 'id', name: 'id'},
{data: 'main', name: 'main'}, {data: 'main', name: 'main'},
{data: 'description', name: 'description'}, {data: 'description', name: 'description'},
@if(config("shop.version-minima-enable") == false)
{data: 'features', name: 'features'}, {data: 'features', name: 'features'},
{data: 'specifications', name: 'specifications'}, {data: 'specifications', name: 'specifications'},
@endif
{data: 'form', name: 'form'}, {data: 'form', name: 'form'},
] ]
}); });
......
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