Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
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
9 months ago
by
carlvercosaa
Browse files
Options
Download
Email Patches
Plain Diff
Inicio refatoração de ODS
parent
e847aa69
carl-branch
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/views/evento/criarEvento.blade.php
+1
-1
resources/views/evento/criarEvento.blade.php
resources/views/evento/formulario/projeto.blade.php
+6
-7
resources/views/evento/formulario/projeto.blade.php
with
7 additions
and
8 deletions
+7
-8
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
){
...
...
This diff is collapsed.
Click to expand it.
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>
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help