Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Angel Martin
onestartup-shop
Commits
17cb5a0c
Commit
17cb5a0c
authored
Oct 01, 2018
by
Francisco Salazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
version minima
parent
6be46607
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
10 deletions
+24
-10
shop.php
src/config/shop.php
+1
-0
fields.blade.php
src/views/category/fields.blade.php
+6
-6
fields.blade.php
src/views/product/fields.blade.php
+10
-1
index.blade.php
src/views/product/index.blade.php
+7
-3
No files found.
src/config/shop.php
View file @
17cb5a0c
...
...
@@ -5,6 +5,7 @@ return [
"slug-shop-category"
=>
"categoria"
,
"tags-enable"
=>
false
,
"subcategory-enable"
=>
false
,
"version-minima-enable"
=>
true
,
"product-index"
=>
[
"pagination"
=>
15
,
"otros"
=>
3
...
...
src/views/category/fields.blade.php
View file @
17cb5a0c
...
...
@@ -7,18 +7,17 @@
{!! 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"]) !!}
</div>
@if(config("shop.version-minima-enable") == false)
<div
class=
"form-group"
>
{!! Form::label('description', 'Resumen') !!}
{!! Form::text('description', null, ["class"=>"form-control", "placeholder"=>"Coloque la información descriptiva de la categoría"]) !!}
</div>
@endif
<div
class=
"form-group"
>
{!! Form::label('active', 'Estado') !!}
{!! Form::select('active', [true=>'Activo', false=>'Inactivo'], null, ["class"=>"form-control", "required"=>"required"]) !!}
</div>
@if(config("shop.version-minima-enable") == false)
<div
class=
"form-group"
>
{!! Form::label('portada', 'Imagén de portada') !!}
@if (isset($category))
...
...
@@ -31,4 +30,5 @@
@endif
<br>
{!! Form::file('portada', null, ["class"=>"form-control"]) !!}
</div>
\ No newline at end of file
</div>
@endif
\ No newline at end of file
src/views/product/fields.blade.php
View file @
17cb5a0c
...
...
@@ -122,7 +122,7 @@
@endif
</div>
@if(config("shop.version-minima-enable") == false)
<div
class=
"row"
>
<div
class=
"col-md-6"
>
{!! Form::label('description', 'Descripción', ['class'=>'control-label'])!!}
...
...
@@ -140,5 +140,14 @@
{!! Form::textarea('specifications', null, ["class"=>"form-control", "required"=>"required", 'id'=>'body', 'rows'=>"30", 'cols'=>"80"]) !!}
</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
src/views/product/index.blade.php
View file @
17cb5a0c
...
...
@@ -32,8 +32,10 @@
<th>#</th>
<th>Producto</th>
<th>Descripción</th>
<th>Características</th>
<th>Especificaciones</th>
@if(config("
shop
.
version
-
minima
-
enable
") == false)
<th>Características</th>
<th>Especificaciones</th>
@endif
<th></th>
</tr>
</thead>
...
...
@@ -56,8 +58,10 @@
{data: 'id', name: 'id'},
{data: 'main', name: 'main'},
{data: 'description', name: 'description'},
{data: 'features', name: 'features'},
@if(config("
shop
.
version
-
minima
-
enable
") == false)
{data: 'features', name: 'features'},
{data: 'specifications', name: 'specifications'},
@endif
{data: 'form', name: 'form'},
]
});
...
...
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