ssh.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <div id="mapreduce" class="container-fluid">
  2. <h1>{{ title }}</h1>
  3. <form class="form-horizontal" id="workflowForm" action="#list-designs" method="POST">
  4. <fieldset>
  5. {{#name}}
  6. {{>name}}
  7. {{/name}}
  8. {{#description}}
  9. {{>description}}
  10. {{/description}}
  11. <div class="control-group ">
  12. <label class="control-label">
  13. <a href="javascript:void(0);" onclick="$('div.advanced').toggle('hide')" class="advanced">
  14. <i class="icon-share-alt"></i>
  15. advanced
  16. </a>
  17. </label>
  18. </div>
  19. <div class="advanced hide">
  20. {{#is_shared}}
  21. {{>is_shared}}
  22. {{/is_shared}}
  23. {{#parameters}}
  24. {{>parameters}}
  25. {{/parameters}}
  26. </div>
  27. <hr/>
  28. <div class="control-group">
  29. <p class="alert alert-info">{{{ alert }}}</p>
  30. <p class="alert alert-warn">{{{ ssh_alert }}}</p>
  31. </div>
  32. <div class="control-group" rel="popover" data-original-title="{{ user.name }}" data-content="{{ user.popover }}" data-bind="attr: {'class': ( errors.user().length > 0 ) ? 'control-group error' : 'control-group'}">
  33. <label class="control-label">{{ user.name }}</label>
  34. <div class="controls">
  35. <input id="ssh-user" type="text" name="user" data-bind="value: user" />
  36. <ul class="help-inline" data-bind="foreach: errors.user()">
  37. <li class="error" data-bind="html: $data"></li>
  38. </ul>
  39. </div>
  40. </div>
  41. <div class="control-group" rel="popover" data-original-title="{{ host.name }}" data-content="{{ host.popover }}" data-bind="attr: {'class': ( errors.host().length > 0 ) ? 'control-group error' : 'control-group'}">
  42. <label class="control-label">{{ host.name }}</label>
  43. <div class="controls">
  44. <input id="ssh-host" type="text" name="host" data-bind="value: host" />
  45. <ul class="help-inline" data-bind="foreach: errors.host()">
  46. <li class="error" data-bind="html: $data"></li>
  47. </ul>
  48. </div>
  49. </div>
  50. <div class="control-group" rel="popover" data-original-title="{{ command.name }}" data-content="{{ command.popover }}" data-bind="attr: {'class': ( errors.command().length > 0 ) ? 'control-group error' : 'control-group'}">
  51. <label class="control-label">{{ command.name }}</label>
  52. <div class="controls">
  53. <input id="ssh-command" type="text" name="command" data-bind="value: command" />
  54. <ul class="help-inline" data-bind="foreach: errors.command()">
  55. <li class="error" data-bind="html: $data"></li>
  56. </ul>
  57. </div>
  58. </div>
  59. {{#params}}
  60. {{>params}}
  61. {{/params}}
  62. {{#capture_output}}
  63. {{>capture_output}}
  64. {{/capture_output}}
  65. </fieldset>
  66. <div class="form-actions">
  67. <button data-bind="click: {{ save.func }}" class="btn btn-primary">{{ save.name }}</button>
  68. <a href="javascript:void(0);" data-bind="click: {{ cancel.func }}" class="btn">{{ cancel.name }}</a>
  69. </div>
  70. </form>
  71. </div>