<% if params['global'] if params['repo'] title = I18n.t('preference.global') message = I18n.t('preference.global_message') else title = I18n.t('preference.user_global') message = I18n.t('preference.user_global_message') end else if params['repo'] title = I18n.t('preference.repo') message = I18n.t('preference.repo_message') else title = I18n.t('preference.user_repo') message = I18n.t('preference.user_repo_message') end title += " -- #{current_repo['repo_code']}" end %> <%= setup_context(:title => title) %> <%= form_for @preference, :as => "preference", :url => {:action => :update, :id => @preference.id}, :html => {:class => 'form-horizontal aspace-record-form'}.merge(update_monitor_params(@preference)) do |f| %> <% if params['global'] %> <% end %> <% if params['repo'] %> <% end %> <%= form_context :preference, @preference do |form| %>
<%= render_aspace_partial :partial => "toolbar" %>

<%= title %>

<%= message.force_encoding("UTF-8") %>
<%= render_aspace_partial :partial => "shared/flash_messages" %> <%= render_aspace_partial :partial => "shared/subrecord_form", :locals => {:form => form, :name => "defaults", :cardinality => :zero_to_one, :template => "defaults", :hidden => true} %>
<% end %> <% end %>