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
0b855c44
"app/Http/git@sites.upe.br:walter.felipe/pad-upe.git" did not exist on "89a6c970d78d8f1f22d383b09ec1d14ed31ca1bb"
Unverified
Commit
0b855c44
authored
Jun 09, 2020
by
Gabriel Antônio da Silva
Committed by
GitHub
Jun 09, 2020
Browse files
Merge pull request #19 from lmts-ufape/anexos
Anexos
parents
7b97025b
89078619
Changes
24
Show whitespace changes
Inline
Side-by-side
resources/views/evento/visualizarEvento.blade.php
View file @
0b855c44
...
...
@@ -237,7 +237,7 @@
<
div
class
=
"row justify-content-center"
style
=
"margin: 20px 0 20px 0"
>
<
div
class
=
"col-md-6 botao-form-left"
style
=
""
>
<
a
class
=
"btn btn-secondary botao-form"
href
=
"
/
"
style
=
"width:100%"
>
Voltar
</
a
>
<
a
class
=
"btn btn-secondary botao-form"
href
=
"
{{ route('home') }}
"
style
=
"width:100%"
>
Voltar
</
a
>
</
div
>
@
if
(
$evento
->
inicioSubmissao
<=
$mytime
)
...
...
resources/views/projeto/editar.blade.php
View file @
0b855c44
...
...
@@ -273,13 +273,15 @@
<div class="
col
-
sm
-
12
">
<div id="
participantes
">
@foreach(
$participantes
as
$participante
)
@foreach(
$users
as
$user
)
@if(
$participante->user_id
===
$user->id
)
<div id="
novoParticipante
">
<br>
<h5>Dados do participante</h5>
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo</label>
<input value="
{{
$
participante
->
user
->
name
}}
" type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomeParticipante'
)
is
-
invalid
@
enderror
" name="
nomeParticipante
[]
" placeholder="
Nome
" required>
<input value="
{{
$user
->
name
}}
" type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomeParticipante'
)
is
-
invalid
@
enderror
" name="
nomeParticipante
[]
" placeholder="
Nome
" required>
@error('nomeParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
...
...
@@ -288,7 +290,7 @@
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail</label>
<input value="
{{
$
participante
->
user
->
email
}}
" type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'emailParticipante'
)
is
-
invalid
@
enderror
" name="
emailParticipante
[]
" placeholder="
email
" required>
<input value="
{{
$user
->
email
}}
" type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'emailParticipante'
)
is
-
invalid
@
enderror
" name="
emailParticipante
[]
" placeholder="
email
" required>
@error('emailParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
...
...
@@ -363,6 +365,8 @@
</div>
</div>
</div>
@endif
@endforeach
@endforeach
</div>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</a>
...
...
@@ -419,7 +423,7 @@
addModalidade
(
$
(
this
)
.
val
());
});
$
(
document
)
.
on
(
'click'
,
'.delete'
,
function
()
{
if
(
qtdParticipantes
>
2
)
{
if
(
qtdParticipantes
>
1
)
{
qtdParticipantes
--
;
$
(
this
)
.
closest
(
'#novoParticipante'
)
.
remove
();
return
false
;
...
...
resources/views/projeto/index.blade.php
View file @
0b855c44
...
...
@@ -35,9 +35,9 @@
<
td
>
{{
$projeto
->
titulo
}}
</
td
>
@
if
(
$projeto
->
a
valiado
)
@
if
(
$projeto
->
status
==
'A
valiado
'
)
<
td
style
=
"color: rgb(6, 85, 6)"
>
Avaliado
</
td
>
@
else
@
else
if
(
$projeto
->
status
==
'Submetido'
)
<
td
style
=
"color: rgb(0, 0, 0)"
>
Submetido
</
td
>
@
endif
<
td
>
{{
date
(
'd-m-Y'
,
strtotime
(
$projeto
->
updated_at
))
}}
</
td
>
...
...
@@ -59,6 +59,12 @@
<
a
href
=
""
class
=
"dropdown-item"
style
=
"text-align: center"
>
Resultado
</
a
>
@
if
(
$projeto
->
status
==
'Submetido'
)
<
a
href
=
"{{ route('trabalho.destroy', ['id' =>
$projeto->id
]) }}"
class
=
"dropdown-item"
style
=
"text-align: center"
>
Excluir
projeto
</
a
>
@
endif
</
div
>
</
div
>
</
td
>
...
...
routes/web.php
View file @
0b855c44
...
...
@@ -87,12 +87,13 @@ Route::group(['middleware' => ['isTemp', 'auth', 'verified']], function(){
Route
::
post
(
'/areaModalidade/criar'
,
'AreaModalidadeController@store'
)
->
name
(
'areaModalidade.store'
);
//######### Trabalho ########################################
Route
::
get
(
'/trabalho/submeter/{id}'
,
'TrabalhoController@index'
)
->
name
(
'trabalho.index'
);
Route
::
get
(
'/trabalho/submeter/{id}'
,
'TrabalhoController@index'
)
->
name
(
'trabalho.index'
);
Route
::
post
(
'/trabalho/novaVersao'
,
'TrabalhoController@novaVersao'
)
->
name
(
'trabalho.novaVersao'
);
Route
::
post
(
'/trabalho/criar'
,
'TrabalhoController@store'
)
->
name
(
'trabalho.store'
);
Route
::
get
(
'/edital/{id}/projetos'
,
'TrabalhoController@projetosDoEdital'
)
->
name
(
'projetos.edital'
);
Route
::
get
(
'/projeto/{id}/editar'
,
'TrabalhoController@edit'
)
->
name
(
'trabalho.editar'
);
Route
::
post
(
'/projeto/{id}/atualizar'
,
'TrabalhoController@update'
)
->
name
(
'trabalho.update'
);
Route
::
get
(
'/projeto/{id}/excluir'
,
'TrabalhoController@destroy'
)
->
name
(
'trabalho.destroy'
);
//######### Atribuição #######################################
Route
::
get
(
'/atribuir'
,
'AtribuicaoController@distribuicaoAutomatica'
)
->
name
(
'distribuicao'
);
...
...
Prev
1
2
Next
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