This commit is contained in:
EricTYL 2019-08-19 16:54:25 +08:00
parent 2874329ace
commit 0a832d6dff
3 changed files with 15 additions and 7 deletions

View File

@ -91,7 +91,7 @@
<a class="btn btn-primary" href="<%= new_admin_ad_image_path(:page => params[:page], :banner_id => @banner.id) %>">
<%= t("ad_banner.add") %>
</a>
<a class="btn btn-info" href="#sort-images-modal" data-toggle="modal">Order</a>
<a class="btn btn-info" href="#sort-images-modal" data-toggle="modal">t("ad_banner.order")</a>
</div>
<%= content_tag :div, paginate(@images), class: "pagination pagination-centered" %>
</div>
@ -99,7 +99,7 @@
<div id="sort-images-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Order Images</h3>
<h3>t("ad_banner.order_images")</h3>
</div>
<div class="modal-body">
<ul class="order-list">
@ -113,8 +113,8 @@
</ul>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary" id="save-image-order-btn">Save changes</button>
<button class="btn" data-dismiss="modal" aria-hidden="true">t("ad_banner.close")</button>
<button class="btn btn-primary" id="save-image-order-btn">t("ad_banner.save_changes")</button>
</div>
</div>
<% end %>

View File

@ -29,3 +29,7 @@ en:
duration: Duration
setting: Settings
expired: Expired
order: Order
order_images: Order Images
save_changes: Save Changes
close: Close

View File

@ -20,9 +20,13 @@ zh_tw:
categories: 類別
add: 新增
size: 大小
setting: Settings
setting: 設定
transition_interval: 轉換間隔
transition_speed: 轉換速度
type: 開啟方式
expired: 已下架
duration: Duration
duration: 期間
order: 排序
order_images: 圖片順序
save_changes: 儲存變更
close: 取消