Sha256: dcd3d3694ff39a384f0c750f6b6389797e901c91762e63f0d6003eb3c8dd7b4c

Contents?: true

Size: 607 Bytes

Versions: 3

Compression:

Stored size: 607 Bytes

Contents

- models = klass.underscore.pluralize
- model_title = klass.demodulize.titleize

table#filter_search_header
  tr 
    td style="text-align:left"
      h3= options[:title] || model_title.pluralize

    - if main_element
      td style="text-align:center"
        #simple_search= render "cardboard/resources/simple_search", main_element: main_element

    - if options[:new_button]
      td style="text-align:right"
        = link_to(options[:new_button][:label] || "New #{model_title}", options[:new_button][:url] || {controller: models, action: :new}, class: "btn pull-right", style:"min-width:90px;") 

  

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.3.1 app/views/cardboard/resources/_search_helper.html.slim
cardboard_cms-0.2.2 app/views/cardboard/resources/_search_helper.html.slim
cardboard_cms-0.2.1 app/views/cardboard/resources/_search_helper.html.slim