<%@page import="at.gv.egovernment.moa.id.configuration.helper.LanguageHelper"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>

<html>

					<s:if test="authUser.isAdmin()">
						<div class="oa_config_block">
							<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.general.bku.header", request) %></h3>
							
							<s:textfield name="authOA.bkuOnlineURL" 
								value="%{authOA.bkuOnlineURL}" 
								labelposition="left"
								key="webpages.oaconfig.general.bku.online"
								cssClass="textfield_long">
							</s:textfield>
	
							<s:textfield name="authOA.bkuHandyURL" 
								value="%{authOA.bkuHandyURL}" 
								labelposition="left"
								key="webpages.oaconfig.general.bku.handy"
								cssClass="textfield_long">
							</s:textfield>
	
							<s:textfield name="authOA.bkuLocalURL" 
								value="%{authOA.bkuLocalURL}" 
								labelposition="left"
								key="webpages.oaconfig.general.bku.local"
								cssClass="textfield_long">
							</s:textfield>
							
							<s:radio list="authOA.keyBoxIdentifierList"
								name="authOA.keyBoxIdentifier"
								value="%{authOA.keyBoxIdentifier}"
								labelposition="left"
								key="webpages.oaconfig.general.bku.keyboxidentifier"
								cssClass="radio">
							</s:radio>						
							<s:checkbox name="authOA.legacy" 
								value="%{authOA.legacy}"
								labelposition="left"
								key="webpages.oaconfig.general.bku.legacy"
								cssClass="checkbox"
								onclick="oaLegacyService();"
								id="OAislegacy">
							</s:checkbox>
							<div id="oa_config_sltemplates">
								<s:textfield name="authOA.SLTemplateURL1" 
									value="%{authOA.SLTemplateURL1}" 
									labelposition="left"
									key="webpages.oaconfig.general.bku.sltemplate.first"
									cssClass="textfield_long">
								</s:textfield>
								<s:textfield name="authOA.SLTemplateURL2" 
									value="%{authOA.SLTemplateURL2}" 
									labelposition="left"
									key="webpages.oaconfig.general.bku.sltemplate.second"
									cssClass="textfield_long">
								</s:textfield>
								<s:textfield name="authOA.SLTemplateURL3" 
									value="%{authOA.SLTemplateURL3}" 
									labelposition="left"
									key="webpages.oaconfig.general.bku.sltemplate.third"
									cssClass="textfield_long">
								</s:textfield>
							</div>
					</div>
				</s:if>	

				<div class="oa_config_block">
						<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.general.testing.header", request) %></h3>
						
						
						<s:checkbox name="authOA.enableTestCredentials" 
												value="%{authOA.enableTestCredentials}"
												labelposition="left"
												key="webpages.oaconfig.general.testing.usetesting"
												cssClass="checkbox">
						</s:checkbox>	
						
						<s:textfield name="authOA.testCredentialOIDs" 
							value="%{authOA.testCredentialOIDs}" 
							labelposition="left"
							key="webpages.oaconfig.general.testing.oids"
							cssClass="textfield_long">				
						</s:textfield>
					</div>


					<div class="oa_config_block">
						<h3><%=LanguageHelper.getGUIString("webpages.oaconfig.general.mandate.header", request) %></h3>
						
						
						<s:checkbox name="authOA.useMandates" 
												value="%{authOA.useMandates}"
												labelposition="left"
												key="webpages.oaconfig.general.mandate.usemandate"
												cssClass="checkbox">
						</s:checkbox>	
						
						<s:textfield name="authOA.mandateProfiles" 
							value="%{authOA.mandateProfiles}" 
							labelposition="left"
							key="webpages.oaconfig.general.mandate.profiles"
							cssClass="textfield_long">
						</s:textfield>
						
						<s:checkbox name="formOA.onlyMandateAllowed" 
									value="%{formOA.onlyMandateAllowed}"
									labelposition="left"
									key="webpages.oaconfig.general.BKUSelection.isOnlyMandateLoginAllowed"
									cssClass="checkbox">
						</s:checkbox>
						
					</div>						
				
</html>