pic_vert_app/app/views/admin/faqs/_faq.html.haml
Nicolas Bally 9e3dd91a06 FAQ admin
2015-10-21 16:29:25 +02:00

23 lines
682 B
Plaintext

%tr#faq_row.faq_row{:id => faq.id, :class => ("warning" if !faq.enabled)}
%td=faq.title
%td{:style => "width:300px;"}
-faq.tags.order(:name).each do |tag|
.tag_label=tag.name
%td{:style => "width:140px"}
= link_to i(:"trash-o"), [:admin, faq], :confirm => 'Voulez-vous vraiment supprimer cet faq ?', :method => :delete, :remote => true
= link_to i(:pencil), edit_admin_faq_path(faq), :style => "padding:0px 0px 0px 0px;", :remote => true
= link_to i(:plus), edit_admin_faq_path(faq), :style => "padding:0px 0px 0px 0px;"
=link_to i(:"level-down"), admin_faq_path(:id => faq.id, :format => "js"), :class => "set_tag"