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
37c265f3
Commit
37c265f3
authored
Jul 21, 2022
by
Antonio Durval
Browse files
merge
parents
7b0dfdf1
1d43c241
Changes
7
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/TrabalhoController.php
View file @
37c265f3
...
...
@@ -987,10 +987,9 @@ class TrabalhoController extends Controller
}
}
DB
::
commit
();
if
(
!
$request
->
has
(
'rascunho'
))
{
// SubmissaoNotification.php
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$id
,
$trabalho
->
titulo
));
}
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta atualizada!'
]);
...
...
@@ -1135,6 +1134,7 @@ class TrabalhoController extends Controller
'tipo'
=>
1
,
]);
$notificacao
->
save
();
// SubmissaoRecebidaNotification.php
Notification
::
send
(
$userTemp
,
new
SubmissaoRecebidaNotification
(
$trabalho
->
id
,
$trabalho
->
titulo
,
$userTemp
));
//Proponente
$notificacao
=
App\Notificacao
::
create
([
...
...
@@ -1145,7 +1145,8 @@ class TrabalhoController extends Controller
'tipo'
=>
1
,
]);
$notificacao
->
save
();
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$trabalho
->
id
,
$trabalho
->
titulo
));
// submissao e notificação.php $trabalho->id,$trabalho->titulo
Notification
::
send
(
Auth
::
user
(),
new
SubmissaoNotification
(
$trabalho
));
return
redirect
(
route
(
'proponente.projetos'
))
->
with
([
'mensagem'
=>
'Proposta submetida!'
]);
...
...
@@ -1476,6 +1477,8 @@ class TrabalhoController extends Controller
}
$subject
=
"Participante de Projeto"
;
$time
=
Carbon
::
today
(
'America/Recife'
);
$time
=
$time
->
isoFormat
(
'às H:mm, dddd, D/M/YYYY'
);
Mail
::
to
(
$email
)
->
send
(
new
SubmissaoTrabalho
(
$userParticipante
,
$subject
,
$edital
,
$projeto
));
...
...
app/Notifications/SubmissaoNotification.php
View file @
37c265f3
...
...
@@ -14,17 +14,19 @@ class SubmissaoNotification extends Notification
public
$data
;
public
$url
;
public
$natureza_id
;
/**
* Create a new notification instance.
*
* @return void
*/
public
function
__construct
(
$
id
,
$titul
o
)
public
function
__construct
(
$
trabalh
o
)
{
$this
->
data
=
date
(
'd/m/Y \à\s H:i\h'
,
strtotime
(
now
()));
$url
=
"/projeto/visualizar/"
.
$id
;
$url
=
"/projeto/visualizar/"
.
$
trabalho
->
id
;
$this
->
url
=
url
(
$url
);
$this
->
titulo
=
$titulo
;
$this
->
titulo
=
$trabalho
->
titulo
;
$this
->
natureza_id
=
$trabalho
->
evento
->
natureza_id
;
}
/**
...
...
@@ -50,7 +52,8 @@ class SubmissaoNotification extends Notification
return
(
new
MailMessage
)
->
subject
(
'Sistema Submeta - Submissão de proposta / projeto'
)
->
greeting
(
"Saudações!"
)
->
line
(
"O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o)
{
$this
->
titulo
}
."
)
->
line
(
"O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o)
{
$this
->
titulo
}
\n\n
."
)
->
line
(
"
{
$this
->
data
}
"
)
->
action
(
'Acessar Proposta'
,
$this
->
url
)
->
markdown
(
'vendor.notifications.email'
);
}
...
...
app/Notifications/SubmissaoRecebidaNotification.php
View file @
37c265f3
...
...
@@ -51,6 +51,7 @@ class SubmissaoRecebidaNotification extends Notification
->
subject
(
'Sistema Submeta - Submissão de proposta / projeto'
)
->
greeting
(
"Saudações!"
)
->
line
(
"O sistema Submeta recebeu o envio de sua proposta / projeto intitulada(o)
{
$this
->
titulo
}
."
)
->
line
(
"
{
$this
->
data
}
"
)
->
action
(
'Acessar Formulário'
,
$this
->
url
)
->
markdown
(
'vendor.notifications.email'
);
}
...
...
resources/views/projeto/editaFormulario/participantes.blade.php
View file @
37c265f3
...
...
@@ -26,7 +26,7 @@
@endphp
<div
@
if
(!$
participante
)
hidden
@
endif
class=
"form-row mb-
1
col-md-6"
style=
"margin-top: 10px"
id=
"part{{$i}}"
>
<div
@
if
(!$
participante
)
hidden
@
endif
class=
"form-row mb-
3
col-md-6"
style=
"margin-top: 10px"
id=
"part{{$i}}"
>
<div
class=
"col-sm-2"
style=
"display: flex; align-items: center;"
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
</div>
...
...
@@ -321,7 +321,8 @@
<select
name=
"ordem_prioridade[]"
class=
"form-control"
>
<option
value=
""
selected
>
-- ORDEM --
</option>
@for($j = 1; $j
<
=
$
edital-
>
numParticipantes; $j++)
<option
@
if
(
old
('
total_periodos
')[$
i
]
??
$
participante-
>
ordem_prioridade == $j ) selected @endif value="{{ $j }}">{{ $j }}
</option>
<option
@
if
(
old
('
total_periodos
')[$
i
]
??
($
participante-
>
ordem_prioridade ?? '') == $j ) selected @endif value="{{ $j }}">{{ $j }}
</option>
@endfor
</select>
...
...
resources/views/projeto/formularioVisualizar/participantes2.blade.php
View file @
37c265f3
...
...
@@ -17,16 +17,17 @@
<div
class=
"row justify-content-start"
style=
"alignment: center"
>
@foreach($projeto->participantes as $participante)
<div
class=
"col-sm-1"
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
<div
class=
"col-sm-1
mt-4
"
>
<img
src=
"{{asset('img/icons/usuario.svg')}}"
style=
"width:60px"
alt=
""
>
</div>
<div
class=
"col-sm-5"
>
<h5
>
{{$participante->user->name}}
</h5>
<h5
>
{{$participante->planoTrabalho->titulo}}
</h5>
<h
9
>
<div
class=
"col-sm-5
mt-4
"
>
<h5
class=
"mb-0"
>
Nome:
{{$participante->user->name}}
</h5>
<h5
class=
"mb-0"
>
Plano:
{{$participante->planoTrabalho->titulo}}
</h5>
<h
6
>
<a
href=
""
data-toggle=
"modal"
data-target=
"#modalVizuParticipante{{$participante->id}}"
class=
"button"
>
Informações
</a>
</h
9
>
</h
6
>
</div>
<!-- Modal visualizar informações participante -->
<div
class=
"modal fade"
id=
"modalVizuParticipante{{$participante->id}}"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog modal-dialog-centered modal-xl"
>
...
...
resources/views/proponente/projetos.blade.php
View file @
37c265f3
...
...
@@ -127,7 +127,7 @@
--
}}
<!--
Button
trigger
modal
-->
@
if
((
$projeto
->
status
==
"rascunho"
)
||
(
$projeto
->
evento
->
fimSubmissao
>
$hoje
))
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col text-center"
style
=
"margin-left: 20px"
>
...
...
@@ -137,6 +137,7 @@
</
div
>
</
div
>
</
div
>
@
endif
</
div
>
</
div
>
...
...
resources/views/proponente/projetosEdital.blade.php
View file @
37c265f3
...
...
@@ -151,7 +151,7 @@
--
}}
<!--
Button
trigger
modal
-->
@
if
((
$projeto
->
status
==
"rascunho"
)
||
(
$projeto
->
evento
->
fimSubmissao
>
$hoje
))
<
div
class
=
"container"
>
<
div
class
=
"row"
>
<
div
class
=
"col text-center"
style
=
"margin-left: 20px"
>
...
...
@@ -161,6 +161,7 @@
</
div
>
</
div
>
</
div
>
@
endif
</
div
>
</
div
>
</
td
>
...
...
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