Fixed the account authorization config disappearing

This was cause by the new default escaping behaviour

Change-Id: I5a6dc181dee5b8eaa2d94545f15c3f2a9903f059
Reviewed-on: https://gerrit.instructure.com/2126
Reviewed-by: Brian Palmer <brianp@instructure.com>
Tested-by: Bracken Mosbacker <bracken@instructure.com>
This commit is contained in:
Bracken Mosbacker 2011-02-02 09:40:01 -07:00
parent ca34692730
commit 2c715be51f
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<% form_id = @account_config.ldap_authentication? ? 'auth_form' : 'ldap_form' %>
<% active = @account_config.ldap_authentication? ? 'class="active"' : '' %>
<div id="ldap_div" <%= active %>>
<div id="ldap_div" <%= raw active %>>
<% form_for @account_config, :url => context_url(@account, :context_account_authorization_config_url, @account.id), :html => {:id => form_id, :class=>"auth_type ldap_form"} do |f| %>
<input type="hidden" name="account_authorization_config[auth_type]" value="<%= @account_config.auth_type || 'ldap' %>"/>
<table class="formtable" style="margin-left: 20px;">

View File

@ -1,6 +1,6 @@
<% form_id = @account_config.saml_authentication? ? 'auth_form' : 'saml_form' %>
<% active = @account_config.saml_authentication? ? 'class="active"' : '' %>
<div id="saml_div" <%= active %>>
<div id="saml_div" <%= raw active %>>
<% form_for @account_config, :url => context_url(@account, :context_account_authorization_config_url, @account.id), :html => {:id => form_id, :class=>"auth_type saml_form"} do |f| %>
<input type="hidden" name="account_authorization_config[auth_type]" value="<%= @account_config.auth_type || 'saml' %>"/>
<table class="formtable" style="margin-left: 20px;">