java.html 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <div id="java">
  2. <h1 class="card-heading card-heading-blue simple card-marginbottom">{{ 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. </div>
  31. <div class="control-group" rel="popover" data-original-title="{{ jar_path.name }}" data-content="{{ jar_path.popover }}" data-bind="attr: {'class': ( errors.jar_path().length > 0 ) ? 'control-group error' : 'control-group'}">
  32. <label class="control-label">{{ jar_path.name }}</label>
  33. <div class="controls">
  34. <input id="java-jar-path" type="text" name="jar-path" data-bind="value: jar_path" />
  35. <ul class="help-inline" data-bind="foreach: errors.jar_path()">
  36. <li class="error" data-bind="html: $data"></li>
  37. </ul>
  38. </div>
  39. </div>
  40. <div class="control-group" rel="popover" data-original-title="Main class" data-bind="attr: {'class': ( errors.main_class().length > 0 ) ? 'control-group error' : 'control-group'}">
  41. <label class="control-label">Main class</label>
  42. <div class="controls">
  43. <input id="java-main-class" type="text" name="main-class" maxlength="256" data-bind="value: main_class" />
  44. <ul class="help-inline" data-bind="foreach: errors.main_class()">
  45. <li class="error" data-bind="html: $data"></li>
  46. </ul>
  47. </div>
  48. </div>
  49. <div class="control-group" rel="popover" data-original-title="Args" data-bind="attr: {'class': ( errors.args().length > 0 ) ? 'control-group error' : 'control-group'}">
  50. <label class="control-label">Args</label>
  51. <div class="controls">
  52. <input id="java-args" type="text" name="args" maxlength="4096" data-bind="value: args" />
  53. <ul class="help-inline" data-bind="foreach: errors.args()">
  54. <li class="error" data-bind="html: $data"></li>
  55. </ul>
  56. </div>
  57. </div>
  58. <div class="control-group" rel="popover" data-original-title="Java opts" data-bind="attr: {'class': ( errors.java_opts().length > 0 ) ? 'control-group error' : 'control-group'}">
  59. <label class="control-label">Java opts</label>
  60. <div class="controls">
  61. <input id="java-java-opts" type="text" name="java-opts" maxlength="256" data-bind="value: java_opts" />
  62. <ul class="help-inline" data-bind="foreach: errors.java_opts()">
  63. <li class="error" data-bind="html: $data"></li>
  64. </ul>
  65. </div>
  66. </div>
  67. {{#job_properties}}
  68. {{>job_properties}}
  69. {{/job_properties}}
  70. {{#files}}
  71. {{>files}}
  72. {{/files}}
  73. {{#archives}}
  74. {{>archives}}
  75. {{/archives}}
  76. </fieldset>
  77. <div class="form-actions">
  78. <button data-bind="click: {{ save.func }}" class="btn btn-primary">{{ save.name }}</button>
  79. <a href="javascript:void(0);" data-bind="click: {{ cancel.func }}" class="btn">{{ cancel.name }}</a>
  80. </div>
  81. </form>
  82. </div>