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
"vscode:/vscode.git/clone" did not exist on "4eeaffe883f6feadaf32f02f6a9297dffe67280d"
Commit
cee2e0a1
authored
Jun 03, 2020
by
carlos
Browse files
submeter trabalho
parent
5b44d15a
Changes
1
Show 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,8 +258,8 @@
...
@@ -258,8 +258,8 @@
<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
)
...
@@ -267,46 +267,9 @@
...
@@ -267,46 +267,9 @@
@endforeach
@endforeach
</select>
</select>
</div>
</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>
<h5>Dados do plano de trabalho</h5>
<div class="
row
">
<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 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>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</a>
</
div
>
</
div
>
{{
--
Plano
de
Trabalho
--
}}
<
h4
class
=
"mt-3"
>
Plano
de
Trabalho
</
h4
>
<
div
class
=
"row"
style
=
"margin-top:20px"
>
<div class="
col
-
sm
-
12
">
<div class="
col
-
sm
-
12
">
<div id="
planoTrabalho
">
<div id="
planoTrabalho
">
<div class="
row
">
<div class="
row
">
...
@@ -334,15 +297,16 @@
...
@@ -334,15 +297,16 @@
@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
:
25
px
;
margin
-
top
:
35
px
">
<img src="
/
img
/
icons
/
user
-
times
-
solid
.
svg
" style="
width
:
25
px
;
margin
-
top
:
35
px
">
</a>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<
a
href
=
"#"
class
=
"btn btn-primary"
id
=
"addPlanoTrabalho"
style
=
"width:100%;margin-top:10px"
>
Plano
de
Trabalho
+</
a
>
</div>
</div>
</div>
<a href="
#" class="btn btn-primary" id="addCoautor" style="width:100%;margin-top:10px">Participantes +</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,8 +418,8 @@
...
@@ -461,8 +418,8 @@
"<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
)"
+
...
@@ -470,18 +427,11 @@
...
@@ -470,18 +427,11 @@
"@endforeach"
+
"@endforeach"
+
"</select>"
+
"</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:25px;margin-top:35px"
+
">"
+
"<div class="
+
"row"
+
">"
+
"</a>"
+
"</div>"
+
"</div>"
;
}
function
montarLinhaInputPlanoTrabalho
(){
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"
+
">"
+
...
@@ -504,12 +454,45 @@
...
@@ -504,12 +454,45 @@
"@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