From c895469d3434e1e721ec9d3d631caa3f6cad9f4d Mon Sep 17 00:00:00 2001 From: Wen-Tien Chang Date: Mon, 22 Jun 2009 16:04:06 +0800 Subject: [PATCH] add toggle for edit english content --- app/views/admin/pages/_form.html.erb | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/app/views/admin/pages/_form.html.erb b/app/views/admin/pages/_form.html.erb index cc349334..4b52ec7e 100644 --- a/app/views/admin/pages/_form.html.erb +++ b/app/views/admin/pages/_form.html.erb @@ -8,16 +8,18 @@ <%= f.text_field :layout_name, :class => 'text' %>

-

-<%= f.label "content_en", "Content (en)" %> -<%= f.text_area "content_en", :size => '100x30' %> -

- -

+

<%= f.label "content_zh_tw", "Content (zh_tw)" %> <%= f.text_area "content_zh_tw", :size => '100x30' %>

+

Edit english

+ +

+<%= f.label "content_en", "Content (en)" %> +<%= f.text_area "content_en", :size => '100x30' %> +

+

<%= f.label :is_published, "Is Published" %> <%= f.radio_button :is_published, 1 %>Yes <%= f.radio_button :is_published, 0 %> No @@ -31,4 +33,13 @@

<%= f.label :use_engine, "Use Engine" %> <%= f.text_field :use_engine %> -

\ No newline at end of file +

+ +<% content_for :page_specific_javascript do %> + +<% end -%> \ No newline at end of file