2007-09-04 17:00:44 +02:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
2007-09-07 17:38:03 +02:00
|
|
|
<!DOCTYPE var:component>
|
|
|
|
<var:component
|
2015-02-06 21:35:51 +01:00
|
|
|
className="UIxPageFrame"
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
|
|
|
xmlns:rsrc="OGo:url"
|
|
|
|
xmlns:label="OGo:label"
|
|
|
|
const:jsFiles="Common/SOGoAuthentication.js"
|
|
|
|
const:popup="YES"
|
|
|
|
><var:string var:value="doctype" const:escapeHTML="NO"/>
|
2015-02-22 22:48:27 +01:00
|
|
|
<!--
|
|
|
|
MAIN CONTENT ROW
|
|
|
|
Content of the application view injected injected in the element bellow
|
|
|
|
MUST be the first html element after body
|
|
|
|
SHOULD be a main tag (with role="main")
|
|
|
|
-->
|
|
|
|
<main class="view md-layout-fill md-layout-padding" ui-view="login" layout="row" layout-align="center start">
|
|
|
|
<md-content class="md-padding" md-scroll-y="true">
|
2015-02-13 15:14:10 +01:00
|
|
|
<div data-ng-controller="loginController">
|
2015-02-13 20:30:24 +01:00
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var cookieUsername = '<var:string var:value="cookieUsername" const:escapeHTML="NO"/>';
|
|
|
|
</script>
|
2015-02-13 15:14:10 +01:00
|
|
|
<!-- <div id="aboutBox" style="display:none;">
|
2015-02-06 21:35:51 +01:00
|
|
|
<div>
|
|
|
|
<p class="logo"><img const:alt="SOGo" rsrc:src="img/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="img/inverse.png"/>
|
|
|
|
<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">
|
2009-11-04 23:13:20 +01:00
|
|
|
<span><var:string label:value="OK" /></span></a></p>
|
2015-02-06 21:35:51 +01:00
|
|
|
</div>
|
2015-02-13 15:14:10 +01:00
|
|
|
</div> -->
|
|
|
|
<!-- <nav class="top-bar">
|
2015-02-06 21:35:51 +01:00
|
|
|
<section class="top-bar-section">
|
|
|
|
<ul class="right">
|
|
|
|
<li><a href="#"><var:string label:value="About" /></a></li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
2015-02-13 15:14:10 +01:00
|
|
|
</nav> -->
|
2015-02-06 21:35:51 +01:00
|
|
|
<div id="login">
|
|
|
|
<div id="logo">
|
2015-02-22 22:48:27 +01:00
|
|
|
<img const:alt="*" id="splash" rsrc:src="img/sogo-full.svg"/>
|
2015-02-06 21:35:51 +01:00
|
|
|
</div>
|
2015-02-22 22:48:27 +01:00
|
|
|
<form name="loginForm" layout="column" data-ng-controller="loginController" data-ng-submit="login(creds)">
|
2015-02-06 21:35:51 +01:00
|
|
|
<var:if condition="hasLoginSuffix"><input type="hidden" data-ng-model="creds.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>
|
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="Username:"/>
|
|
|
|
</label>
|
2015-02-13 20:30:24 +01:00
|
|
|
<input type="text" data-ng-model="creds.username" required="required" />
|
2015-02-06 21:35:51 +01:00
|
|
|
</md-input-container>
|
|
|
|
<md-input-container>
|
|
|
|
<label><var:string label:value="Password:"/>
|
|
|
|
</label>
|
|
|
|
<input type="password" data-ng-model="creds.password" required="required" />
|
|
|
|
</md-input-container>
|
|
|
|
|
2014-06-19 21:52:57 +02:00
|
|
|
<label><var:string label:value="Language:"/>
|
2015-02-20 00:49:13 +01:00
|
|
|
|
|
|
|
<md-select ng-model="creds.language" label:placeholder="choose">
|
|
|
|
<var:foreach list="languages" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="languageText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
|
2014-06-19 21:52:57 +02:00
|
|
|
</label>
|
2015-02-06 21:35:51 +01:00
|
|
|
<var:if condition="hasLoginDomains">
|
2014-06-19 21:52:57 +02:00
|
|
|
<label><var:string label:value="Domain:"/><br/>
|
|
|
|
<var:popup const:name="domain"
|
2014-08-06 21:26:52 +02:00
|
|
|
const:data-ng-model="creds.domain"
|
2014-06-19 21:52:57 +02:00
|
|
|
list="loginDomains"
|
|
|
|
item="item"
|
|
|
|
var:selection="item"
|
|
|
|
var:value="item"
|
|
|
|
string="item"
|
|
|
|
/>
|
|
|
|
</label>
|
2015-02-06 21:35:51 +01:00
|
|
|
</var:if>
|
2015-02-13 15:14:10 +01:00
|
|
|
<!--
|
2015-02-06 21:35:51 +01:00
|
|
|
<md-checkbox data-ng-model="creds.rememberLogin">
|
|
|
|
<label><var:string label:value="Remember username"/></label>
|
2015-02-13 15:14:10 +01:00
|
|
|
</md-checkbox> -->
|
|
|
|
<!-- <label> -->
|
|
|
|
<md-button type="submit" class="md-raised md-primary" data-ng-disabled='!loginForm.$valid'>
|
2015-02-06 21:35:51 +01:00
|
|
|
<var:string label:value="Connect" /></md-button>
|
2015-02-13 15:14:10 +01:00
|
|
|
<!-- </label> -->
|
|
|
|
<md-switch data-ng-model="creds.rememberLogin">
|
|
|
|
<var:string label:value="Remember username"/>
|
|
|
|
</md-switch>
|
2015-02-06 21:35:51 +01:00
|
|
|
<label id="animation"><!-- busy.gif! --></label>
|
|
|
|
</form>
|
2015-02-13 15:14:10 +01:00
|
|
|
<md-toolbar>
|
|
|
|
<md-button ng-click="showAbout()">
|
|
|
|
About
|
|
|
|
</md-button>
|
|
|
|
</md-toolbar>
|
2015-02-06 21:35:51 +01:00
|
|
|
</div>
|
2014-06-19 21:52:57 +02:00
|
|
|
</div>
|
2015-02-06 21:35:51 +01:00
|
|
|
</md-content>
|
2015-02-22 22:48:27 +01:00
|
|
|
</main>
|
2007-09-07 17:38:03 +02:00
|
|
|
</var:component>
|