copy/move and throw correct exceptions
[pithos] / war / register.jsp
index c361611..fc1d8e1 100644 (file)
@@ -26,28 +26,42 @@ along with GSS.  If not, see <http://www.gnu.org/licenses/>.
 <html>
 <head>
 <title><%= GSSConfigurationFactory.getConfiguration().getString("serviceName") %> Registration</title>
-<link href="/pithos/gss.css" rel="stylesheet" type="text/css">
+<link href="/pithos/main.css" rel="stylesheet" type="text/css">
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 </head>
 <body>
-
-Welcome to <%= GSSConfigurationFactory.getConfiguration().getString("serviceName") %>.
-You may sign up for the service by filling and submitting the following form. All fields are required.
+<div class="wrapper" >
+<div class="header"></div>
+<div class="image_logo">
+<table><tr>
+  <td><a href="/"><img src="/pithos/images/service-logo.png"></img></a>
+</tr></table>
+</div> <!-- image_logo -->
+<div style="clear: both; "> </div>
+<div class="page_main">
 <center>
+<p class="blurb">Welcome to the <%= GSSConfigurationFactory.getConfiguration().getString("serviceName") %> storage service.
+Create an account with the service by filling and submitting the following form. Please note that all fields are required.</p>
 <form method="post" action="/pithos/register">
-<%= request.getParameter("error") != null? URLDecoder.decode(request.getParameter("error"), "UTF-8"): "" %>
+<div class="error">
+    <%= request.getParameter("error") != null? URLDecoder.decode(request.getParameter("error"), "UTF-8"): "" %>
+</div>
     <table>
         <tr>
-            <td>Name:</td>
-            <td><input type="text" name="name" title="Enter a name" value="<%= request.getParameter("name") != null? request.getParameter("name"): ""  %>"/></td>
+            <td>Firstname:</td>
+            <td><input type="text" name="firstname" title="Enter a firstname" value="<%= request.getParameter("firstname") != null? URLDecoder.decode(request.getParameter("firstname"), "UTF-8"): ""  %>"/></td>
+        </tr>
+        <tr>
+            <td>Lastname:</td>
+            <td><input type="text" name="lastname" title="Enter a lastname" value="<%= request.getParameter("lastname") != null? URLDecoder.decode(request.getParameter("lastname"), "UTF-8"): ""  %>"/></td>
         </tr>
         <tr>
             <td>E-Mail:</td>
-            <td><input type="text" name="email" title="Enter an e-mail address" value="<%= request.getParameter("email") != null? request.getParameter("email"): "" %>"/></td>
+            <td><input type="text" name="email" title="Enter an e-mail address" value="<%= request.getParameter("email") != null? URLDecoder.decode(request.getParameter("email"), "UTF-8"): "" %>"/></td>
         </tr>
         <tr>
             <td>Username:</td>
-            <td><input type="text" name="username" title="Enter a username" value="<%= request.getParameter("username") != null? request.getParameter("username"): "" %>"/></td>
+            <td><input type="text" name="username" title="Enter a username" value="<%= request.getParameter("username") != null? URLDecoder.decode(request.getParameter("username"), "UTF-8"): "" %>"/></td>
         </tr>
         <tr>
             <td>Password:</td>
@@ -72,6 +86,8 @@ You may sign up for the service by filling and submitting the following form. Al
     </table>
 </form>
 </center>
-
+</div>
+<div class="footer"></div>
+</div> <!-- wrapper -->
 </body>
 </html>