Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
François Prunayre
committed
Oct 10, 2013
1 parent
ab86971
commit 09dba2f
Showing
19 changed files
with
315 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@import "gn.less"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 103 additions & 0 deletions
103
web-ui/src/main/resources/catalog/templates/new-account.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<div class="container" data-ng-controller="GnLoginController"> | ||
<div class="col-lg-6"> | ||
<div class="panel"> | ||
<div class="panel-heading" data-translate="">needAnAccount</div> | ||
<form class="form-horizontal" id="userinfo" action="create.account" method="post"> | ||
|
||
<div class="form-group"> | ||
<label class="control-label col-lg-4" data-translate="">email</label> | ||
<div class="col-lg-8"> | ||
<input type="email" name="email" autofocus="" class="form-control"/> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="control-label col-lg-4" for="inputName" translate="">name</label> | ||
<div class="col-lg-8"> | ||
<input type="text" class="form-control" id="inputName" name="name"/> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="control-label col-lg-4" for="inputUsername" translate="" | ||
>surname</label> | ||
<div class="col-lg-8"> | ||
<input type="text" class="form-control" id="inputUsername" name="surname"/> | ||
</div> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label class="control-label col-lg-4" data-translate="">organisation</label> | ||
<div class="col-lg-8"> | ||
<!-- TODO : Add org list --> | ||
<input type="text" name="org" class="form-control"/> | ||
</div> | ||
</div> | ||
|
||
|
||
<fieldset> | ||
<legend data-translate="">address</legend> | ||
|
||
|
||
<div class="form-group"> | ||
<label class="control-label col-lg-4" data-translate="">address</label> | ||
<div class="col-lg-8"> | ||
<input type="text" name="address" class="form-control"/> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label col-lg-4" data-translate="">zip</label> | ||
<div class="col-lg-8"> | ||
<input type="text" name="zip" class="form-control"/> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label col-lg-4" data-translate="">state</label> | ||
<div class="col-lg-8"> | ||
<input type="text" name="state" class="form-control"/> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label col-lg-4" data-translate="">city</label> | ||
<div class="col-lg-8"> | ||
<input type="text" name="city" class="form-control"/> | ||
</div> | ||
</div> | ||
<div class="form-group"> | ||
<label class="control-label col-lg-4" data-translate="">country</label> | ||
<div class="col-lg-8"> | ||
<!-- TODO : Add country list --> | ||
<input type="text" name="country" class="form-control"/> | ||
</div> | ||
</div> | ||
</fieldset> | ||
|
||
<div class="form-group"> | ||
<label class="control-label col-lg-4" data-translate="">requestedProfile</label> | ||
<div class="col-lg-8"> | ||
<select name="profile" class="form-control"> | ||
<option data-ng-repeat="p in profiles" value="{{p}}">{{p | | ||
translate}}</option> | ||
</select> | ||
</div> | ||
</div> | ||
</form> | ||
<button data-ng-click="register('#userinfo')" class="btn btn-primary btn-block" | ||
data-translate="">register</button> | ||
|
||
<p | ||
data-ng-show="registrationStatus && registrationStatus['result'] != 'errorEmailAddressAlreadyRegistered'"> | ||
<span data-translate="">contactDetailsSentTo</span> | ||
<strong>{{registrationStatus['@email']}}</strong>. </p> | ||
<p | ||
data-ng-show="registrationStatus && registrationStatus['result'] == 'errorEmailAddressAlreadyRegistered'"> | ||
<span class="text-danger" | ||
data-ng-show="registrationStatus['result'] == 'errorEmailAddressAlreadyRegistered'" | ||
> {{registrationStatus['result'] | translate}} </span> | ||
</p> | ||
</div> | ||
</div> | ||
<div class="col-lg-6"> | ||
<p data-translate="">newAccountInfo</p> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
web/src/main/webapp/xslt/services/account/registration-prof-email.xsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | ||
|
||
<!-- | ||
Create xml containing profile request email details from user/instance details passed | ||
Allows email to be customised without changing java service - info supplied is as follows | ||
<root> | ||
<site>localtrunk</site> | ||
<siteURL>http://127.0.0.1:8122/geonetwork</siteURL> | ||
<request> | ||
<zip>7001</zip> | ||
<address>University of Tasmania, Hobart</address> | ||
<email>craig.jones@utas.edu.au</email> | ||
<name>Craig</name> | ||
<state>Tas</state> | ||
<surname>Jones</surname> | ||
<org>emii</org> | ||
<kind>uni</kind> | ||
<profile>RegisteredUser</profile> | ||
<country>au</country> | ||
</request> | ||
</root> | ||
--> | ||
<xsl:template match="/"> | ||
<email> | ||
<subject>"<xsl:value-of select="/root/request/profile"/>" access for <xsl:value-of select="/root/request/email"/> for <xsl:value-of select="/root/site"/></subject> | ||
<content>Dear Admin, | ||
|
||
Newly registered user <xsl:value-of select="/root/request/email"/> has requested "<xsl:value-of select="/root/request/profile"/>" access for: | ||
|
||
Instance: <xsl:value-of select="/root/site"/> | ||
Url: <xsl:value-of select="/root/siteURL"/> | ||
|
||
User registration details: | ||
|
||
Name: <xsl:value-of select="/root/request/name"/> | ||
Surname: <xsl:value-of select="/root/request/surname"/> | ||
Email: <xsl:value-of select="/root/request/email"/> | ||
Organisation: <xsl:value-of select="/root/request/org"/> | ||
Type: <xsl:value-of select="/root/request/kind"/> | ||
Address: <xsl:value-of select="/root/request/address"/> | ||
State: <xsl:value-of select="/root/request/state"/> | ||
Post Code: <xsl:value-of select="/root/request/zip"/> | ||
Country: <xsl:value-of select="/root/request/country"/> | ||
|
||
Please action. | ||
|
||
<xsl:value-of select="/root/site"/> | ||
</content> | ||
</email> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
Oops, something went wrong.