%= content_for :headers do %> <%= javascript_include_tag 'jquery.filestyle' %> <% end %> <%= content_for :javascript do %> $("input[type=file]").filestyle({ image: "/images/buttons/browse.png", imageheight : 23, imagewidth : 63, width : 237 }); $('.tooltip_exception_notifications_email').qtip({ content: '<%= escape_javascript(t('site.exception_notifications_email_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_ssl').qtip({ content: '<%= escape_javascript(t('site.ssl_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_feedback_url').qtip({ content: '<%= escape_javascript(t('site.feedback_url_tip', :default_url => webconf_feedback_index_path)) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_exception_notifications').qtip({ content: '<%= escape_javascript(t('site.exception_notifications_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_shib_env_variables').qtip({ content: '<%= escape_javascript(t('site.shib_env_variables_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_shib_email_field').qtip({ content: '<%= escape_javascript(t('site.shib_email_field_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_shib_name_field').qtip({ content: '<%= escape_javascript(t('site.shib_name_field_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_shib_login_field').qtip({ content: '<%= escape_javascript(t('site.shib_login_field_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_email').qtip({ content: '<%= escape_javascript(t('site.smtp_login_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_smtp_password').qtip({ content: '<%= escape_javascript(t('site.smtp_password_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.tooltip_analytics_code').qtip({ content: '<%= escape_javascript(t('site.analytics_code_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $("#site_smtp_password_show").livequery('click', function(event) { if ($(this).is(':checked')) { changeInputTextType("#current_site_smtp_password", 'text'); } else { changeInputTextType("#current_site_smtp_password", 'password'); } }); $('.site_external_help').qtip({ content: '<%= escape_javascript(t('site.external_help_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.site_use_recaptcha').qtip({ content: '<%= escape_javascript(t('site.use_recaptcha_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.site_recaptcha_private_key').qtip({ content: '<%= escape_javascript(t('site.recaptcha_private_key_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); $('.site_recaptcha_public_key').qtip({ content: '<%= escape_javascript(t('site.recaptcha_public_key_tip')) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); <% end %> <%= render :partial => 'manage/menu' %>
<%= f.label :name, t('site.name') %> <%= f.text_field :name %>
<%= f.label :description, t('site.description') %> <%= f.text_area :description %>
<%= f.label :domain, t('site.domain') %> <%= f.text_field :domain %>
<%= f.label :smtp_login, t('site.smtp_login') %> <%= f.text_field :smtp_login %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_email icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :smtp_password, t('site.smtp_password') %> <%= f.password_field :smtp_password %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_smtp_password icon",:style=>"cursor:pointer").html_safe %> <%= check_box_tag 'site_smtp_password_show' %><%= t('show_question') %>
<%= f.label :smtp_server, t('site.smtp_server') %> <%= f.text_field :smtp_server %>
<%= f.label :smtp_server, t('site.smtp_domain') %> <%= f.text_field :smtp_domain %>
<%= f.label :smtp_port, t('site.smtp_port') %> <%= f.text_field :smtp_port %>
<%= f.label :smtp_use_tls, t('site.smtp_use_tls') %> <%= f.check_box :smtp_use_tls %>
<%= f.label :smtp_auto_tls, t('site.smtp_auto_start_tls') %> <%= f.check_box :smtp_auto_tls %>
<%= f.label :smtp_auth_type, t('site.smtp_auth_type') %> <%= f.text_field :smtp_auth_type %>
<%= f.label :smtp_sender, t('site.smtp_sender') %> <%= f.text_field :smtp_sender %>
<%= f.label :locale, t('site.locale') %> <%= f.select :locale, I18n.available_locales %>
<%= f.label :timezone, t('site.timezone') %> <%= f.time_zone_select :timezone, nil %>
<%= f.label :signature, t('site.signature') %> <%= f.text_area :signature %>
<%= f.label :ssl, t('site.ssl') %> <%= f.check_box :ssl %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_ssl icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :feedback_url, t('site.feedback_url') %> <%= f.text_field :feedback_url %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_feedback_url icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :analytics_code, t('site.analytics_code') %> <%= f.text_field :analytics_code %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_analytics_code icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :exception_notifications, t('site.exception_notifications') %> <%= f.check_box :exception_notifications %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_exception_notifications icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :exception_notifications_email, t('site.exception_notifications_email') %> <%= f.text_field :exception_notifications_email %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_exception_notifications_email icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :exception_notifications_prefix, t('site.exception_notifications_prefix') %> <%= f.text_field :exception_notifications_prefix %>
<%= f.label :shib_enabled, t('site.shib_enabled') %> <%= f.check_box :shib_enabled %>
<%= f.label :shib_env_variables, t('site.shib_env_variables') %> <%= f.text_area :shib_env_variables %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_shib_env_variables icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :shib_email_field, t('site.shib_email_field') %> <%= f.text_field :shib_email_field %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_shib_email_field icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :shib_name_field, t('site.shib_name_field') %> <%= f.text_field :shib_name_field %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_shib_name_field icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :shib_login_field, t('site.shib_login_field') %> <%= f.text_field :shib_login_field %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_shib_login_field icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :external_help, t('site.external_help') %> <%= f.text_field :external_help %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"site_external_help icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :use_recaptcha, t('site.use_recaptcha') %> <%= f.check_box :use_recaptcha %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"site_use_recaptcha icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :recaptcha_public_key, t('site.recaptcha_public_key') %> <%= f.text_field :recaptcha_public_key %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"site_recaptcha_public_key icon",:style=>"cursor:pointer").html_safe %>
<%= f.label :recaptcha_private_key, t('site.recaptcha_private_key') %> <%= f.text_field :recaptcha_private_key %> <%= image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"site_recaptcha_private_key icon",:style=>"cursor:pointer").html_safe %>
<% end %>