From 68dcf25f258749cb8d5ea4797c8807d3d714b8b4 Mon Sep 17 00:00:00 2001 From: rulingcom Date: Fri, 5 Jun 2026 15:27:16 +0800 Subject: [PATCH] Change Chinese text and add new fields, remove prompt text --- app/views/admin/event_news/_form.html.erb | 10 +++++----- config/locales/zh_tw.yml | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/admin/event_news/_form.html.erb b/app/views/admin/event_news/_form.html.erb index 310de8e..3e6c13f 100644 --- a/app/views/admin/event_news/_form.html.erb +++ b/app/views/admin/event_news/_form.html.erb @@ -105,7 +105,7 @@
- +
<%= f.datetime_picker :event_end_date, :no_label => true, :new_record => @event_news.new_record?, :data=>{"picker-type" => "range", "range" => "start"} %>
@@ -451,7 +451,7 @@
<%= f.fields_for :title_translations do |f| %> - <%= f.text_area locale, class: "ckeditor_reduce input-block-level", placeholder: t(:title), value: (@event_news.title_translations[locale] rescue nil) %> + <%= f.text_area locale, class: "ckeditor_reduce input-block-level", value: (@event_news.title_translations[locale] rescue nil) %> <% end %>
@@ -460,7 +460,7 @@
<%= f.fields_for :speaker_translations do |f| %> - <%= f.text_field locale, class: "input-block-level", placeholder: t("event_news.speaker"), value: (@event_news.speaker_translations[locale] rescue nil) %> + <%= f.text_field locale, class: "input-block-level", value: (@event_news.speaker_translations[locale] rescue nil) %> <% end %>
@@ -469,7 +469,7 @@
<%= f.fields_for :place_translations do |f| %> - <%= f.text_field locale, class: "input-block-level", placeholder: t("event_news.place"), value: (@event_news.place_translations[locale] rescue nil) %> + <%= f.text_field locale, class: "input-block-level", value: (@event_news.place_translations[locale] rescue nil) %> <% end %>
@@ -478,7 +478,7 @@
<%= f.fields_for :host_translations do |f| %> - <%= f.text_field locale, class: "input-block-level", placeholder: t("event_news.host"), value: (@event_news.host_translations[locale] rescue nil) %> + <%= f.text_field locale, class: "input-block-level", value: (@event_news.host_translations[locale] rescue nil) %> <% end %>
diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index d67063b..3096002 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -52,8 +52,8 @@ zh_tw: employer: 徵求單位 event_date: 事件日期 event_end_date: 事件結束日期 - start_date: 公告日期 - end_date: 截止日期 + start_date: 上架日期 + end_date: 下架日期 add_to_calendar: 加入行事曆 blank_to_set: (留白則使用公告設定) stime: 開始時間