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
98bd1473
Commit
98bd1473
authored
Oct 15, 2018
by
Francisco Salazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
select variables extra
parent
38e0f538
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
edit.blade.php
src/views/extra/edit.blade.php
+7
-0
fields.blade.php
src/views/extra/fields.blade.php
+1
-8
No files found.
src/views/extra/edit.blade.php
View file @
98bd1473
...
...
@@ -14,6 +14,13 @@
</li>
@endsection
@section('content')
@php
$var
=explode("
,
",
$extra->values
);
$value_array
= [];
foreach(
$var
as
$result
) {
$value_array[$result]
=
$result
;
}
@endphp
<div class='row'>
<div class='col-md-12'>
<div class='box'>
...
...
src/views/extra/fields.blade.php
View file @
98bd1473
@
php
$var
=
explode
(
","
,
$extra
->
values
);
$value_array
=
[];
foreach
(
$var
as
$result
)
{
$value_array
[
$result
]
=
$result
;
}
@
endphp
<div
class=
"form-group"
>
{!! Form::label('variable', 'Variable') !!}
{!! Form::select('variable', $variables, null, ["class"=>"form-control", "required"=>"required", "placeholder"=>"Elija una variable"]) !!}
...
...
@@ -23,7 +16,7 @@
<div
class=
"form-group"
id=
"select-values"
style=
"display: none;"
>
{!! Form::label('values', 'Valores del select: ', ['class'=>'control-label'])!!}
{{ isset($extra->values) ? $extra->values : null }}
{!! Form::select('values[]',
$value_array
, isset(
$extra->values
) ? explode("
,
",
$extra->values
) : null, ["
id
"=>"
values
", "
multiple
"=>"
multiple
", "
style
"=>"
width
:
100
%
;
"]) !!}
{!! Form::select('values[]',
isset($value_array) ? $value_array : []
, isset($extra->values) ? explode(",",$extra->values) : null, ["id"=>"values", "multiple"=>"multiple", "style"=>"width:100%;"]) !!}
</div>
<div
class=
"form-group"
>
...
...
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