pic_vert_app/app/views/sheets/edit.html.haml
2013-06-29 17:59:38 +02:00

13 lines
636 B
Plaintext

#sheet_show.edit
.links
=link_to i(:info), @sheet, :class => "button", :remote => true, :confirm => "Attention, les changements éventuellements apportés ne seront pas sauvegardés."
= link_to i(:remove), "#",:class => "button", :onclick => "$('#sheet_show').remove();$('body').css('overflow', 'auto');return false;"
%input{:type => "submit", :onclick => "$(this).closest('#sheet_show').find('form').submit();return false;", :value => "Sauvegarder", :class => "btn"}
.content
%h1 Modifier une fiche
= semantic_form_for [@sheet], :remote => true do |form|
=render :partial => "form", :locals => {:form => form}