fix link and outlink

This commit is contained in:
JiangRu 2014-12-19 10:18:28 +08:00
parent 53fb0e12ab
commit 707dd3a6a4
1 changed files with 17 additions and 13 deletions

View File

@ -61,6 +61,22 @@
</div> </div>
</div> </div>
</div> </div>
<!-- Link -->
<div class="control-group">
<label class="control-label muted"><%= t(:link) %></label>
<div class="controls">
<%= f.text_field :out_link, placeholder: t('ad_banner.enter_url') %>
</div>
</div>
<div class="control-group">
<label class="control-label muted"><%= t('ad_banner.type') %></label>
<div class="controls">
<%= f.select :link_open, AdImage::LINK_OPEN_TYPES.map{|a| [t("ad_banner.#{a}"), a]} %>
</div>
</div>
</div> </div>
<div id="exchange_item_2" style="display:none"> <div id="exchange_item_2" style="display:none">
@ -112,25 +128,13 @@
</div> </div>
</div> </div>
<!-- Link --> <div id="exchange_item_2" style="display:none">
<div class="control-group">
<label class="control-label muted"><%= t(:link) %></label>
<div class="controls">
<%= f.text_field :out_link, placeholder: t('ad_banner.enter_url') %>
</div>
</div>
<div class="control-group">
<label class="control-label muted"><%= t('ad_banner.type') %></label>
<div class="controls">
<%= f.select :link_open, AdImage::LINK_OPEN_TYPES.map{|a| [t("ad_banner.#{a}"), a]} %>
</div> </div>
</div> </div>
</div> </div>
</div>
<!-- Language Tabs --> <!-- Language Tabs -->
<ul class="nav nav-pills language-nav"> <ul class="nav nav-pills language-nav">
<% @site_in_use_locales.each_with_index do |locale, i| %> <% @site_in_use_locales.each_with_index do |locale, i| %>