From 707dd3a6a4d698d2496ecf9ea43656f9c84ea870 Mon Sep 17 00:00:00 2001 From: JiangRu Date: Fri, 19 Dec 2014 10:18:28 +0800 Subject: [PATCH] fix link and outlink --- app/views/admin/ad_images/_form.html.erb | 30 ++++++++++++++---------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/app/views/admin/ad_images/_form.html.erb b/app/views/admin/ad_images/_form.html.erb index 67a38d8..6e3e6da 100644 --- a/app/views/admin/ad_images/_form.html.erb +++ b/app/views/admin/ad_images/_form.html.erb @@ -61,6 +61,22 @@ + + + +
+ +
+ <%= f.text_field :out_link, placeholder: t('ad_banner.enter_url') %> +
+
+ +
+ +
+ <%= f.select :link_open, AdImage::LINK_OPEN_TYPES.map{|a| [t("ad_banner.#{a}"), a]} %> +
+
- -
- -
- <%= f.text_field :out_link, placeholder: t('ad_banner.enter_url') %> -
-
+