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
fbc5e0d2
Commit
fbc5e0d2
authored
Jun 28, 2020
by
Gabriel-31415
Browse files
nova tela de submeter trabalho
parent
b15e0c0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/evento/submeterTrabalho.blade.php
View file @
fbc5e0d2
...
@@ -292,8 +292,8 @@
...
@@ -292,8 +292,8 @@
</div>
</div>
<hr>
<hr>
<h3>Participantes</h3>
<h3>Participantes</h3>
{{-- Participantes --}}
{{-- Participantes --}}
<div class="
row
" style="
margin
-
top
:
20
px
">
<div class="
row
" style="
margin
-
top
:
20
px
">
<div class="
col
-
sm
-
12
">
<div class="
col
-
sm
-
12
">
...
@@ -306,101 +306,111 @@
...
@@ -306,101 +306,111 @@
@if (
$countParticipante
!= null &&
$countParticipante
> 0)
@if (
$countParticipante
!= null &&
$countParticipante
> 0)
@for (
$i
= 0;
$i
<
$countParticipante
;
$i
++)
@for (
$i
= 0;
$i
<
$countParticipante
;
$i
++)
<div id="
novoParticipante
" style="
display
:
block
;
">
{{-- inicio do card --}}
<br>
{{-- <div class="
card
" >
<h4>Dados do participante</h4>
<div class="
card
-
body
"> --}}
<div class="
row
">
<div class="
col
-
sm
-
5
">
<div id="
novoParticipante
" style="
display
:
block
;
">
<label>Nome Completo*</label>
<br>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomeParticipante'
)
is
-
invalid
@
enderror
" name="
nomeParticipante
[]
" placeholder="
Nome
" value="
{{
old
(
'nomeParticipante.'
.
$i
)}}
">
<h4>Dados do participante</h4>
@error('nomeParticipante')
<div class="
row
">
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<div class="
col
-
sm
-
5
">
<strong>{{
$message
}}</strong>
<label>Nome Completo*</label>
</span>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomeParticipante'
)
is
-
invalid
@
enderror
" name="
nomeParticipante
[]
" placeholder="
Nome
" value="
{{
old
(
'nomeParticipante.'
.
$i
)}}
">
@enderror
@error('nomeParticipante')
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail*</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'emailParticipante'
)
is
-
invalid
@
enderror
" name="
emailParticipante
[]
" placeholder="
email
" value="
{{
old
(
'emailParticipante.'
.
$i
)}}
">
@error('emailParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
<div class="
col
-
sm
-
3
">
<label>Função*:</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" name="
funcaoParticipante
[]
" id="
funcaoParticipante
">
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option @if(old('funcaoParticipante.'.
$i
)==
$funcaoParticipante->id
) selected @endif value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@endforeach
@error('funcaoParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</select>
</div>
</div>
<div class="
col
-
sm
-
4
">
</div>
<label>E-mail*</label>
<h6 class="
mb
-
1
">Possui plano de trabalho?</h6>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'emailParticipante'
)
is
-
invalid
@
enderror
" name="
emailParticipante
[]
" placeholder="
email
" value="
{{
old
(
'emailParticipante.'
.
$i
)}}
">
<button class="
btn
btn
-
primary
mt
-
2
mb
-
2
simPlano
">Sim</button>
@error('emailParticipante')
<button class="
btn
btn
-
primary
mt
-
2
mb
-
2
naoPlano
">Não</button>
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<div id="
planoHabilitado
" >
<strong>{{
$message
}}</strong>
<h5>Dados do plano de trabalho</h5>
</span>
<div class="
row
">
@enderror
<div class="
col
-
sm
-
12
">
</div>
<div id="
planoTrabalho
">
<div class="
col
-
sm
-
3
">
<div class="
row
">
<label>Função*:</label>
<div class="
col
-
sm
-
4
">
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" name="
funcaoParticipante
[]
" id="
funcaoParticipante
">
<label>Titulo* </label>
<option value="" disabled selected hidden>-- Função --</option>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomePlanoTrabalho'
)
is
-
invalid
@
enderror
" name="
nomePlanoTrabalho
[]
" placeholder="
Nome
" value="
{{
old
(
'nomePlanoTrabalho.'
.
$i
)}}
">
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option @if(old('funcaoParticipante.'.
$i
)==
$funcaoParticipante->id
) selected @endif value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@error('nomePlanoTrabalho')
@endforeach
@error('funcaoParticipante')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
<strong>{{
$message
}}</strong>
</span>
</span>
@enderror
@enderror
</div>
</select>
{{-- Arquivo --}}
</div>
<div class="
col
-
sm
-
7
">
</div>
<label for="
nomeTrabalho
">Anexo*</label>
<h6 class="
mb
-
1
">Possui plano de trabalho?</h6>
<div class="
input
-
group
">
<button class="
btn
btn
-
primary
mt
-
2
mb
-
2
simPlano
">Sim</button>
<div class="
input
-
group
-
prepend
">
<button class="
btn
btn
-
primary
mt
-
2
mb
-
2
naoPlano
">Não</button>
<span class="
input
-
group
-
text
" id="
anexoPlanoTrabalho
">Selecione um arquivo:</span>
<div id="
planoHabilitado
" style="
display
:
none
;
">
<h5>Dados do plano de trabalho</h5>
<div class="
row
">
<div class="
col
-
sm
-
12
">
<div id="
planoTrabalho
">
<div class="
row
">
<div class="
col
-
sm
-
4
">
<label>Titulo* </label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
@
error
(
'nomePlanoTrabalho'
)
is
-
invalid
@
enderror
" name="
nomePlanoTrabalho
[]
" placeholder="
Nome
" value="
{{
old
(
'nomePlanoTrabalho.'
.
$i
)}}
">
@error('nomePlanoTrabalho')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<div class="
custom
-
file
">
{{-- Arquivo --}}
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoPlanoTrabalho'
)
is
-
invalid
@
enderror
" id="
anexoPlanoTrabalho
" aria-describedby="
anexoPlanoTrabalho
" name="
anexoPlanoTrabalho
[]
">
<div class="
col
-
sm
-
7
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
<label for="
nomeTrabalho
">Anexo*</label>
<div class="
input
-
group
">
<div class="
input
-
group
-
prepend
">
<span class="
input
-
group
-
text
" id="
anexoPlanoTrabalho
">Selecione um arquivo:</span>
</div>
<div class="
custom
-
file
">
<input type="
file
" class="
custom
-
file
-
input
@
error
(
'anexoPlanoTrabalho'
)
is
-
invalid
@
enderror
" id="
anexoPlanoTrabalho
" aria-describedby="
anexoPlanoTrabalho
" name="
anexoPlanoTrabalho
[]
">
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label>
</div>
</div>
@error('anexoPlanoTrabalho')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<div class="
col
-
sm
-
1
">
{{-- <a class="
delete
">
<img src="
{{
asset
(
'/img/icons/user-times-solid.svg'
)
}}
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a> --}}
</div>
</div>
</div>
@error('anexoPlanoTrabalho')
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
">
<strong>{{
$message
}}</strong>
</span>
@enderror
</div>
</div>
<div class="
col
-
sm
-
1
">
</div>
<a class="
delete
">
</div>
<img src="
{{
asset
(
'/img/icons/user-times-solid.svg'
)
}}
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</div>
</div>
</div>
</div>
</div>
{{-- </div>
</div>
</div> --}}
</div>
{{-- inicio do card --}}
@endfor
</div>
</div>
@endfor
@endif
@endif
</div>
</div>
<input type="
hidden
" name="
countParticipante
" id="
countParticipante
" value="
{{
old
(
'countParticipante'
)
!=
null
?
old
(
'countParticipante'
)
:
1
}}
">
<input type="
hidden
" name="
countParticipante
" id="
countParticipante
" value="
{{
old
(
'countParticipante'
)
!=
null
?
old
(
'countParticipante'
)
:
1
}}
">
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</a>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Adicionar participante</a>
</
div
>
</
div
>
</
div
>
</
div
>
<
hr
>
</
p
>
</
p
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"row justify-content-center"
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
...
@@ -409,7 +419,7 @@
...
@@ -409,7 +419,7 @@
</
button
>
</
button
>
</
div
>
</
div
>
<
div
class
=
"col-md-6"
>
<
div
class
=
"col-md-6"
>
<
button
type
=
"submit"
class
=
"btn btn-
primary
"
style
=
"width:100%"
>
<
button
type
=
"submit"
class
=
"btn btn-
success
"
style
=
"width:100%"
>
{{
__
(
'Enviar Projeto'
)
}}
{{
__
(
'Enviar Projeto'
)
}}
</
button
>
</
button
>
</
div
>
</
div
>
...
@@ -564,8 +574,15 @@
...
@@ -564,8 +574,15 @@
function
montarLinhaInput
()
{
function
montarLinhaInput
()
{
return
"<div id="
+
"novoParticipante"
+
">"
+
return
"<div id="
+
"novoParticipante"
+
">"
+
"<br><h4>Dados do participante</h4>"
+
"<div class='row'>"
+
"<div class='col-sm-9'>"
+
"<br><h4>Dados do participante</h4>"
+
"</div>"
+
"<div class='col-sm-3'>"
+
"</div>"
+
"</div>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-5"
+
">"
+
"<div class="
+
"col-sm-5"
+
">"
+
"<label>Nome Completo*</label>"
+
"<label>Nome Completo*</label>"
+
...
@@ -602,8 +619,8 @@
...
@@ -602,8 +619,8 @@
"</div>"
+
"</div>"
+
"<h6 class='mb-1'>Possui plano de trabalho?</h6>"
+
"<h6 class='mb-1'>Possui plano de trabalho?</h6>"
+
"<button class="
+
"'btn btn-primary mt-2 mb-2 mr-1 simPlano'"
+
">Sim</button>"
+
"<button class="
+
"'btn btn-primary mt-2 mb-2 mr-1 simPlano'"
+
">Sim</button>"
+
"<button class="
+
"'btn btn-primary mt-2 mb-2 naoPlano'"
+
">Não</button>"
+
"<button class="
+
"'btn btn-primary mt-2 mb-2
mr-1
naoPlano'"
+
">Não</button>"
+
"<div id="
+
"planoHabilitado"
+
">"
+
"<div id="
+
"planoHabilitado"
+
"
style="
+
"'display:none;'"
+
"
>"
+
"<h5>Dados do plano de trabalho</h5>"
+
"<h5>Dados do plano de trabalho</h5>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
...
@@ -641,6 +658,8 @@
...
@@ -641,6 +658,8 @@
"</div>"
+
"</div>"
+
"</div>"
+
"</div>"
+
"</div>"
+
"</div>"
+
"<a href='#' class="
+
"'btn btn-danger mt-2 mb-2 delete'"
+
" style='width:100%;margin-top:10px'"
+
">Remover participante</a>"
+
"</div>"
;
"</div>"
;
}
}
...
...
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