Skip to content
Snippets Groups Projects
Commit 5eceef17 authored by Vytor Calixto's avatar Vytor Calixto :space_invader:
Browse files

Event now saves certificate text

parent 9679e323
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ class EventController extends Controller ...@@ -25,7 +25,7 @@ class EventController extends Controller
public function newEvent() { public function newEvent() {
$event = new Event(); $event = new Event();
$event->date = date('dd-MM-YYYY'); $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', [ return view('events.new', [
'event' => $event 'event' => $event
]); ]);
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</div> </div>
<div class="input-group"> <div class="input-group">
<span class="input-group-addon">Texto do certificado</span> <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> </div>
<input type="hidden" name="id" value="{{ $event->id }}"> <input type="hidden" name="id" value="{{ $event->id }}">
</fieldset> </fieldset>
......
...@@ -29,9 +29,18 @@ ...@@ -29,9 +29,18 @@
{{ Form::submit('Fazer upload dos participantes', array('class' => 'btn btn-primary')) }} {{ 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> --}} {{-- <a href="" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-import"></span> Fazer upload dos participantes</a> --}}
{{ Form::close() }} {{ 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> <a href="" class="btn btn-primary" role="button"><span class="glyphicon glyphicon-list-alt"></span> Gerar certificados</a>
</div> </div>
</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="row">
<div class="col-md-10 col-md-offset-1"> <div class="col-md-10 col-md-offset-1">
<h2>Participantes</h2> <h2>Participantes</h2>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment