orbit-basic/app/views/admin/ad_banners/index.html.erb

52 lines
1.1 KiB
Plaintext
Raw Normal View History

<% set_default_index do
objects @ad_banners
quick_edit_link type: 'edit',
link: 'edit_admin_ad_banner_path'
quick_edit_link type: 'detail'
quick_edit_link type: "add image",
link: 'new_admin_ad_banner_ad_image_path'
quick_edit_link type: "Images",
link: 'admin_ad_banner_ad_images_path'
field type: 'field',
db_field: 'title',
translation: 'title',
sort: 'title',
link: 'admin_ad_banner_path',
quick_edit: true,
header_class: 'span5'
field type: 'field',
db_field: 'ad_fx',
translation: 'ad_fx',
sort: 'ad_fx',
link: 'admin_ad_banner_path',
quick_edit: true,
header_class: 'span5'
field db_field: 'best_size',
translation: 'best_size',
header_class: 'span5'
filter_field type: 'objects',
values: @tags,
translation: 'tags',
object_field: 'name'
end %>
<%= render 'admin/default_index/index' %>
<!-- footer -->
<div class="bottomnav clearfix">
<div class="action pull-right">
<%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add_new), "#add-banner", :class => "btn btn-primary open-slide"%>
</div>
</div>
<div id="add-banner" class="nano" style="display:none">
<%= render 'new' %>
2012-04-01 15:39:49 +00:00
</div>