configuration.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. 'use strict';
  2. 'require view';
  3. 'require form';
  4. return view.extend({
  5. render: function () {
  6. let m, s, o;
  7. m = new form.Map(
  8. 'attendedsysupgrade',
  9. _('Attended Sysupgrade'),
  10. _('Attendedsysupgrade Configuration.')
  11. );
  12. s = m.section(form.TypedSection, 'server', _('Server'));
  13. s.anonymous = true;
  14. s.option(
  15. form.Value,
  16. 'url',
  17. _('Address'),
  18. _('Address of the sysupgrade server')
  19. );
  20. s.option(
  21. form.DynamicList,
  22. 'rebuilder',
  23. _('Rebuilders'),
  24. _(
  25. 'Other ASU server instances that rebuild a requested image. ' +
  26. 'Allows to compare checksums and verify that the results are the same.'
  27. )
  28. );
  29. s = m.section(form.TypedSection, 'client', _('Client'));
  30. s.anonymous = true;
  31. o = s.option(
  32. form.Flag,
  33. 'auto_search',
  34. _('Search on opening'),
  35. _('Search for new sysupgrades on opening the tab')
  36. );
  37. o.default = '1';
  38. o.rmempty = false;
  39. o = s.option(
  40. form.Flag,
  41. 'advanced_mode',
  42. _('Advanced Mode'),
  43. _('Show advanced options like package list modification')
  44. );
  45. o.default = '0';
  46. o.rmempty = false;
  47. return m.render();
  48. },
  49. });