AdBanner i18n vars patch
This commit is contained in:
1 parent
430b0fd9ae
commit
d81ca40f90
5 files changed
+20
-5
No files matched your search
@@ -39,8 +39,10 @@ class Admin::AdBannersController < ApplicationController
|
||||
redirect_to admin_ad_banners_url
|
||||
end
|
||||
|
||||
def destroy_ad_image
|
||||
|
||||
def realtime_preview
|
||||
@ad_banner = AdBanner.find(params[:id])
|
||||
@ad_banner.update_attributes(params[:ad_banner])
|
||||
render
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<script type="text/javascript" src="/static/jquery.cycle.all.latest.js"></script>
|
||||
<div class="tab-pane <%= "active" if ad_banner_tab==@active %>" id=<%= ad_banner_tab.title %>>
|
||||
<p>尺寸:</p>
|
||||
<p><%= t("admin.ad.banner_best_size") %>:</p>
|
||||
|
||||
<%= form_for ad_banner_tab,:url=> admin_ad_banner_path(ad_banner_tab),:method => :put,:class=>"input-medium" do |f| -%>
|
||||
<%= f.label :ad_fx, t('admin.ad.ab_fx') %>
|
||||
<%= f.select :ad_fx ,AdBanner::FX_TYPES %>
|
||||
<%= f.label :transition_sec, t('admin.ad.transition_sec') %>
|
||||
<%= f.text_field :transition_sec,:placeholder=>"3秒請輸入3000",:class=> "span3" %> <%= t("admin.ad.trans_unit_sec") %>
|
||||
<%= f.submit %>
|
||||
<%= f.submit 'Cancel',:type=>'reset' %>
|
||||
<%= f.submit t("admin.ad.update_banner") %>
|
||||
<%= f.submit t("cancel"),:type=>'reset' %>
|
||||
<div>
|
||||
<%= render :partial => "ad_image_update", :collection => ad_banner_tab.ad_images,:as => :ad_image,:locals=>{:ad_banner => ad_banner_tab} %>
|
||||
<%#= render :partial => 'new_add_banner_file', :object => ad_banner_tab.ad_images.build, :locals => { :field_name => "new_ad_images[]", :f => f, :classes => "r_destroy" } %>
|
||||
|
||||
Reference in new issue
Block a user