41 lines
900 B
Plaintext
41 lines
900 B
Plaintext
|
|
|
|
.qi_header
|
|
.right= link_to 'Ajouter une popup', new_admin_popup_path(), :class => "btn btn-primary"
|
|
%h1
|
|
|
|
Popups
|
|
|
|
|
|
|
|
.qi_row
|
|
.qi_pannel.qi_plain.padding
|
|
|
|
|
|
|
|
%table.stat_table.table
|
|
%tr
|
|
%th
|
|
%th Nom
|
|
|
|
%th
|
|
|
|
|
|
|
|
- @popups.each do |popup|
|
|
%tr{:class => ("warning" if !popup.enabled)}
|
|
|
|
%td
|
|
=#l popup.published_at if popup.published_at?
|
|
%td
|
|
= popup.title
|
|
%td
|
|
=link_to "Prévisualiser", "/?force_popup_id=#{popup.id}", :target => "_blank"
|
|
|
|
|
|
|
|
%td.actions
|
|
= link_to i(:"trash-o"), [:admin, popup], method: :delete, data: { confirm: 'Voulez-vous vraiment supprimer cette popup ? Les signatures seront également supprimées.' }
|
|
= link_to i(:pencil), edit_admin_popup_path(popup)
|
|
= link_to i(:info), [:admin, popup]
|
|
|