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"
|
2015-08-07 15:56:47 +02:00
|
|
|
const:jsFiles="Main.js, Common.js"
|
2015-05-06 18:06:14 +02:00
|
|
|
>
|
2015-02-22 22:48:27 +01:00
|
|
|
<!--
|
2015-05-06 18:06:14 +02: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")
|
2015-02-22 22:48:27 +01:00
|
|
|
-->
|
2016-03-08 19:20:34 +01:00
|
|
|
<main class="view layout-padding md-default-theme md-background md-hue-1 md-bg"
|
|
|
|
layout="row" layout-align="center start" layout-fill="layout-fill"
|
2015-12-08 20:11:36 +01:00
|
|
|
ui-view="login"
|
2015-09-15 17:42:47 +02:00
|
|
|
ng-controller="LoginController as app">
|
|
|
|
<md-content class="ng-cloak md-whiteframe-z1"
|
2015-12-09 21:15:22 +01:00
|
|
|
layout-gt-sm="row" layout-align-gt-sm="start center"
|
2015-12-08 20:11:36 +01:00
|
|
|
layout="column" layout-align="space-between center"
|
2015-09-15 17:42:47 +02:00
|
|
|
md-scroll-y="true"
|
|
|
|
ng-show="app.showLogin">
|
|
|
|
<div id="logo" class="md-padding">
|
|
|
|
<img const:alt="*" id="splash" rsrc:src="img/sogo-full.svg"/>
|
|
|
|
</div>
|
2015-12-09 21:15:22 +01:00
|
|
|
<div class="sg-login md-padding md-default-theme md-bg md-accent">
|
2015-05-06 18:06:14 +02:00
|
|
|
<script type="text/javascript">
|
|
|
|
var cookieUsername = '<var:string var:value="cookieUsername" const:escapeHTML="NO"/>';
|
|
|
|
</script>
|
|
|
|
<div id="login">
|
2015-02-06 21:35:51 +01:00
|
|
|
|
2015-05-20 20:46:12 +02:00
|
|
|
<form name="loginForm" layout="column"
|
|
|
|
ng-cloak="ng-cloak"
|
2015-08-07 17:04:04 +02:00
|
|
|
ng-submit="app.login()">
|
2015-05-06 18:06:14 +02:00
|
|
|
<var:if condition="hasLoginSuffix">
|
2015-08-07 17:04:04 +02:00
|
|
|
<input type="hidden" ng-model="app.creds.loginSuffix" var:value="loginSuffix"/>
|
2015-05-06 18:06:14 +02:00
|
|
|
</var:if>
|
2015-12-09 21:15:22 +01:00
|
|
|
<md-input-container class="md-block">
|
|
|
|
<label><var:string label:value="Username"/></label>
|
2015-08-11 02:47:58 +02:00
|
|
|
<md-icon>person</md-icon>
|
2015-12-09 21:15:22 +01:00
|
|
|
<input autocapitalize="off" type="text" ng-model="app.creds.username" ng-required="true"/>
|
2015-05-06 18:06:14 +02:00
|
|
|
</md-input-container>
|
2015-12-09 21:15:22 +01:00
|
|
|
<md-input-container class="md-block">
|
|
|
|
<label><var:string label:value="Password"/></label>
|
2015-08-11 02:47:58 +02:00
|
|
|
<md-icon>email</md-icon>
|
2015-12-09 21:15:22 +01:00
|
|
|
<input type="password" ng-model="app.creds.password" ng-required="true"/>
|
2015-05-06 18:06:14 +02:00
|
|
|
</md-input-container>
|
2015-05-06 22:11:51 +02:00
|
|
|
|
|
|
|
<!-- CONNECT BUTTON -->
|
|
|
|
<div layout="row" layout-align="end center">
|
2015-12-08 20:11:36 +01:00
|
|
|
<md-button class="md-raised md-accent md-hue-2" type="submit" ng-disabled='app.loginForm.$invalid'>
|
2015-09-15 17:42:47 +02:00
|
|
|
<var:string label:value="Connect"/>
|
2015-05-06 22:11:51 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- LANGUAGES SELECT -->
|
2015-05-06 18:06:14 +02:00
|
|
|
<div layout="row" layout-align="start end">
|
2015-08-11 02:47:58 +02:00
|
|
|
<md-icon>language</md-icon>
|
2015-12-18 22:35:30 +01:00
|
|
|
<md-input-container class="md-flex">
|
2015-12-08 20:11:36 +01:00
|
|
|
<label><var:string label:value="choose"/></label>
|
2015-12-18 22:35:30 +01:00
|
|
|
<md-select ng-model="app.creds.language">
|
2015-12-08 20:11:36 +01:00
|
|
|
<var:foreach list="languages" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="languageText"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
2015-07-02 19:20:13 +02:00
|
|
|
</md-select>
|
2015-12-08 20:11:36 +01:00
|
|
|
</md-input-container>
|
2015-05-06 18:06:14 +02:00
|
|
|
</div>
|
2015-02-20 00:49:13 +01:00
|
|
|
|
2015-05-06 22:11:51 +02:00
|
|
|
<!-- DOMAINS SELECT -->
|
2015-05-06 18:06:14 +02:00
|
|
|
<var:if condition="hasLoginDomains">
|
2015-05-06 22:11:51 +02:00
|
|
|
<div layout="row" layout-align="start end">
|
2015-08-11 02:47:58 +02:00
|
|
|
<md-icon>domain</md-icon>
|
2015-12-18 22:35:30 +01:00
|
|
|
<md-input-container class="md-flex">
|
|
|
|
<md-select class="md-flex" ng-model="app.creds.domain" label:placeholder="choose">
|
|
|
|
<var:foreach list="loginDomains" item="item">
|
|
|
|
<md-option var:value="item">
|
|
|
|
<var:string value="item"/>
|
|
|
|
</md-option>
|
|
|
|
</var:foreach>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2015-05-06 22:11:51 +02:00
|
|
|
</div>
|
|
|
|
</var:if>
|
|
|
|
|
|
|
|
<div layout="row" layout-align="center center">
|
2015-08-07 17:04:04 +02:00
|
|
|
<md-switch ng-model="app.creds.rememberLogin" label:arial-label="Remember username">
|
2015-05-06 22:11:51 +02:00
|
|
|
<var:string label:value="Remember username"/>
|
|
|
|
</md-switch>
|
2015-05-06 18:06:14 +02:00
|
|
|
</div>
|
|
|
|
</form>
|
2015-07-04 03:40:37 +02:00
|
|
|
<div layout="row" layout-align="end end" ng-cloak="ng-cloak">
|
2015-09-15 17:42:47 +02:00
|
|
|
<md-button class="md-icon-button"
|
2015-05-20 20:46:12 +02:00
|
|
|
label:aria-label="About"
|
2015-08-07 17:04:04 +02:00
|
|
|
ng-click="app.showAbout()">
|
2015-09-15 17:42:47 +02:00
|
|
|
<md-icon class="md-fg">info</md-icon>
|
2015-05-06 18:06:14 +02:00
|
|
|
</md-button>
|
2015-05-06 22:11:51 +02:00
|
|
|
</div>
|
2015-03-08 22:42:38 +01:00
|
|
|
</div>
|
2015-05-06 18:06:14 +02:00
|
|
|
</div>
|
|
|
|
</md-content>
|
|
|
|
</main>
|
2015-05-20 20:46:12 +02:00
|
|
|
|
|
|
|
<script type="text/ng-template" id="aboutBox.html">
|
2015-12-09 21:15:22 +01:00
|
|
|
<md-dialog flex="50" flex-xs="100">
|
2015-10-14 16:31:15 +02:00
|
|
|
<md-dialog-content class="md-dialog-content">
|
2015-05-20 20:46:12 +02:00
|
|
|
<p><a href="http://sogo.nu/" target="_new">sogo.nu</a></p>
|
|
|
|
<p>Version <var:string value="version"/> (<var:string value="buildDate" />)</p>
|
|
|
|
<br/>
|
|
|
|
<p><var:string label:value="AboutBox" const:escapeHTML="NO"/></p>
|
|
|
|
<!--<img class="full-image" const:alt="Inverse" rsrc:src="img/inverse.png"/>-->
|
|
|
|
</md-dialog-content>
|
2015-11-27 19:00:39 +01:00
|
|
|
<md-dialog-actions>
|
2015-08-07 17:04:04 +02:00
|
|
|
<md-button ng-click="about.closeDialog()"><var:string label:value="Close"/></md-button>
|
2015-11-27 19:00:39 +01:00
|
|
|
</md-dialog-actions>
|
2015-05-20 20:46:12 +02:00
|
|
|
</md-dialog>
|
|
|
|
</script>
|
|
|
|
|
2007-09-07 17:38:03 +02:00
|
|
|
</var:component>
|