Sha256: 5a06b54ac190759332b2c385c95bed263afbc6dc713e69936f3efc4509337037

Contents?: true

Size: 406 Bytes

Versions: 4

Compression:

Stored size: 406 Bytes

Contents

= simple_form_for @event, :html => {:class => "form-horizontal"} do |f|

	%legend
		= @event.title

	- @event.errors.full_messages.each do |msg| 
		%p= msg 

	= f.input :title
	= f.input :event_date
	
	.form-actions
		= f.button :submit, f.object.new_record? ? "Créer".html_safe : "Modifier".html_safe, :class => 'btn btn-primary'
		= link_to "Annuler", events_path, :class => 'btn'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
photos_manager-0.0.5 app/views/photos_manager/events/_form.html.haml
photos_manager-0.0.4 app/views/photos_manager/events/_form.html.haml
photos_manager-0.0.3 app/views/photos_manager/events/_form.html.haml
photos_manager-0.0.2 app/views/photos_manager/events/_form.html.haml