Sha256: c9f854e0a54021f5d3f2683f8f39f555b51cc33fc7cded4ec357957c3590c860

Contents?: true

Size: 1.64 KB

Versions: 9

Compression:

Stored size: 1.64 KB

Contents

<%= content_tag(:div, :id => dom_id(record), :class => "main-item") do -%>
  <div class="check-block">
    <%= check_box_tag dom_id(record, :editable), record.id, false, :name => :editable %>
  </div>
  <% if abstract_model.list.preview -%>  
    <div class="img-block"><%= image_tag abstract_model.list.preview_for(record) %></div>
  <% end -%>
  <div class="data-block">
    <div class="top-info-bl">
      <%= manage_date_tag(record.created_at)%>
      <%= render :partial => apply_scope("controls"), :locals => {:record => record} %>
    </div>
    <%= link_to record.send(abstract_model.config.object_label_method), show_model_path(abstract_model, record), :class=>"item-title" %>
    
		<div class="bot-info-bl">  
		  <% abstract_model.list.fields.each do |field| -%>
			  <div class="info-item">
			    <%= content_tag(:b, field.human_name) if field.label? %>
          <%= manage_render_field(field, record) %>
			  </div>
			<% end -%>
		</div>
  </div>
  <div class="but-block" style="display: none">
    <div class="act-but">
      <%= link_to image_tag('sunrise/empty.gif'), delete_path(abstract_model.parent_hash.merge(:id => record.id)),
          :method=>:delete, 
          :confirm=>t("manage.confirm_delete"), 
          :class=>"but-container del", 
          :id => dom_id(record, :delete) if can?(:delete, record, :context => :sunrise) %>
    </div>
    
    <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", 
          :id => dom_id(record, :edit) if can?(:edit, record, :context => :sunrise) %>
    </div>
  </div>
<% end -%>  

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sunrise-cms-0.6.11 app/views/sunrise/manager/thumbs/_record.html.erb
sunrise-cms-0.6.10 app/views/sunrise/manager/thumbs/_record.html.erb
sunrise-cms-0.6.9 app/views/sunrise/manager/thumbs/_record.html.erb
sunrise-cms-0.6.8 app/views/sunrise/manager/thumbs/_record.html.erb
sunrise-cms-0.6.7 app/views/sunrise/manager/thumbs/_record.html.erb
sunrise-cms-0.6.6 app/views/sunrise/manager/thumbs/_record.html.erb
sunrise-cms-0.6.5 app/views/sunrise/manager/thumbs/_record.html.erb
sunrise-cms-0.6.4 app/views/sunrise/manager/thumbs/_record.html.erb
sunrise-cms-0.6.3 app/views/sunrise/manager/thumbs/_record.html.erb