url.js 662 B

123456789101112131415161718192021222324252627282930
  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('keepalived');
  8. s = m.section(form.GridSection, 'url', _('URLs'),
  9. _('URLs can be referenced into Real Servers to test'));
  10. s.anonymous = true;
  11. s.addremove = true;
  12. s.nodescriptions = true;
  13. o = s.option(form.Value, 'name', _('Name'));
  14. o.optional = false;
  15. o = s.option(form.Value, 'path', _('URL Path'),
  16. _('URL path, i.e path /, or path /mrtg2/'));
  17. o.optional = false;
  18. o = s.option(form.Value, 'digest', _('Digest'),
  19. _('Digest computed with genhash'));
  20. o.datatype = 'length(32)';
  21. return m.render();
  22. }
  23. });