AngularJS-based templates

This commit is contained in:
Francis Lachapelle committed 2015-06-11 15:25:22 -04:00
1 parent 0a49031b01
commit 6970acfaa4
4 files changed
+718 -723

No files matched your search

+52 -53
View File
@@ -7,70 +7,69 @@
xmlns:const="http://www.skyrix.com/od/constant"
xmlns:rsrc="OGo:url"
xmlns:label="OGo:label"
const:jsFiles="PasswordPolicy.js"
const:jsFiles="SOGo/SOGoAuthentication.js"
const:popup="YES"
><var:string var:value="doctype" const:escapeHTML="NO"/>
<div data-ng-app="SOGoRootPage">
<div id="aboutBox" style="display:none;">
<div>
<p class="logo"><img const:alt="SOGo" rsrc:src="sogo-logo.png"/></p>
<p>Version <var:string value="version"/> <span class="buildDate">(<var:string value="buildDate" />)</span></p>
<p class="scroll"><var:string label:value="AboutBox" const:escapeHTML="NO"/></p>
<img const:alt="Inverse" rsrc:src="inverse.png"/>
<p class="links"><a href="http://www.sogo.nu/" target="_new">www.sogo.nu</a> /
<a href="http://www.inverse.ca/" target="_new">www.inverse.ca</a></p>
<p class="links"><a href="http://sogo.nu/" target="_new">sogo.nu</a> /
<a href="http://inverse.ca/" target="_new">inverse.ca</a></p>
<p><a id="aboutClose" href="#" class="button">
<span><var:string label:value="OK" /></span></a></p>
</div>
</div>
<div id="linkBanner" class="linkbanner">
<a id="about" href="#"><var:string label:value="About" /></a>
</div>
<form id="connectForm" var:href="connectURL">
<div id="loginScreen">
<var:if condition="hasLoginSuffix"><script
type="text/javascript">var loginSuffix = '<var:string value="loginSuffix"/>';</script
></var:if>
<table width="560">
<tr>
<td>
<img const:alt="*" id="splash" rsrc:src="sogo-logo.png"/>
</td>
<td id="loginCell" width="230">
<label><var:string label:value="Username:"/><br/>
<input class="textField" id="userName" name="userName"
type="text" var:value="cookieUsername" /></label>
<label><var:string label:value="Password:"/><br/>
<input class="textField" id="password"
name="password" type="password" var:value="password" /></label>
<label><var:string label:value="Language:"/><br/>
<var:popup const:id="language" const:name="language"
list="languages"
item="item"
var:value="item"
string="languageText"
label:noSelectionString="choose"
/></label>
<var:if condition="hasLoginDomains">
<label><var:string label:value="Domain:"/><br/>
<var:popup const:id="domain" const:name="domain"
list="loginDomains"
item="item"
var:selection="item"
var:value="item"
string="item"
/></label>
</var:if>
<label><input id="rememberLogin" type="checkbox" class="checkBox" var:checked="rememberLogin"/> <var:string label:value="Remember username"/></label>
<label>
<a href="#" class="button" id="submit" name="submit">
<span><var:string label:value="Connect" /></span></a>
</label>
</td>
</tr>
<tr><td colspan="2"><label id="animation"><!-- busy.gif! --></label></td></tr>
</table>
<p id="errorMessage"><!-- space --></p>
<nav class="top-bar">
<section class="top-bar-section">
<ul class="right">
<li><a href="#"><var:string label:value="About" /></a></li>
</ul>
</section>
</nav>
<div id="login">
<div id="logo">
<img const:alt="*" id="splash" rsrc:src="img/sogo-logo.png"/>
</div>
</form
><img const:alt="*" id="preparedAnimation" rsrc:src="busy.gif"/>
<form name="loginForm" data-ng-controller="loginController" data-ng-submit="login($event)">
<var:if condition="hasLoginSuffix"><input type="hidden" data-ng-model="loginSuffix" var:value="loginSuffix"/></var:if>
<div data-ng-show="warning" data-ng-cloak="ng-cloak" data-alert="data-alert" class="alert-box radius warning">{{warning}}</div>
<label><var:string label:value="Username:"/>
<input type="text" data-ng-model="username" var:data-ng-init="cookieUsername" required="required" />
</label>
<label><var:string label:value="Password:"/>
<input type="password" data-ng-model="password" required="required" />
</label>
<label><var:string label:value="Language:"/>
<var:popup const:name="language"
list="languages"
item="item"
var:value="item"
string="languageText"
label:noSelectionString="choose"
/>
</label>
<var:if condition="hasLoginDomains">
<label><var:string label:value="Domain:"/><br/>
<var:popup const:name="domain"
list="loginDomains"
item="item"
var:selection="item"
var:value="item"
string="item"
/>
</label>
</var:if>
<label><input id="rememberLogin" type="checkbox" class="checkBox" var:checked="rememberLogin"/> <var:string label:value="Remember username"/></label>
<label>
<button type="submit" class="small" data-ng-disabled='!loginForm.$valid'>
<var:string label:value="Connect" /></button>
</label>
<label id="animation"><!-- busy.gif! --></label>
</form>
</div>
</div>
</var:component>