Skip to content

Commit

Permalink
Added login,registration, about
Browse files Browse the repository at this point in the history
  • Loading branch information
rajmahendra committed Dec 22, 2012
1 parent 8e6f947 commit 55f254a
Show file tree
Hide file tree
Showing 9 changed files with 170 additions and 36 deletions.
54 changes: 50 additions & 4 deletions UrbanTravellers-Web/src/main/webapp/WEB-INF/template/default.xhtml
Expand Up @@ -75,12 +75,13 @@ limitations under the License.
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Project name</a>
<a class="brand" href="#">Urban Travellers</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
<li ><h:link value="Registration" outcome="registration" /></li>

<li><a href="#loginModal" data-toggle="modal">Login</a></li>
<li><h:link value="About" outcome="about" /></li>
</ul>
</div><!--/.nav-collapse -->
</div>
Expand All @@ -95,11 +96,56 @@ limitations under the License.


</div>

<br/><br/>
<hr/>
<div id="footer">
<div class="container">
<p class="muted credit">UrbenTravellers (C) JUGChennai - POC for some nice JSRs in JEE 7 </p>
</div>
</div>


<!-- Modal -->
<div id="loginModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="loginModalLabel" aria-hidden="true">

<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="loginModallLabel">Login</h3>
</div>
<div class="modal-body">

<form>
<table>
<tr>
<td>
User Name:
</td>
<td>
<input type="text" placeholder="User Name" />
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type="text" placeholder="Password" />
</td>
</tr>
</table>


</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
<button class="btn btn-primary">Login</button>
</div>

</div>



<script
src="http://code.jquery.com/jquery-latest.js"></script>
Expand Down
18 changes: 18 additions & 0 deletions UrbanTravellers-Web/src/main/webapp/about.xhtml
@@ -0,0 +1,18 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xml:lang="en">

<ui:composition template="WEB-INF/template/default.xhtml">
<ui:define name="title">Urban Travellers :: About</ui:define>


<ui:define name="content">

<br/><br/><br/>


<b>This page will be completed and the end.</b>

</ui:define>
</ui:composition>
</html>
38 changes: 16 additions & 22 deletions UrbanTravellers-Web/src/main/webapp/index.xhtml
@@ -1,39 +1,33 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xml:lang="en" lang="en">
<ui:composition template="WEB-INF/template/default.xhtml">
<ui:define name="title">Create a new book</ui:define>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets" template="WEB-INF/template/default.xhtml">
<ui:define name="title">Urban Travellers :: JEE 7 </ui:define>


<ui:define name="content">




<div class="hero-unit">
<h1>Hello, world!</h1>
<p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
<h1>Urban Travellers</h1>
<p>Snake &amp; Ladder like dice game, a proof of concept(POC) project to demonstrate some new features of JEE 7.</p>
<p><a class="btn btn-primary btn-large">Learn more </a></p>
</div>

<!-- Example row of columns -->

<div class="row">
<div class="span4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn" href="#">View details </a></p>
<h2>JSR 356</h2>
<p>Java API for WebSocket 1.0</p>

</div>
<div class="span4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
<p><a class="btn" href="#">View details </a></p>
<h2>JSR 353</h2>
<p>Java API for JSON Processing 1.0</p>

</div>
<div class="span4">
<h2>Heading</h2>
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
<p><a class="btn" href="#">View details </a></p>
<h2>JSR 352</h2>
<p>Batch Applications for the Java Platform 1.0</p>
</div>
</div>

</ui:define>
</ui:composition>
</html>
</ui:composition>
15 changes: 15 additions & 0 deletions UrbanTravellers-Web/src/main/webapp/registration.xhtml
@@ -0,0 +1,15 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xml:lang="en">

<ui:composition template="WEB-INF/template/default.xhtml">
<ui:define name="title">Urban Travellers :: Game Board</ui:define>


<ui:define name="content">



</ui:define>
</ui:composition>
</html>
@@ -0,0 +1,17 @@
/*
* Copyright 2012 JUGChennai.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


@@ -0,0 +1,17 @@
/*
* Copyright 2012 JUGChennai.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/


15 changes: 15 additions & 0 deletions UrbanTravellers-Web/src/main/webapp/theboard.xhtml
@@ -0,0 +1,15 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xml:lang="en">

<ui:composition template="WEB-INF/template/default.xhtml">
<ui:define name="title">Urban Travellers :: Registration</ui:define>


<ui:define name="content">



</ui:define>
</ui:composition>
</html>
17 changes: 9 additions & 8 deletions nb-configuration.xml
@@ -1,18 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<netbeans.checkstyle.format>true</netbeans.checkstyle.format>
</properties>
</project-shared-configuration>
-->
<netbeans.checkstyle.format>true</netbeans.checkstyle.format>
<netbeans.compile.on.save>app</netbeans.compile.on.save>
</properties>
</project-shared-configuration>
15 changes: 13 additions & 2 deletions pom.xml
Expand Up @@ -60,6 +60,17 @@
<system>GitHub</system>
<url>https://github.com/jugchennai/UrbanTravellers/issues</url>
</issueManagement>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 55f254a

Please sign in to comment.