2014-01-09 15:11:40 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- vim:fdn=3:
|
|
|
|
-->
|
|
|
|
<openerp>
|
|
|
|
<data>
|
|
|
|
|
|
|
|
<template id="web.layout" name="Web layout"><!DOCTYPE html>
|
|
|
|
<html style="height: 100%">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
|
|
<title>OpenERP</title>
|
|
|
|
<link rel="shortcut icon" href="/web/static/src/img/favicon.ico" type="image/x-icon"/>
|
|
|
|
<link rel="stylesheet" href="/web/static/src/css/full.css" />
|
|
|
|
<t t-raw="head or ''"/>
|
|
|
|
</head>
|
2014-01-16 10:15:54 +00:00
|
|
|
<body t-att-class="body_classname">
|
2014-01-09 15:11:40 +00:00
|
|
|
<t t-raw="0"/>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="web.webclient_bootstrap" name="Webclient Bootstrap">
|
|
|
|
<t t-call="web.layout">
|
|
|
|
<t t-set="head">
|
2014-01-16 18:16:56 +00:00
|
|
|
<t t-foreach="css" t-as="css_file">
|
|
|
|
<link rel="stylesheet" t-att-href="css_file"/>
|
|
|
|
</t>
|
|
|
|
<t t-foreach="js" t-as="js_file">
|
|
|
|
<script type="text/javascript" t-att-src="js_file"></script>
|
|
|
|
</t>
|
2014-01-09 15:11:40 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
var s = new openerp.init(<t t-raw="modules"/>);
|
|
|
|
<t t-if="init">
|
|
|
|
<t t-raw="init"/>
|
|
|
|
</t>
|
|
|
|
<t t-if="not init">
|
|
|
|
var wc = new s.web.WebClient();
|
|
|
|
wc.appendTo($(document.body));
|
|
|
|
</t>
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
2014-01-16 18:16:56 +00:00
|
|
|
<template id="web.login_layout" name="Login Layout">
|
2014-01-09 15:11:40 +00:00
|
|
|
<t t-call="web.layout">
|
2014-01-16 18:16:56 +00:00
|
|
|
<t t-set="body_classname" t-value="'oe_single_form'"/>
|
|
|
|
<div class="oe_single_form_container modal-content">
|
|
|
|
<div class="oe_single_form_logo">
|
2014-01-22 10:26:46 +00:00
|
|
|
<img src="/web/binary/company_logo"/>
|
2014-01-16 18:16:56 +00:00
|
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<t t-raw="0"/>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="web.login" name="Login">
|
|
|
|
<t t-call="web.login_layout">
|
2014-01-14 11:17:07 +00:00
|
|
|
<t t-set="head">
|
2014-01-16 18:16:56 +00:00
|
|
|
<t t-foreach="css" t-as="css_file">
|
|
|
|
<link rel="stylesheet" t-att-href="css_file"/>
|
|
|
|
</t>
|
|
|
|
<t t-foreach="js" t-as="js_file">
|
|
|
|
<script type="text/javascript" t-att-src="js_file"></script>
|
|
|
|
</t>
|
2014-01-14 11:17:07 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
2014-01-21 15:17:47 +00:00
|
|
|
var s = new openerp.init(<t t-raw="modules"/>);
|
2014-01-14 11:17:07 +00:00
|
|
|
var login_form = new openerp.web.LoginForm($('.oe_login_form'));
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</t>
|
2014-01-14 13:44:27 +00:00
|
|
|
|
2014-01-16 18:16:56 +00:00
|
|
|
<form class="oe_login_form" role="form" t-attf-action="/web/login{{ '?debug' if debug else '' }}" method="post">
|
|
|
|
<div class="form-group field-login">
|
|
|
|
<label for="login" class="control-label">Login</label>
|
|
|
|
<input type="text" name="login" t-att-value="login" id="login" class="form-control" placeholder="Enter login" required="required" autofocus="autofocus"/>
|
|
|
|
</div>
|
2014-01-14 13:44:27 +00:00
|
|
|
|
2014-01-16 18:16:56 +00:00
|
|
|
<div class="form-group field-password">
|
|
|
|
<label for="password" class="control-label">Password</label>
|
|
|
|
<input type="password" name="password" id="password" class="form-control" placeholder="Password" required="required"/>
|
|
|
|
</div>
|
2014-01-14 13:44:27 +00:00
|
|
|
|
2014-01-21 09:32:24 +00:00
|
|
|
<p class="alert alert-danger" t-if="error">
|
|
|
|
<t t-esc="error"/>
|
|
|
|
</p>
|
2014-01-21 15:17:47 +00:00
|
|
|
<p class="alert alert-success" t-if="message">
|
|
|
|
<t t-esc="message"/>
|
|
|
|
</p>
|
2014-01-14 13:44:27 +00:00
|
|
|
|
2014-01-16 18:16:56 +00:00
|
|
|
<input type="hidden" name="redirect" t-att-value="redirect"/>
|
|
|
|
<div class="clearfix oe_login_buttons">
|
2014-01-22 19:23:42 +00:00
|
|
|
<button type="submit" class="btn btn-primary">Log in</button>
|
2014-01-16 18:16:56 +00:00
|
|
|
</div>
|
2014-01-14 14:52:10 +00:00
|
|
|
|
2014-01-16 18:16:56 +00:00
|
|
|
</form>
|
|
|
|
<div class="oe_single_form_footer" t-if="not disable_footer">
|
|
|
|
<t t-if="not disable_database_manager">
|
|
|
|
<a class="oe_login_manage_db" t-attf-href="/web/database/manager{{ '?debug' if debug else '' }}">Manage Databases</a>
|
|
|
|
<span class="oe_footer_seperator"> | </span>
|
|
|
|
</t>
|
|
|
|
<a href="http://www.openerp.com" target="_blank">Powered by <span>OpenERP</span></a>
|
2014-01-09 15:11:40 +00:00
|
|
|
</div>
|
2014-01-16 18:16:56 +00:00
|
|
|
|
2014-01-09 15:11:40 +00:00
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</openerp>
|