Sha256: f5acaf98165169e10fed4d3ccc93614a91ca2dde87ee25409144b9896bcb1eab

Contents?: true

Size: 1.89 KB

Versions: 7

Compression:

Stored size: 1.89 KB

Contents

.row
  .col-xs-2.col-xs-offset-10
    = form_tag new_footer_path, method: :get do
      = submit_tag 'Создать футер', class: 'btn btn-primary pull-right btn-sm'

.jarviswidget.jarviswidget-color-blueDark.jarviswidget-sortable{"data-widget-editbutton" => "false", :role => "widget", :style => ""}
  %header{:role => "heading"}
    %span.widget-icon
      %i.fa.fa-table
    %h2 Тексты/Правила
    %span.jarviswidget-loader
      %i.fa.fa-refresh.fa-spin
  / widget div
  %div{:role => "content"}
    .widget-body
      .table-responsive
        %table.table.table-bordered
          %thead
            %tr
              %th
                Id
              %th
                Текст футера
              %th
                Оффер
              %th
                Пользовательское соглашение  
              %th
                Отписка
              %th
                Страна
              %th
                Траффик
              %th
                Источник
              %th
                Опции 
          %tbody
            - @footers.each do |footer|
              %tr
                %td
                  = footer.id
                %td
                  = cut_footer footer.content
                %td
                  = cut_footer footer.offer
                %td
                  = cut_footer footer.terms  
                %td
                  = cut_footer footer.unsubscription
                %td
                  = footer.country.try(:name) 
                %td
                  = footer.paysite.try(:name)
                %td
                  = footer.source_type
                %td  
                  = link_to edit_footer_path(footer) do
                    %i.fa.fa-edit.fa-2x
                  = link_to footer, method: :delete, data: { confirm: 'Are you sure?' } do
                    %i.fa.fa-trash-o.fa-2x

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fly_admin-0.0.8 app/views/fly_admin/footers/index.html.haml
fly_admin-0.0.7 app/views/fly_admin/footers/index.html.haml
fly_admin-0.0.6 app/views/fly_admin/footers/index.html.haml
fly_admin-0.0.5 app/views/fly_admin/footers/index.html.haml
fly_admin-0.0.4 app/views/fly_admin/footers/index.html.haml
fly_admin-0.0.3 app/views/fly_admin/footers/index.html.haml
fly_admin-0.0.2 app/views/fly_admin/footers/index.html.haml