Sha256: 2b4e2f4f406171b6d8a340f77d5d9acee1ce10bc13dcd469d04598565f0025f7

Contents?: true

Size: 1.43 KB

Versions: 35

Compression:

Stored size: 1.43 KB

Contents

.row
  .col-md-12
    .page-heading.clearfix
      h1.pull-left <%= plural_table_name %>
      = link_to 'Novo <%= human_name %>', new_<%= singular_table_name %>_path, class: "btn-default btn pull-right"

    - if notice.present?
      hr
      .alert.alert-success.col-md-12
        span.alert-icon
          i.fa.fa-check
        .notification-info
          p = notice

.box-info.col-md-12
  h3 Listagem
  hr

  .adv-table
    table cellpadding="0" cellspacing="0" border="0" class="display table table-bordered table-striped dataTable" id="dynamic-table_info  "
      thead
        tr
          th width="80"
<% attributes.each do |attribute| -%>
          th <%= attribute.human_name %>
<% end -%>
          th Ações
      tbody
        - @<%= plural_table_name %>.each_with_index do |<%= singular_table_name %>, index|
          tr
            td = index + 1
<% attributes.each do |attribute| -%>
            td = <%= singular_table_name %>.<%= attribute.name %>
<% end -%>
            td width="180"
              .btn-group.btn-group-sm.pull-right
                = link_to edit_<%= singular_table_name %>_path(<%= singular_table_name %>), class: " btn btn-white" do
                  i.fa.fa-pencil-square-o
                  |  Editar
                = link_to <%= singular_table_name %>, data: {:confirm => 'Tem certeza que deseja apagar?'}, :method => :delete, class: " btn btn-white" do
                  i.fa.fa-trash-o
                  |  Excluir

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
wrgem-0.0.55 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.54 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.53 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.52 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.51 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.50 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.49 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.48 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.47 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.46 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.45 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.44 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.43 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.42 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.41 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.40 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.39 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.38 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.37 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim
wrgem-0.0.35 lib/generators/wradmin/template/lib/templates/slim/scaffold/index.html.slim