Sha256: c5069c1b552c7e6f0970f349586dbaa3691f814725c0e74669e3d272e999c5f8

Contents?: true

Size: 1.54 KB

Versions: 8

Compression:

Stored size: 1.54 KB

Contents

.row
  .col-xs-2.col-xs-offset-10
    = form_tag new_category_path, method: :get do
      = submit_tag 'Создать сериал', class: 'btn btn-primary pull-right'

.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
                Опции 
          %tbody
            - @categories.each do |category|
              - json_name = JSON.parse(category.name)
              %tr
                %td
                  = category.id
                %td.localized_name
                  = json_name["ru"]
                %td{width: '10%'}
                  = select_tag :country_id, options_for_select(json_name), class: 'input-sm form-control country_select'
                %td
                  
                  = link_to edit_category_path(category) do
                    %i.fa.fa-edit.fa-2x
                  = link_to category, method: :delete, data: { confirm: 'Вы уверены? Вы достаточно трезвы чтобы сделать это?' } do
                    %i.fa.fa-trash-o.fa-2x

Version data entries

8 entries across 8 versions & 1 rubygems

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