login.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. define([
  2. '/common/hyperscript.js',
  3. '/common/common-interface.js',
  4. '/customize/messages.js',
  5. '/customize/pages.js'
  6. ], function (h, UI, Msg, Pages) {
  7. return function () {
  8. return [h('div#cp-main', [
  9. Pages.infopageTopbar(),
  10. h('div.container.cp-container', [
  11. h('div.row.align-items-center', [
  12. h('div#data.hidden.col-md-6', Pages.setHTML(h('p.left'), Msg.main_info)),
  13. h('div#userForm.form-group.hidden.col-md-6', [
  14. h('input.form-control#name', {
  15. name: 'name',
  16. type: 'text',
  17. autocomplete: 'off',
  18. autocorrect: 'off',
  19. autocapitalize: 'off',
  20. spellcheck: false,
  21. placeholder: Msg.login_username,
  22. autofocus: true,
  23. }),
  24. h('input.form-control#password', {
  25. type: 'password',
  26. 'name': 'password',
  27. placeholder: Msg.login_password,
  28. }),
  29. h('div.checkbox-container', [
  30. UI.createCheckbox('import-recent', Msg.register_importRecent),
  31. ]),
  32. h('div.extra', [
  33. h('button.login.first.btn', Msg.login_login),
  34. h('button#register.first.btn', Msg.login_register)
  35. ])
  36. ])
  37. ]),
  38. ]),
  39. Pages.infopageFooter(),
  40. ])];
  41. };
  42. });