Created
September 5, 2013 03:40
-
-
Save patrickmaciel/6445805 to your computer and use it in GitHub Desktop.
form - 1970
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@extends('layouts.admin') | |
@section('content') | |
<div class="row-fluid"> | |
<div class="col-lg-2"> | |
<ul class="nav nav-pills nav-stacked"> | |
<li class='active'>{{ HTML::linkRoute('admin.registration_period.destroy', 'Excluir', $registration_period->id) }}</li> | |
<li>{{ HTML::linkRoute('admin.registration_period', 'Listar Período de Inscrições') }}</li> | |
</ul> | |
</div> | |
<div class="col-lg-10"> | |
<fieldset> | |
<legend>Editar Período de Inscrição</legend> | |
{{ Form::open(array('route' => array('admin.registration_period.update', $registration_period->id), 'class' => 'form form-horizontal', 'files' => true)) }} | |
{{ Form::hidden('id', $registration_period->id) }} | |
{{ Form::hidden('image_old', $registration_period->image) }} | |
<div class="form-group {{ (isset($errors) AND $errors->has('image')) ? 'has-error' : '' }}"> | |
{{ Form::label('image', 'Imagem', array('class' => 'col-lg-2 control-label ')) }} | |
<div class="col-lg-2"> | |
{{ Form::file('image', array()) }}<br /> | |
{{ Libraries\Image::lightbox2($registration_period->image, 'crop', RegistrationPeriod::$upload['folder'], $registration_period->created_at) }} | |
@include('validators.message_field', array('field' => 'image')) | |
</div> | |
</div> | |
<div class="form-group {{ (isset($errors) AND $errors->has('start')) ? 'has-error' : '' }}"> | |
{{ Form::label('start', 'Início', array('class' => 'col-lg-2 control-label ')) }} | |
<div class="col-lg-1"> | |
{{ Form::text('start', Input::old('start', Libraries\FormatDate::format('d/m/Y', $registration_period->start)), array('class' => 'form-control datepicker' )) }} | |
@include('validators.message_field', array('field' => 'start')) | |
</div> | |
</div> | |
<div class="form-group {{ (isset($errors) AND $errors->has('end')) ? 'has-error' : '' }}"> | |
{{ Form::label('end', 'Fim', array('class' => 'col-lg-2 control-label ')) }} | |
<div class="col-lg-1"> | |
{{ Form::text('end', Input::old('end', Libraries\FormatDate::format('d/m/Y', $registration_period->end)), array('class' => 'form-control datepicker' )) }} | |
@include('validators.message_field', array('field' => 'end')) | |
</div> | |
</div> | |
<div class="form-group {{ (isset($errors) AND $errors->has('active')) ? 'has-error' : '' }}"> | |
<div class="col-lg-offset-2 col-lg-10"> | |
<div class="checkbox"> | |
<label>{{ Form::checkbox('active', 1, Input::old('active', $registration_period->active)) }} Ativo</label> | |
@include('validators.message_field', array('field' => 'active')) | |
</div> | |
</div> | |
</div> | |
<div class="form-group"> | |
<div class="col-lg-offset-2 col-lg-10"> | |
{{ Form::submit('Enviar', array('class' => 'btn btn-default')) }} | |
</div> | |
</div> | |
{{ Form::close() }} | |
</fieldset> | |
</div> | |
</div> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$('.datepicker').datepicker({ | |
format: 'dd/mm/yyyy', | |
autoclose: true | |
}); | |
}); | |
</script> | |
@stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment