Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Walter Felipe
submeta
Commits
cfbf6feb
Commit
cfbf6feb
authored
Aug 12, 2024
by
carlvercosaa
Browse files
Inicio refatoração de ODS
parent
e847aa69
Changes
2
Show whitespace changes
Inline
Side-by-side
resources/views/evento/criarEvento.blade.php
View file @
cfbf6feb
...
...
@@ -818,7 +818,7 @@
if
(
selectedOds
.
length
>
3
){
alert
(
'Você só pode selecionar até 3 ODS.'
);
$
(
this
)
.
prop
(
'checked'
,
false
);
selectedOds
.
pop
()
;
selectedOds
.
pop
()
}
selectedOds
.
forEach
(
function
(
odsId
){
...
...
resources/views/evento/formulario/projeto.blade.php
View file @
cfbf6feb
...
...
@@ -94,15 +94,14 @@
<span>
(é possível selecionar um ou mais objetivos. Para outras informações, acesse o
<a
href=
"https://brasil.un.org/pt-br/sdgs"
rel=
'external'
target=
'_blank'
>
link
</a>
).
</span>
<div
class=
"row col-md-12"
>
@foreach($ods as $od)
<div
class=
"col-md-6"
>
<input
type=
"checkbox"
name=
"ods[]"
id=
"ods{{$od->id}}"
class=
"@error('ods_id') is-invalid @enderror"
value=
"{{$od->id}}"
@
if
(!
empty
(
old
('
ods
'))
&&
in_array
($
od-
>
id, old('ods'))) checked @endif>
<label
class=
"form-check-label"
for=
"ods{{$od->id}}"
>
{{ $od->nome }}
</label>
@foreach($ods as $ods)
<div>
<input
type=
"checkbox"
name=
"ods[]"
value=
"{{ $ods->id }}"
class=
"form-check-input"
>
<label
class=
"form-check-label"
for=
"ods{{ $ods->id }}"
>
{{ $ods->nome }}
</label>
</div>
@endforeach
</div>
<div
id=
"metas-container"
class=
"row"
></div>
@error('ods')
<span
class=
"invalid-feedback"
role=
"alert"
style=
"overflow: visible; display:block"
>
<strong>
{{ $message }}
</strong>
...
...
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