Merge branch 'ldap' of github.com:Rulingcom/orbit into ldap

This commit is contained in:
Matt 2012-05-17 19:11:22 +08:00
commit 9e6ea0b8dc
2 changed files with 8 additions and 16 deletions

File diff suppressed because one or more lines are too long

View File

@ -12,30 +12,20 @@
<label for="title" class="control-label error"><%= t 'admin.title' %></label> <label for="title" class="control-label error"><%= t 'admin.title' %></label>
<div class="controls"> <div class="controls">
<%= f.fields_for :title, (@asset.new_record? ? @asset.build_title : @asset.title) do |f| %> <%= f.fields_for :title, (@asset.new_record? ? @asset.build_title : @asset.title) do |f| %>
<% @site_valid_locales.each do |locale| %>
<%= content_tag :label do -%>
<div> <div>
<%= I18nVariable.from_locale(locale) %> <%= f.text_field I18n.locale, :class => "input-large" %>
<%= f.text_field locale, :class => "input-large" %>
</div> </div>
<% end %> <% end %>
<% end %>
<% end %>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label for="description" class="control-label error"><%= t 'admin.description' %></label> <label for="description" class="control-label error"><%= t 'admin.description' %></label>
<div class="controls"> <div class="controls">
<%= f.fields_for :description, (@asset.new_record? ? @asset.build_description : @asset.description) do |f| %> <%= f.fields_for :description, (@asset.new_record? ? @asset.build_description : @asset.description) do |f| %>
<% @site_valid_locales.each do |locale| %>
<%= content_tag :label do -%>
<div> <div>
<%= I18nVariable.from_locale(locale) %> <%= f.text_field I18n.locale, :class => "input-large" %>
<%= f.text_field locale, :class => "input-large" %>
</div> </div>
<% end %> <% end %>
<% end %>
<% end %>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">