2013-08-05 10:30:35 +00:00
|
|
|
<% 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>
|