"git@sites.upe.br:walter.felipe/submeta.git" did not exist on "acc5cfea9c1fd009827045e475c3d85bd0479f1f"
Unverified Commit 61e7e1c9 authored by José Fernando Mendes da Costa's avatar José Fernando Mendes da Costa Committed by GitHub
Browse files

Merge pull request #795 from jofernando/rascunho

coloca campo do rascunho como 1o input
parents 8a256447 c077ffa6
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class=" d-flex justify-content-between align-items-center" style="margin-top: 15px; margin-bottom:18px"> <div class=" d-flex justify-content-between align-items-center" style="margin-top: 15px; margin-bottom:18px">
<h6 style="font-weight: bold"><span style="color: red; font-weight:bold">*</span> Campos obrigatórios</h6> <h6 style="font-weight: bold"><span style="color: red; font-weight:bold">*</span> Campos obrigatórios</h6>
<button id="submeterFormProposta" type="submit" style="display: none;"></button> <button id="submeterFormProposta" type="submit" style="display: none;"></button>
<button type="submit" class="btn btn-primary " id="idButtonSubmitRascunho" >{{ __('Salvar como rascunho') }}</button> <button type="button" class="btn btn-primary " id="idButtonSubmitRascunho" >{{ __('Salvar como rascunho') }}</button>
<button type="submit" class="btn btn-success" id="idButtonSubmitProjeto" >{{ __('Submeter projeto') }}</button> <button type="submit" class="btn btn-success" id="idButtonSubmitProjeto" >{{ __('Submeter projeto') }}</button>
</div> </div>
......
...@@ -112,8 +112,8 @@ ...@@ -112,8 +112,8 @@
}) })
buttonRascunho.addEventListener('click', (e)=>{ buttonRascunho.addEventListener('click', (e)=>{
$('.collapse').addClass('show') $('.collapse').addClass('show')
const input = '<input id="input_rascunho" type="hidden" name="rascunho" value="true">'; $("form#criarProjetoForm").prepend('<input id="input_rascunho" type="hidden" name="rascunho" value="true" />');
$("#criarProjetoForm").append(input); $("form#criarProjetoForm").submit();
}) })
@if($edital->numParticipantes != 0) @if($edital->numParticipantes != 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment