Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MetaGer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open-source
MetaGer
Commits
e94510ed
Commit
e94510ed
authored
7 years ago
by
Aria Givi
Browse files
Options
Downloads
Patches
Plain Diff
hidden input + eigenes form tag fuers modal
parent
97c1a0fe
No related branches found
No related tags found
4 merge requests
!1262
WIP: Resolve "Spendenseite Texte anpassen"
,
!1207
WIP: Resolve "Rechtschreibfehler"
,
!1198
Meta ger redesign
,
!1148
WIP: 667
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/assets/less/metager/foki.less
+0
-4
0 additions, 4 deletions
resources/assets/less/metager/foki.less
resources/views/modals/create-focus-modal.blade.php
+32
-29
32 additions, 29 deletions
resources/views/modals/create-focus-modal.blade.php
with
32 additions
and
33 deletions
resources/assets/less/metager/foki.less
+
0
−
4
View file @
e94510ed
/* Rund ums Fokus Modal */
.focus-input {
display: none;
}
#show-create-focus:checked {
& + #create-focus-modal {
display: flex;
...
...
This diff is collapsed.
Click to expand it.
resources/views/modals/create-focus-modal.blade.php
+
32
−
29
View file @
e94510ed
<input
type=
"checkbox"
id=
"show-create-focus"
class=
"focus-input"
>
{{
--
TODO
HIDDEN
INPUT
-
FIELD
fürs
Modal
in
dem
die
vorherige
Eingabe
steht
,
eigenes
<
form
>
tag
fürs
Modal
--
}}
<
input
type
=
"checkbox"
id
=
"show-create-focus"
class
=
"hidden"
>
<
div
id
=
"create-focus-modal"
tab
-
index
=
"-1"
role
=
"dialog"
>
<
div
id
=
"foki-modal-dialog"
>
<
div
id
=
"foki-modal-content"
>
...
...
@@ -10,38 +11,40 @@
<
p
class
=
"text-muted"
>@
lang
(
"index.focus-creator.description"
)
</
p
>
</
div
>
<
div
class
=
"modal-body"
>
<input
type=
"hidden"
form=
"searchForm"
name=
"focus"
@
if
(
isset
($
focusPages
)
&&
!
empty
($
focusPages
))
value=
"focus_custom"
@
else
value=
"web"
@
endif
id=
"custom-focus-flag"
class=
"focus-input"
>
@foreach( App\Http\Controllers\FokiLoader::loadFoki() as $fokus => $sumas )
<div
class=
"headingGroup {{ $fokus }}"
>
<input
type=
"checkbox"
id=
"toggle-{{ $fokus }}-dropdown"
class=
"focus-dropdown-toggle"
>
<label
for=
"toggle-{{ $fokus }}-dropdown"
class=
"focus-category focus-dropdown-label h3"
>
@lang("settings.foki." . $fokus)
</label>
<div
class=
"row"
>
@foreach( $sumas as $name => $data )
<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
(
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>
</a>
</label>
<
form
id
=
"customSearchForm"
method
=
"GET"
action
=
"{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), "
/
meta
/
meta
.
ger3
") }}"
accept
-
charset
=
"UTF-8"
>
<
input
type
=
"hidden"
name
=
"focus"
value
=
"focus_custom"
id
=
"custom-focus-flag"
>
<
input
type
=
"hidden"
name
=
"eingabe"
value
=
"@if(isset(
$eingabe
))
{
{$eingabe}
}
@endif"
>
@
foreach
(
App\Http\Controllers\FokiLoader
::
loadFoki
()
as
$fokus
=>
$sumas
)
<
div
class
=
"headingGroup {{
$fokus
}}"
>
<
input
type
=
"checkbox"
id
=
"toggle-{{
$fokus
}}-dropdown"
class
=
"focus-dropdown-toggle"
>
<
label
for
=
"toggle-{{
$fokus
}}-dropdown"
class
=
"focus-category focus-dropdown-label h3"
>
@
lang
(
"settings.foki."
.
$fokus
)
</
label
>
<
div
class
=
"row"
>
@
foreach
(
$sumas
as
$name
=>
$data
)
<
div
class
=
"col-sm-6 col-md-4 col-lg-3"
>
<
div
class
=
"checkbox settings-checkbox"
>
<
label
>
<
input
type
=
"checkbox"
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
>
</
a
>
</
label
>
</
div
>
</
div
>
@
endforeach
</
div
>
@endforeach
</
div
>
@
endforeach
<
div
class
=
"clearfix"
>
<
div
class
=
"settings-modal-buttons pull-right"
>
<
button
type
=
"submit"
class
=
"save-focus-btn btn btn-primary"
>
@
lang
(
'index.focus-creator.save'
)
</
button
>
</
div
>
</
div
>
@endforeach
<div
class=
"clearfix"
>
<div
class=
"settings-modal-buttons pull-right"
>
<button
type=
"submit"
form=
"searchForm"
class=
"save-focus-btn btn btn-primary"
>
@lang('index.focus-creator.save')
</button>
</div>
</div>
</
form
>
</
div
>
</
div
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment