Nicolas Bally 6abf7679fd initial
2011-05-14 13:36:30 +02:00

41 lines
1.2 KiB
Plaintext

#prescription_place
#main_workspace_view
-if @prescription.done
#ship_info
La livraison est prévu le
=l @prescription.delivery_at
%h2
.tel= @prescription.tel
=@prescription.name
.date=l @prescription.created_at
-if @prescription.notes?
.notes
=simple_format @prescription.notes
.file
=image_tag @prescription.file.url if @prescription.file?
#right_bar.bar_transparent_dark.position_absolute_bottom
.left
-if @prescription.done
.done
Traité par
=Prescription::DONE_BYS[@prescription.done_by-1][0]
le
=l @prescription.done_at
=link_to "annuler", undone_admin_prescription_path(@prescription), :remote => true, :class => "button"
-else
.undone
=form_for [:admin, @prescription],:remote => true do |f|
Traité par :
= f.select :done_by, Prescription::DONE_BYS, :include_blank => true
Disponible le
=f.datetime_select :delivery_at, :order => [:day, :month, :year, :hour, :minute ]
=f.submit "Sauvegarder"
.delete= link_to i(:trash_stroke, :gray_light), admin_prescription_path(@prescription), :confirm => 'Voulez-vous vraiment supprimer cette commande ?', :method => :delete