Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
97c1a0fe
Commit
97c1a0fe
authored
Feb 15, 2018
by
Aria Givi
Browse files
Auswahl der SuMas wird nun gemerkt
parent
6fe8b2f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/MetaGer.php
View file @
97c1a0fe
...
...
@@ -92,10 +92,10 @@ class MetaGer
{
# Hiermit werden die evtl. ausgewählten SuMas extrahiert, damit die Input-Boxen richtig gesetzt werden können
$focusPages
=
[];
foreach
(
$this
->
request
->
all
()
as
$key
=>
$value
)
{
if
(
$value
===
'on'
)
{
$focusPages
[]
=
str_replace
(
'param_'
,
''
,
$key
);
$focusPages
[]
=
str_replace
(
'param_'
,
''
,
str_replace
(
'engine_'
,
''
,
$key
)
)
;
}
}
...
...
resources/views/modals/create-focus-modal.blade.php
View file @
97c1a0fe
...
...
@@ -23,7 +23,7 @@
<div
class=
"col-sm-6 col-md-4 col-lg-3"
>
<div
class=
"checkbox settings-checkbox"
>
<label>
<input
type=
"checkbox"
form=
"searchForm"
name=
"engine_{{ strtolower($name) }}"
class=
"focusCheckbox"
@
if
(
isset
($
focusPages
)
&&
in_array
(
'
engine_
{{
strtolower
($
name
)
}}'
,
$
focusPages
))
checked
@
endif
>
<input
type=
"checkbox"
form=
"searchForm"
name=
"engine_{{ strtolower($name) }}"
class=
"focusCheckbox"
@
if
(
isset
($
focusPages
)
&&
in_array
(
strtolower
($
name
),
$
focusPages
))
checked
@
endif
>
{{ $data['displayName'] }}
<a
class=
"settings-icon"
target=
"_blank"
rel=
"noopener"
href=
"{{ $data['url'] }}"
>
<i
class=
"fa fa-link"
aria-hidden=
"true"
></i>
...
...
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