Sha256: d81ae2f950c643c053f294f4b2aa511b5c637a6425557e61e531064e88b97274

Contents?: true

Size: 1.06 KB

Versions: 1

Compression:

Stored size: 1.06 KB

Contents

- content_for :page_title do
  Заглушка

- content_for :actions do
  .span4.clearfix.text-right
    .btn-group
      = link_to 'Добавить email', new_email_path, :class => "btn btn-success btn-large" 
      %button.btn.btn-success.btn-large.dropdown-toggle{'data-toggle' => "dropdown"}
        %span.caret
      %ul.dropdown-menu.text-center
        %li= link_to 'Сделать рассылку', delete_all_path
        %li.divider    
        %li= link_to 'Удалить все', delete_all_path, :method => :delete, :confirm => "Вы уверены?"

%section
  - if @emails.count.zero?
    Список пуст
  - else
    %table.table.table-bordered
      %tbody
        - @emails.each do |email|
          %tr
            %td
              = email.email
              %span.pull-right
                = link_to "<i class='icon-pencil icon-white'></i>".html_safe, edit_email_path(email), :class => "btn btn-small btn-primary"          
                = link_to "<i class='icon-remove icon-white'></i>".html_safe, email, :class => "btn btn-small btn-danger" 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
constructor-cms-0.2.1 cap/app/views/constructor_cap/emails/index.haml