Sha256: b58ba6f6a4cb5db652a3c7ff1d08c78853134180aafae9275e3c9c30466c392b

Contents?: true

Size: 1.44 KB

Versions: 14

Compression:

Stored size: 1.44 KB

Contents

<div class="filter-line-wrapper">
  <div class="filter-line-holder">
    <div class="struct-name"><%= abstract_model.label %></div>

    <div class="vline-block">
      <%= form_for search_wrapper, :url => scoped_index_path,  :html => { :method => :get, :novalidate => true } do |f| %>
        <%= render :partial => 'sunrise/shared/parent' %>
        <%= f.text_field :q %>
        <%= f.submit t('manage.search'), :class => "button" %>
      <% end %>
    </div>
  </div>
</div>

<div class="top-line-holder">
  <div class="act-buttons-wrapper">

    <% if can? :edit, @record, :context => :sunrise %>
      <div class="but-holder">
        <div class="act-but">
          <%= link_to image_tag('sunrise/empty.gif'), edit_path(abstract_model.parent_hash.merge(:id => @record.id)), :class => 'but-container edit', :title => 'Edit' %>
        </div>
      </div>
    <% end -%>

    <% if can? :delete, @record, :context => :sunrise %>
      <div class="but-holder">
        <div class="act-but">
          <%= link_to image_tag('sunrise/empty.gif'), delete_path(abstract_model.parent_hash.merge(:id => @record.id)), 
          :class => 'but-container del', 
          :title => 'Delete', 
          :method=>:delete,
          :data => { :confirm => t('manage.confirm_delete') } %>
        </div>
      </div>
    <% end %>

    <div class="buttons-holder">
      <%= render :partial => apply_scope("controls"), :locals => {:record => @record} %>
    </div>
  </div>
</div>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
sunrise-cms-1.1.1 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.1.0 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.6 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.5 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.4 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.3 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.2 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.1 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.0 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.0.rc3 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.0.rc2 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-1.0.0.rc1 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-0.7.0.rc2 app/views/sunrise/manager/_header_show.html.erb
sunrise-cms-0.7.0.rc1 app/views/sunrise/manager/_header_show.html.erb