negos_app/app/views/admin/needs/_need.html.haml
2015-12-02 23:14:09 +01:00

15 lines
734 B
Plaintext

%tr{:id => need.id}
%td
=need.title
%td
=link_to need.author.organisation, edit_admin_customer_path(need.author)
%td
Il y a #{time_ago_in_words( need.created_at)}
%td.actions{:style => "width:150px;text-align:right"}
= link_to i(:"trash-o"), [:admin, need], :data => {:confirm => 'Voulez-vous vraiment supprimer ce besoin ?'}, :method => :delete
= link_to i(:pencil), edit_admin_need_path(need)
-if(need.created?)
= link_to i(:remove), refuse_admin_need_path(need), title: "Refuser", :data => {:confirm => 'Voulez-vous vraiment refuser ce besoin ?'}
= link_to i(:check), validate_admin_need_path(need), title: "Valider", :data => {:confirm => 'Voulez-vous vraiment valider ce besoin ?'}