Change for interface,form.

This commit is contained in:
Matthew K. Fu JuYuan 2012-04-02 10:50:39 +08:00
parent 2747fc42f5
commit 2fddfd367a
3 changed files with 12 additions and 6 deletions

View File

@ -3,11 +3,12 @@
<p>尺寸:</p> <p>尺寸:</p>
<%= form_for ad_banner_tab,:url=> admin_ad_banner_path(ad_banner_tab),:method => :put,:class=>"input-medium" do |f| -%> <%= 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_fx') %> <%= f.label :ad_fx, t('admin.ad.ab_fx') %>
<%= f.select :ad_fx ,AdBanner::FX_TYPES %> <%= 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 %>
<%= f.submit 'Cancel',:type=>'reset' %> <%= f.submit 'Cancel',:type=>'reset' %>
<%= f.text_field :transition_sec,:placeholder=>"3秒請輸入3000",:class=> "span3" %>
<div> <div>
<%= render :partial => "ad_image_update", :collection => ad_banner_tab.ad_images,:as => :ad_image,:locals=>{:ad_banner => ad_banner_tab} %> <%= 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" } %> <%#= render :partial => 'new_add_banner_file', :object => ad_banner_tab.ad_images.build, :locals => { :field_name => "new_ad_images[]", :f => f, :classes => "r_destroy" } %>

View File

@ -11,21 +11,21 @@
<div class="modal-body form-horizontal"> <div class="modal-body form-horizontal">
<div class="control-group"> <div class="control-group">
<%= f.label :title,:class => "control-label" %> <%= f.label :title,t('admin.ad.title'),:class => "control-label" %>
<div class="controls"> <div class="controls">
<%= f.text_field :title %> <%= f.text_field :title %>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<%= f.label :transition_sec,:class => "control-label" %> <%= f.label :transition_sec, t('admin.ad.transition_sec'),:class => "control-label" %>
<div class="controls"> <div class="controls">
<%= f.text_field :transition_sec %> <%= f.text_field :transition_sec %> <%= t("admin.ad.trans_unit_sec") %>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<%= f.label :ad_fx,:class => "control-label" %> <%= f.label :ad_fx, t('admin.ad.ab_fx') %>
<div class="controls"> <div class="controls">
<%= f.select :ad_fx ,AdBanner::FX_TYPES %> <%= f.select :ad_fx ,AdBanner::FX_TYPES %>
</div> </div>

View File

@ -39,6 +39,11 @@ zh_tw:
admin: admin:
action: 操作 action: 操作
ad_banner: 廣告輪播 ad_banner: 廣告輪播
ad:
title: 標題
ab_fx: 轉場特效
transition_sec: 轉場單位時間
trans_unit_sec:
add: 新增 add: 新增
add_item: 新增項目 add_item: 新增項目
add_language: 新增語言 add_language: 新增語言