Commit 5eceef17 authored by Vytor Calixto's avatar Vytor Calixto 👾

Event now saves certificate text

parent 9679e323
......@@ -25,7 +25,7 @@ class EventController extends Controller
public function newEvent() {
$event = new Event();
$event->date = date('dd-MM-YYYY');
$event->certificate_text = "Certificamos que {{PARTICIPANTE}} participou {{TIPO}} {{NOME}} realizado no dia {{DATA}} com carga horária de {{HORAS}}.";
$event->certificate_text = "Certificamos que {{PARTICIPANTE}} participou {{TIPO}} {{NOME}} realizado no dia {{DATA}} com carga horária de {{HORAS}} em {{LOCAL}}.";
return view('events.new', [
'event' => $event
]);
......
......@@ -23,7 +23,7 @@
</div>
<div class="input-group">
<span class="input-group-addon">Texto do certificado</span>
<input type="textarea" name="certificate_text" class="form-control" value="{{ $event->certificateText }}">
<input type="textarea" name="certificate_text" class="form-control" value="{{ $event->certificate_text }}">
</div>
<input type="hidden" name="id" value="{{ $event->id }}">
</fieldset>
......
......@@ -29,9 +29,18 @@
{{ Form::submit('Fazer upload dos participantes', array('class' => 'btn btn-primary')) }}
{{-- <a href="" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-import"></span> Fazer upload dos participantes</a> --}}
{{ Form::close() }}
</div>
</div>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<a href="" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-list-alt"></span> Gerar certificados</a>
</div>
</div>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<a href="{{ url('/eventos/edit/'.$event->id) }}" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-pencil"></span> Editar</a>
</div>
</div>
<div class="row">
<div class="col-md-10 col-md-offset-1">
<h2>Participantes</h2>
......
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