hive.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <div id="hive">
  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="{{ script_path.name }}" data-content="{{ script_path.popover }}" data-bind="attr: {'class': ( errors.script_path().length > 0 ) ? 'control-group error' : 'control-group'}">
  32. <label class="control-label">{{ script_path.name }}</label>
  33. <div class="controls">
  34. <input id="hive-script-path" type="text" class="pathFileChooserKo" name="script-path" data-bind="fileChooser: $data, value: script_path" />
  35. <ul class="help-inline" data-bind="foreach: errors.script_path()">
  36. <li class="error" data-bind="html: $data"></li>
  37. </ul>
  38. </div>
  39. </div>
  40. {{#prepares}}
  41. {{>prepares}}
  42. {{/prepares}}
  43. {{#params}}
  44. {{>params}}
  45. {{/params}}
  46. {{#job_properties}}
  47. {{>job_properties}}
  48. {{/job_properties}}
  49. {{#files}}
  50. {{>files}}
  51. {{/files}}
  52. {{#archives}}
  53. {{>archives}}
  54. {{/archives}}
  55. </fieldset>
  56. <div class="form-actions">
  57. <button data-bind="click: {{ save.func }}" class="btn btn-primary">{{ save.name }}</button>
  58. <a href="hivescript:void(0);" data-bind="click: {{ cancel.func }}" class="btn">{{ cancel.name }}</a>
  59. </div>
  60. </form>
  61. </div>