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
7716ebd1
Commit
7716ebd1
authored
Jul 31, 2017
by
Aria Givi
Browse files
Ueberprueft ob erforderliche Felder ausgefuellt worden sind
parent
2a13af8d
Changes
2
Hide whitespace changes
Inline
Side-by-side
public/js/scriptJoinPage.js
0 → 100644
View file @
7716ebd1
function
checkFormBeforePrinting
()
{
var
requiredElements
=
document
.
querySelectorAll
(
"
[required]
"
);
var
passed
=
true
;
for
(
i
=
0
;
i
<
requiredElements
.
length
;
i
++
)
{
if
(
requiredElements
[
i
].
value
==
""
)
{
passed
=
false
;
requiredElements
[
i
].
style
.
backgroundColor
=
"
#ff9999
"
;
}
else
{
requiredElements
[
i
].
style
.
backgroundColor
=
"
#ffffff
"
;
}
}
if
(
passed
)
{
window
.
print
();
}
}
\ No newline at end of file
resources/views/spende/beitritt.blade.php
View file @
7716ebd1
...
...
@@ -105,5 +105,5 @@
<
p
>
{{
trans
(
'beitritt.anweisung.5'
)
}}
</
p
>
</
div
>
<
p
>
{{
trans
(
'beitritt.anweisung.6'
)
}}
</
p
>
<
button
type
=
"button"
class
=
"btn btn-lg btn-primary noprint"
onclick
=
"
window.p
rint();"
>
{{
trans
(
'beitritt.anweisung.7'
)
}}
</
button
>
<
button
type
=
"button"
class
=
"btn btn-lg btn-primary noprint"
onclick
=
"
checkFormBeforeP
rint
ing
();"
>
{{
trans
(
'beitritt.anweisung.7'
)
}}
</
button
>
@
endsection
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