Move static pages content in their own file
This commit is contained in:
42
customize.dist/pages/login.js
Normal file
42
customize.dist/pages/login.js
Normal file
@@ -0,0 +1,42 @@
|
||||
define([
|
||||
'/common/hyperscript.js',
|
||||
'/common/common-interface.js',
|
||||
'/customize/messages.js',
|
||||
'/customize/pages.js'
|
||||
], function (h, UI, Msg, Pages) {
|
||||
return function () {
|
||||
return [h('div#cp-main', [
|
||||
Pages.infopageTopbar(),
|
||||
h('div.container.cp-container', [
|
||||
h('div.row.align-items-center', [
|
||||
h('div#data.hidden.col-md-6', Pages.setHTML(h('p.left'), Msg.main_info)),
|
||||
h('div#userForm.form-group.hidden.col-md-6', [
|
||||
h('input.form-control#name', {
|
||||
name: 'name',
|
||||
type: 'text',
|
||||
autocomplete: 'off',
|
||||
autocorrect: 'off',
|
||||
autocapitalize: 'off',
|
||||
spellcheck: false,
|
||||
placeholder: Msg.login_username,
|
||||
autofocus: true,
|
||||
}),
|
||||
h('input.form-control#password', {
|
||||
type: 'password',
|
||||
'name': 'password',
|
||||
placeholder: Msg.login_password,
|
||||
}),
|
||||
h('div.checkbox-container', [
|
||||
UI.createCheckbox('import-recent', Msg.register_importRecent),
|
||||
]),
|
||||
h('div.extra', [
|
||||
h('button.login.first.btn', Msg.login_login)
|
||||
])
|
||||
])
|
||||
]),
|
||||
]),
|
||||
Pages.infopageFooter(),
|
||||
])];
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user