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
cee2e0a1
Commit
cee2e0a1
authored
Jun 03, 2020
by
carlos
Browse files
submeter trabalho
parent
5b44d15a
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/evento/submeterTrabalho.blade.php
View file @
cee2e0a1
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
<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
">
<div id="
participantes
">
<div id="
participantes
">
<br><h5>Dados do participante</h5>
<div class="
row
">
<div class="
row
">
<div class="
col
-
sm
-
5
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo</label>
<label>Nome Completo</label>
...
@@ -258,91 +258,55 @@
...
@@ -258,91 +258,55 @@
<label>E-mail</label>
<label>E-mail</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
emailParticipante
[]
" placeholder="
E
-
mail
" required>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
emailParticipante
[]
" placeholder="
E
-
mail
" required>
</div>
</div>
<div class="
col
-
sm
-
2
">
<div class="
col
-
sm
-
3
">
<label for="
funcaoParticipante
" class="
col
-
form
-
label
">{{ __('Função:') }}</label>
<label>Função:</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" id="
funcaoParticipante
" name="
funcaoParticipante
[]
">
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" id="
funcaoParticipante
" name="
funcaoParticipante
[]
">
<option value="" disabled selected hidden>-- Função --</option>
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
<option value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@endforeach
@endforeach
</select>
</select>
</div>
<div class="
col
-
sm
-
1
">
<a class="
delete
">
<img src="
/
img
/
icons
/
user
-
times
-
solid
.
svg
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</div>
</div>
<div class="
row
">
<div class="
col
-
sm
-
5
">
<label>Nome Completo</label>
<input type="
text
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
nomeParticipante
[]
" placeholder="
Nome
" required>
</div>
<div class="
col
-
sm
-
4
">
<label>E-mail</label>
<input type="
email
" style="
margin
-
bottom
:
10
px
" class="
form
-
control
emailCoautor
" name="
emailParticipante
[]
" placeholder="
E
-
mail
" required>
</div>
<div class="
col
-
sm
-
2
">
<label for="
funcaoParticipante
" class="
col
-
form
-
label
">{{ __('Função:') }}</label>
<select class="
form
-
control
@
error
(
'funcaoParticipante'
)
is
-
invalid
@
enderror
" id="
funcaoParticipante
" name="
funcaoParticipante
[]
">
<option value="" disabled selected hidden>-- Função --</option>
@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)
<option value="
{{
$funcaoParticipante
->
id
}}
">
{
{$funcaoParticipante->nome}
}
</option>
@endforeach
</select>
</div>
</div>
<div class="
col
-
sm
-
1
"
>
</div
>
<a class="
delete
"
>
<h5>Dados do plano de trabalho</h5
>
<img src="
/
img
/
icons
/
user
-
times
-
solid
.
svg
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
<div class="
row
">
</a
>
<div class="
col
-
sm
-
12
"
>
</div>
<div id="
planoTrabalho
">
</div
>
<div class="
row
"
>
<div class="
col
-
sm
-
4
">
</div
>
<label>Titulo </label
>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;
margin-to
p
:10px"
>Participantes +</a
>
<input type="
text
" style="
margin
-
bot
to
m
:
10
px
"
class="
form
-
control
emailCoautor
" name="
nomePlanoTrabalho
[]
" placeholder="
Nome
" required
>
</
div
>
</div>
</
div
>
{{-- Arquivo --}}
<div class="
col
-
sm
-
7
">
{{
--
Plano
de
Trabalho
--
}}
<label for="
nomeTrabalho
" >Anexo</label>
<
h4
class
=
"mt-3"
>
Plano
de
Trabalho
</
h4
>
<div class="
input
-
group
"
>
<
div
class
=
"row"
style
=
"margin-top:20px
"
>
<div class="
input
-
group
-
prepend
">
<
div
class
=
"col-sm-12"
>
<span class="
input
-
group
-
text
" id="
anexoPlanoTrabalho
">Selecione um arquivo:</span
>
<
div
id
=
"planoTrabalho"
>
</div>
<
div
class
=
"
row
"
>
<div class="
custom
-
file
">
<
div
class
=
"col-sm-4"
>
<input type="
file
" class="
custom
-
file
-
input
" id="
anexoPlanoTrabalho
"
<
label
>
Titulo
</
label
>
aria-describedby="
anexoPlanoTrabalho
" name="
anexoPlanoTrabalho
[]
"
>
<
input
type
=
"text"
style
=
"margin-bottom:10px"
class
=
"form-control emailCoautor"
name
=
"nomePlanoTrabalho[]"
placeholder
=
"Nome"
required
>
<label class="
custom
-
file
-
label
" id="
custom
-
file
-
label
" for="
inputGroupFile01
">O arquivo deve ser no formato PDF de até 2mb.</label
>
</
div
>
</div>
{{
--
Arquivo
--
}}
</div>
<
div
class
=
"col-sm-7"
>
@error('anexoPlanoTrabalho')
<
label
for
=
"nomeTrabalho"
>
Anexo
</
label
>
<span class="
invalid
-
feedback
" role="
alert
" style="
overflow
:
visible
;
display
:
block
"
>
<
div
class
=
"input-group"
>
<strong>{{
$message
}}</strong
>
<
div
class
=
"input-group-prepend"
>
</span
>
<
span
class
=
"input-group-text"
id
=
"anexoPlanoTrabalho"
>
Selecione
um
arquivo
:</
span
>
@enderror
</
div
>
</div>
<
div
class
=
"c
ustom-file
"
>
<div class="
c
ol
-
sm
-
1
">
<
input
type
=
"file"
class
=
"custom-file-input"
id
=
"anexoPlanoTrabalho"
<a class="
delete
">
aria
-
describedby
=
"anexoPlanoTrabalho"
name
=
"anexoPlanoTrabalho[]
"
>
<img src="
/
img
/
icons
/
user
-
times
-
solid
.
svg
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
<
label
class
=
"custom-file-label"
id
=
"custom-file-label"
for
=
"inputGroupFile01"
>
O
arquivo
deve
ser
no
formato
PDF
de
até
2
mb
.
</
label
>
</a
>
</div>
</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"
>
<
a
class
=
"deletePlano"
>
<
img
src
=
"/img/icons/user-times-solid.svg"
style
=
"width:25px;margin-top:35px"
>
</
a
>
</div>
</div>
</div>
</
div
>
</div>
</div>
<
a
href
=
"#"
class
=
"btn btn-primary"
id
=
"add
PlanoTrabalho
"
style
=
"width:100%;margin-top:10px"
>
P
lano
de
Trabalho
+</
a
>
<a href="
#" class="btn btn-primary" id="add
Coautor
" style="width:100%;margin-top:10px">P
articipantes
+</a>
</
div
>
</
div
>
</
div
>
</
div
>
...
@@ -370,12 +334,11 @@
...
@@ -370,12 +334,11 @@
<
script
type
=
"text/javascript"
>
<
script
type
=
"text/javascript"
>
$
(
function
(){
$
(
function
(){
var
qtdLinhas
=
1
;
var
qtdLinhas
=
1
;
var
qtdParticipantes
=
2
;
var
qtdParticipantes
=
2
;
// Coautores
// Coautores
$
(
'#addCoautor'
)
.
click
(
function
(
e
){
$
(
'#addCoautor'
)
.
click
(
function
(
e
){
if
(
qtdParticipantes
<
100
){
if
(
qtdParticipantes
<
100
){
e
.
preventDefault
();
e
.
preventDefault
();
linha
=
montarLinhaInput
();
linha
=
montarLinhaInput
();
...
@@ -384,7 +347,6 @@
...
@@ -384,7 +347,6 @@
}
}
});
});
$
(
'#addPlanoTrabalho'
)
.
click
(
function
(
e
){
$
(
'#addPlanoTrabalho'
)
.
click
(
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
if
(
qtdLinhas
<
4
){
if
(
qtdLinhas
<
4
){
...
@@ -394,7 +356,6 @@
...
@@ -394,7 +356,6 @@
}
}
});
});
// Exibir modalidade de acordo com a área
// Exibir modalidade de acordo com a área
$
(
"#area"
)
.
change
(
function
(){
$
(
"#area"
)
.
change
(
function
(){
console
.
log
(
$
(
this
)
.
val
());
console
.
log
(
$
(
this
)
.
val
());
...
@@ -420,9 +381,7 @@
...
@@ -420,9 +381,7 @@
//replace the "Choose a file" label
//replace the "Choose a file" label
$
(
this
)
.
next
(
'#custom-file-label'
)
.
html
(
fileName
);
$
(
this
)
.
next
(
'#custom-file-label'
)
.
html
(
fileName
);
})
})
// F
// F
$
(
'#buttonSim'
)
.
on
(
'click'
,
function
(
e
){
$
(
'#buttonSim'
)
.
on
(
'click'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
false
);
$
(
'#inputEtica'
)
.
prop
(
'disabled'
,
false
);
...
@@ -434,12 +393,9 @@
...
@@ -434,12 +393,9 @@
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
false
);
$
(
'#inputJustificativa'
)
.
prop
(
'disabled'
,
false
);
console
.
log
(
'button nao'
);
console
.
log
(
'button nao'
);
});
});
});
});
// Remover Coautor
// Remover Coautor
function
addModalidade
(
areaId
){
function
addModalidade
(
areaId
){
console
.
log
(
modalidades
)
console
.
log
(
modalidades
)
$
(
"#modalidade"
)
.
empty
();
$
(
"#modalidade"
)
.
empty
();
...
@@ -452,7 +408,8 @@
...
@@ -452,7 +408,8 @@
}
}
function
montarLinhaInput
(){
function
montarLinhaInput
(){
return
"<div class="
+
"row"
+
">"
+
return
"<br><h5>Dados do participante</h5>"
+
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-5"
+
">"
+
"<div class="
+
"col-sm-5"
+
">"
+
"<label>Nome Completo</label>"
+
"<label>Nome Completo</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'nomeParticipante[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'nomeParticipante[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
...
@@ -461,27 +418,20 @@
...
@@ -461,27 +418,20 @@
"<label>E-mail</label>"
+
"<label>E-mail</label>"
+
"<input"
+
" type="
+
'email'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'emailParticipante[]'
+
" placeholder="
+
"E-mail"
+
" required>"
+
"<input"
+
" type="
+
'email'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'emailParticipante[]'
+
" placeholder="
+
"E-mail"
+
" required>"
+
"</div>"
+
"</div>"
+
"<div class='col-sm-2'>"
+
"<div class='col-sm-3'>"
+
"<label for='funcaoParticipante' class='col-form-label'>Função:</label>"
+
"<label>Função:</label>"
+
"<select class="
+
"form-control @error('funcaoParticipante') is-invalid @enderror"
+
" id="
+
"funcaoParticipante"
+
"name="
+
"funcaoParticipante[]"
+
">"
+
"<select class="
+
"form-control @error('funcaoParticipante') is-invalid @enderror"
+
" id="
+
"funcaoParticipante"
+
"name="
+
"funcaoParticipante[]"
+
">"
+
"<option value='' disabled selected hidden> Função </option>"
+
"<option value='' disabled selected hidden> Função </option>"
+
"@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)"
+
"@foreach(
$funcaoParticipantes
as
$funcaoParticipante
)"
+
"<option value='
{
{$funcaoParticipante->id}}'>{{$funcaoParticipante->nome}
}
</option>"
+
"<option value='
{
{$funcaoParticipante->id}}'>{{$funcaoParticipante->nome}
}
</option>"
+
"@endforeach"
+
"@endforeach"
+
"</select>"
+
"</select>"
+
"</div>"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<a class="
+
"delete"
+
">"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
">"
+
"</a>"
+
"</div>"
+
"</div>"
+
"</div>"
;
"</div>"
+
}
"<h5>Dados do plano de trabalho</h5>"
+
function
montarLinhaInputPlanoTrabalho
(){
"<div class="
+
"row"
+
">"
+
return
"<div class="
+
"row"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<div class="
+
"col-sm-4"
+
">"
+
"<label>
Nome Complet
o</label>"
+
"<label>
Titul
o</label>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'nomePlanoTrabalho[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"<input"
+
" type="
+
'text'
+
" style="
+
"margin-bottom:10px"
+
" class="
+
'form-control emailCoautor'
+
" name="
+
'nomePlanoTrabalho[]'
+
" placeholder="
+
"Nome"
+
" required>"
+
"</div>"
+
"</div>"
+
"<div class="
+
"col-sm-7"
+
">"
+
"<div class="
+
"col-sm-7"
+
">"
+
...
@@ -502,14 +452,47 @@
...
@@ -502,14 +452,47 @@
"<strong>{{
$message
}}</strong>"
+
"<strong>{{
$message
}}</strong>"
+
"</span>"
+
"</span>"
+
"@enderror"
+
"@enderror"
+
"</div>"
+
"</div>"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<div class="
+
"col-sm-1"
+
">"
+
"<a class="
+
"delete
Plano
"
+
">"
+
"<a
class="
+
"delete"
+
">"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
">"
+
"<img src="
+
"/img/icons/user-times-solid.svg"
+
" style="
+
"width:25px;margin-top:35px"
+
">"
+
"</a>"
+
"</a>"
+
"</div>"
+
"</div>"
+
"</div>"
;
"</div>"
;
}
}
// function montarLinhaInputPlanoTrabalho(){
// return "<div class="+"row"+">"+
// "<div class="+"col-sm-4"+">"+
// "<label>Nome Completo</label>"+
// "<input"+" type="+'text'+" style="+"margin-bottom:10px"+" class="+'form-control emailCoautor'+" name="+'nomePlanoTrabalho[]'+" placeholder="+"Nome"+" required>"+
// "</div>"+
// "<div class="+"col-sm-7" +">"+
// "<label for="+"nomeTrabalho"+">Anexo </label>"+
// "<div class="+"input-group"+">"+
// "<div class='input-group-prepend'>"+
// "<span class='input-group-text' id='inputGroupFileAddon01'>Selecione um arquivo:</span>"+
// "</div>"+
// "<div class='custom-file'>"+
// "<input type='file' class='custom-file-input' id='inputGroupFile01'"+
// "aria-describedby='inputGroupFileAddon01' 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('arquivo')"+
// "<span class='invalid-feedback' role='alert' style='overflow: visible; display:block'>"+
// "<strong>{{ $message }}</strong>"+
// "</span>"+
// "@enderror"+
// "</div>"+
// "<div class="+"col-sm-1"+">"+
// "<a class="+"deletePlano"+">"+
// "<img src="+"/img/icons/user-times-solid.svg"+" style="+"width:25px;margin-top:35px"+">"+
// "</a>"+
// "</div>"+
// "</div>";
// }
</
script
>
</
script
>
@
endsection
@
endsection
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