This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2013-08-09 07:07:05 +00:00
|
|
|
<%= form_for @attribute,:url => eval("admin_#{@attribute_type}s_path") ,:class=> "form-horizontal", :id=>"new_bulletin_category", remote: true do |f| %>
|
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<legend><%= t(eval(":#{@attribute_type}"))%></legend>
|
|
|
|
<label class="muted" for="key"><%= t(:key) %></label>
|
|
|
|
<% if @attribute.new_record? %>
|
|
|
|
<%= f.text_field :key, :class => "input-large", :placeholder => t(:key) %>
|
|
|
|
<% else %>
|
|
|
|
<div><%= @attribute.key%></div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
|
|
|
|
|
|
|
<label class="muted" for="name-en"><%= t(:item_name) %>(<%= I18nVariable.from_locale(locale) %>)</label>
|
|
|
|
<input id="name-<%= locale %>" type="text" class="input-large" placeholder="<%= t(:item_name) %>" name="<%="#{@attribute_type}[title_translations][#{locale}]"%>">
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<label class="muted" for="name-zh-tw"><%= t(:to_search) %></label>
|
|
|
|
<label class="radio inline">
|
|
|
|
<%= f.radio_button :to_search, true %>
|
|
|
|
<%= t(:yes_)%>
|
|
|
|
</label>
|
|
|
|
<label class="radio inline">
|
|
|
|
<%= f.radio_button :to_search, false %>
|
|
|
|
<%= t(:no_)%>
|
|
|
|
</label>
|
|
|
|
<div class="form-actions">
|
|
|
|
<%= f.submit t('submit'), :class=>'btn btn-primary btn-small' %>
|
|
|
|
<%= link_to t('cancel'), 'javascript:$.pageslide.close()', :class=>" btn-small" %>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
|
|
|
|
<% end %>
|
|
|
|
|