From b309c291837697a91622b3f735b5d21f9dd1a1e2 Mon Sep 17 00:00:00 2001
From: "renater.salaun" <renater.salaun@047e039d-479c-447e-8a29-aa6bf4a09bab>
Date: Fri, 17 Oct 2014 09:05:46 +0000
Subject: [PATCH] Fix tab 2 size and make it scrollable

git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@32 047e039d-479c-447e-8a29-aa6bf4a09bab
---
 templates/web/account_wizard.tt2.html | 4 ++--
 templates/web/index.tt2.html          | 3 +++
 templates/web/select_sp.tt2.html      | 6 ++++--
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/templates/web/account_wizard.tt2.html b/templates/web/account_wizard.tt2.html
index 1b4698e..60501f0 100644
--- a/templates/web/account_wizard.tt2.html
+++ b/templates/web/account_wizard.tt2.html
@@ -97,7 +97,7 @@ jQuery(document).ready(function($){
 
       <h3>Select your Service Provider</h3>
 <fieldset>
-    <legend>Select your Service Provider</legend>
+    <h3>Select your Service Provider</h3>
 <div>
 This Test Identity Provider allows you to create test accounts with different profiles to validate the behaviour of your own Service Provider registered
 in eduGAIN inter-federation. Note that only a Service Provider administrator can create accounts here.
@@ -105,7 +105,7 @@ in eduGAIN inter-federation. Note that only a Service Provider administrator can
 
 <label for="sp_entityid">Please select your Service Provider below</label>
     
-    <select  id="sp_entityid" name="sp_entityid" class="required">
+    <select id="sp_entityid" name="sp_entityid" class="required">
         <option value="">Select your Service Provider below</option>
         [% FOREACH entity IN federation_metadata_as_hashref.sort('default_display_name') %]
 <option value="[% entity.entityid %]">[% IF entity.default_display_name %][% entity.default_display_name %] [% END %]([% entity.entityid %])</option>
diff --git a/templates/web/index.tt2.html b/templates/web/index.tt2.html
index b6a63f5..888364e 100644
--- a/templates/web/index.tt2.html
+++ b/templates/web/index.tt2.html
@@ -62,6 +62,9 @@ div.important{border-style:solid;border-color:black;border-width:1px;background-
 .mandatory{color:#e00853;font-style:italic;font-weight:bold;margin:0 3px}
 .notice{border:2px solid #05a;padding:5px 5px 5px 5px;margin:20px;}
 #sp_entityid{width:100%;}
+.scrollable{overflow-y: scroll;}
+fieldset.scrollable{height: 75%;}
+.wizard .content div.radio_inline input[type="radio"]{display: inline;}
 --></STYLE>
 <title> [% PROCESS 'templates/web/title.tt2.html' %] </title>
 
diff --git a/templates/web/select_sp.tt2.html b/templates/web/select_sp.tt2.html
index 6a8dd5a..394051e 100644
--- a/templates/web/select_sp.tt2.html
+++ b/templates/web/select_sp.tt2.html
@@ -8,7 +8,7 @@
 Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of "[% sp_display_name %]".
 </div>
 
-<fieldset>
+<fieldset class="scrollable">
 [% IF  sp_metadata_as_hashref.contacts.defined %]
     <legend>Select your email address</legend>
    <label for="sp_entityid">The email addresses below have been extracted from your SP SAML metadata.<br/>Please select the email address where an email challenge
@@ -24,12 +24,14 @@ Before you can create test accounts at this Identity Provider, we need to ensure
 [% contacts.${email} = 1 %]
 [% END %]
 
+<div class="radio_inline">
 [% FOREACH email IN contacts.keys.sort %]
-<input name="email_address" value="[% email %]" id="email_address" type="radio" class="required"/><label for="email_address">[% email %]</label>
+<input name="email_address" value="[% email %]" type="radio" class="required"/><label for="email_address">[% email %]</label><br/>
 
 <input type="hidden" name="sp_entityid" value="[% sp_metadata_as_hashref.entityid %]" id="sp_entityid"/>
 
 [% END %]
+</div>
 
 [% ELSE %]
 No ContactPerson elements could be found in your SP SAML metadata. Therefore we are unable to provide test accounts for your SP. Please contact your local federation
-- 
GitLab