Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-shop-ceramica-gtz
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
Francisco Salazar
onestartup-shop-ceramica-gtz
Commits
3f8fe8ec
Commit
3f8fe8ec
authored
Oct 26, 2018
by
Francisco Salazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ocultar objetos
parent
ba9fd6e3
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
29 deletions
+42
-29
shop.php
src/config/shop.php
+1
-0
fields.blade.php
src/views/product/fields.blade.php
+19
-12
fields_extra.blade.php
src/views/product/fields_extra.blade.php
+16
-15
index.blade.php
src/views/product/index.blade.php
+4
-0
fields.blade.php
src/views/subcategory/fields.blade.php
+2
-2
No files found.
src/config/shop.php
View file @
3f8fe8ec
...
@@ -5,6 +5,7 @@ return [
...
@@ -5,6 +5,7 @@ return [
"slug-shop-category"
=>
"categoria"
,
"slug-shop-category"
=>
"categoria"
,
"tags-enable"
=>
true
,
"tags-enable"
=>
true
,
"subcategory-enable"
=>
true
,
"subcategory-enable"
=>
true
,
"version-minimal"
=>
true
,
"product-index"
=>
[
"product-index"
=>
[
"pagination"
=>
15
,
"pagination"
=>
15
,
"otros"
=>
3
"otros"
=>
3
...
...
src/views/product/fields.blade.php
View file @
3f8fe8ec
...
@@ -5,7 +5,15 @@
...
@@ -5,7 +5,15 @@
{!! Form::text('name', null, ["class"=>"form-control", "required"=>"required", "id"=>"first"]) !!}
{!! Form::text('name', null, ["class"=>"form-control", "required"=>"required", "id"=>"first"]) !!}
</div>
</div>
</div>
</div>
<div
class=
'col-md-6'
>
<div
class=
"form-group"
>
{!! Form::label('active', 'Estado', ['class'=>'control-label'])!!}
{!! Form::select('active', [true=>'Activo', false=>'Inactivo'], null, ["class"=>"form-control", "required"=>"required"]) !!}
</div>
</div>
</div>
<div
class=
'row {{config("shop.version-minimal") == false ? "" : "hide"}}'
>
<div
class=
"col-md-6"
>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{!! Form::label('slug', 'URL Slug', ['class'=>'control-label'])!!}
{!! Form::label('slug', 'URL Slug', ['class'=>'control-label'])!!}
...
@@ -13,19 +21,8 @@
...
@@ -13,19 +21,8 @@
</div>
</div>
</div>
</div>
</div>
<div
class=
'row'
>
<div
class=
'col-md-6'
>
<div
class=
"form-group"
>
{!! Form::label('active', 'Estado', ['class'=>'control-label'])!!}
{!! Form::select('active', [true=>'Activo', false=>'Inactivo'], null, ["class"=>"form-control", "required"=>"required"]) !!}
</div>
</div>
<div
class=
'col-md-6'
>
<div
class=
'col-md-6'
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{!! Form::label('publication_date', 'Fecha de publicación', ['class'=>'control-label'])!!}
{!! Form::label('publication_date', 'Fecha de publicación', ['class'=>'control-label'])!!}
{!! Form::text('publication_date', isset($product) ? null: date('Y-m-d'), ["class"=>"form-control", "required"=>"required", "id"=>"publication_date"]) !!}
{!! Form::text('publication_date', isset($product) ? null: date('Y-m-d'), ["class"=>"form-control", "required"=>"required", "id"=>"publication_date"]) !!}
</div>
</div>
...
@@ -122,12 +119,13 @@
...
@@ -122,12 +119,13 @@
@endif
@endif
</div>
</div>
@if(config("shop.version-minimal") == 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'])!!}
{!! Form::textarea('description', null, ["class"=>"form-control", "required"=>"required", 'id'=>'body', 'rows'=>"30", 'cols'=>"80"]) !!}
{!! Form::textarea('description', null, ["class"=>"form-control", "required"=>"required", 'id'=>'body', 'rows'=>"30", 'cols'=>"80"]) !!}
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"col-md-6"
>
{!! Form::label('features', 'Características', ['class'=>'control-label'])!!}
{!! Form::label('features', 'Características', ['class'=>'control-label'])!!}
{!! Form::textarea('features', null, ["class"=>"form-control", "required"=>"required", 'id'=>'body', 'rows'=>"30", 'cols'=>"80"]) !!}
{!! Form::textarea('features', null, ["class"=>"form-control", "required"=>"required", 'id'=>'body', 'rows'=>"30", 'cols'=>"80"]) !!}
...
@@ -140,5 +138,14 @@
...
@@ -140,5 +138,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>
@else
<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/fields_extra.blade.php
View file @
3f8fe8ec
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
{!! Form::label('purchase_price', 'Precio de compra', ['class'=>'control-label'])!!}
<div
class=
"input-group"
>
<div
class=
"input-group-addon"
>
$
</div>
{!! Form::text('purchase_price', null, ["class"=>"form-control", "required"=>"required"]) !!}
</div>
</div>
</div>
<div
class=
"col-md-6"
>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{!! Form::label('sale_price', 'Precio de venta', ['class'=>'control-label'])!!}
{!! Form::label('sale_price', 'Precio de venta', ['class'=>'control-label'])!!}
...
@@ -17,10 +9,6 @@
...
@@ -17,10 +9,6 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
'row'
>
<div
class=
'col-md-6'
>
<div
class=
'col-md-6'
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{!! Form::label('quantity', 'Cantidad', ['class'=>'control-label'])!!}
{!! Form::label('quantity', 'Cantidad', ['class'=>'control-label'])!!}
...
@@ -30,12 +18,25 @@
...
@@ -30,12 +18,25 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
'row {{(config("shop.version-minimal") == false) ? "" : "hide"}}'
>
<div
class=
"col-md-6"
>
<div
class=
"form-group"
>
{!! Form::label('purchase_price', 'Precio de compra', ['class'=>'control-label'])!!}
<div
class=
"input-group"
>
<div
class=
"input-group-addon"
>
$
</div>
{!! Form::text('purchase_price', 0, ["class"=>"form-control", "required"=>"required"]) !!}
</div>
</div>
</div>
<div
class=
'col-md-6'
>
<div
class=
'col-md-6'
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{!! Form::label('reserve_amount', 'Cantidad de reserva', ['class'=>'control-label'])!!}
{!! Form::label('reserve_amount', 'Cantidad de reserva', ['class'=>'control-label'])!!}
<div
class=
"input-group"
>
<div
class=
"input-group"
>
<div
class=
"input-group-addon"
><i
class=
"fa fa-shopping-cart"
aria-hidden=
"true"
></i></div>
<div
class=
"input-group-addon"
><i
class=
"fa fa-shopping-cart"
aria-hidden=
"true"
></i></div>
{!! Form::text('reserve_amount',
null
, ["class"=>"form-control", "required"=>"required"]) !!}
{!! Form::text('reserve_amount',
0
, ["class"=>"form-control", "required"=>"required"]) !!}
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -44,7 +45,7 @@
...
@@ -44,7 +45,7 @@
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"col-md-6"
>
<div
class=
"col-md-6"
>
{!! Form::label('unity', 'Unidad', ['class'=>'control-label'])!!}
{!! Form::label('unity', 'Unidad', ['class'=>'control-label'])!!}
{!! Form::select('unity', ['Pieza'=>'Pieza', '
Kilogramo'=>'Kilogramo','Metro'=>'Metro', 'Litro'=>'Litro', 'Gramo'=>'Gramo'
],null, ["class"=>"form-control", "required"=>"required"]) !!}
{!! Form::select('unity', ['Pieza'=>'Pieza', '
m2'=>'m2', 'Kilogramo'=>'Kilogramo','Metro'=>'Metro', 'Litro'=>'Litro', 'Gramo'=>'Gramo',
],null, ["class"=>"form-control", "required"=>"required"]) !!}
</div>
</div>
</div>
</div>
...
...
src/views/product/index.blade.php
View file @
3f8fe8ec
...
@@ -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
-
minimal
") == 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
-
minimal
") == 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'},
]
]
});
});
...
...
src/views/subcategory/fields.blade.php
View file @
3f8fe8ec
...
@@ -20,11 +20,11 @@
...
@@ -20,11 +20,11 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
{!! Form::label('related_subcategories', '¿De cua
l(es) subcategorías seran los productos relacionados de esta subcategoría
?') !!}
{!! Form::label('related_subcategories', '¿De cua
́les subcategorías serán los productos relacionados
?') !!}
</div>
</div>
<div
class=
"row"
>
<div
class=
"row"
>
@foreach($related_subcategories as $index => $value)
@foreach($related_subcategories as $index => $value)
<div
class=
"col-md-
2
"
>
<div
class=
"col-md-
3
"
>
{!! Form::checkbox('related_subcategories[]', $index, in_array($index,isset($subcategory->related_products) ? $subcategory->related_products->pluck("id")->toArray() : []) ? true : false) !!} {{$value}}
{!! Form::checkbox('related_subcategories[]', $index, in_array($index,isset($subcategory->related_products) ? $subcategory->related_products->pluck("id")->toArray() : []) ? true : false) !!} {{$value}}
</div>
</div>
@endforeach
@endforeach
...
...
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