123 lines
2.7 KiB
XML
Executable File
123 lines
2.7 KiB
XML
Executable File
<vn>
|
|
<vn-group>
|
|
<db-form id="password-form">
|
|
<db-model property="model">
|
|
<custom>
|
|
SELECT length, nAlpha, nUpper, nDigits, nPunct
|
|
FROM account.userPassword
|
|
</custom>
|
|
</db-model>
|
|
</db-form>
|
|
<db-form id="user">
|
|
<db-model property="model" id="user-model" updatable="true">
|
|
<custom>
|
|
SELECT u.id, u.name, u.recoverPass,
|
|
c.email, c.mail, c.user_id
|
|
FROM account.userView u
|
|
LEFT JOIN customer_view c
|
|
ON u.id = c.user_id
|
|
</custom>
|
|
</db-model>
|
|
</db-form>
|
|
<db-model id="addresses" updatable="true">
|
|
<custom>
|
|
SELECT a.id, a.consignee, p.name province,
|
|
a.zip_code, a.city, a.name, a.active, c.Pais country
|
|
FROM address_view a
|
|
LEFT JOIN vn2008.province p ON a.province_id = p.province_id
|
|
JOIN vn2008.Paises c ON c.Id = p.Paises_Id
|
|
WHERE active
|
|
</custom>
|
|
</db-model>
|
|
</vn-group>
|
|
<h1 id="title">
|
|
<t>Configuration</t>
|
|
</h1>
|
|
<div id="actions">
|
|
<htk-bar-button
|
|
icon="place"
|
|
tip="_Addresses"
|
|
on-click="onAddressesClick"/>
|
|
<htk-bar-button
|
|
icon="preferences"
|
|
tip="_Change password"
|
|
on-click="onPassChangeClick"/>
|
|
</div>
|
|
<div id="main" class="conf">
|
|
<div class="card form">
|
|
<div>
|
|
<label for="user-name"><t>Username</t></label>
|
|
<htk-text lot="user" name="name"/>
|
|
</div>
|
|
<div>
|
|
<label for="email"><t>Email</t></label>
|
|
<htk-entry lot="user" name="email"></htk-entry>
|
|
</div>
|
|
<div>
|
|
<label for="mail"><t>Receive invoices by email</t></label>
|
|
<htk-check lot="user" name="mail"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<htk-popup
|
|
id="change-password"
|
|
modal="true">
|
|
<div property="child-node" class="htk-dialog pass-change">
|
|
<div>
|
|
<input
|
|
id="old-password"
|
|
type="password"
|
|
placeholder="_Old password"/>
|
|
<input
|
|
id="new-password"
|
|
type="password"
|
|
placeholder="_New password"/>
|
|
<input
|
|
id="repeat-password"
|
|
type="password"
|
|
placeholder="_Repeat password"/>
|
|
</div>
|
|
<div class="button-bar">
|
|
<button class="thin" on-click="onPassModifyClick">
|
|
<t>Modify</t>
|
|
</button>
|
|
<button class="thin" on-click="onPassInfoClick">
|
|
<t>Info</t>
|
|
</button>
|
|
<div class="clear"/>
|
|
</div>
|
|
</div>
|
|
</htk-popup>
|
|
<htk-popup
|
|
id="password-info"
|
|
modal="true">
|
|
<div property="child-node" class="htk-dialog pass-info">
|
|
<h3>
|
|
<t>Password requirements</t>
|
|
</h3>
|
|
<ul>
|
|
<li>
|
|
<htk-text lot="password-form" name="length"/>
|
|
<t>characters long</t>
|
|
</li>
|
|
<li>
|
|
<htk-text lot="password-form" name="nAlpha"/>
|
|
<t>alphabetic characters</t>
|
|
</li>
|
|
<li>
|
|
<htk-text lot="password-form" name="nUpper"/>
|
|
<t>capital letters</t>
|
|
</li>
|
|
<li>
|
|
<htk-text lot="password-form" name="nDigits"/>
|
|
<t>digits</t>
|
|
</li>
|
|
<li>
|
|
<htk-text lot="password-form" name="nPunct"/>
|
|
<t>symbols</t>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</htk-popup>
|
|
</vn>
|