email.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <div id="java" 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-info">{{{ smtp_alert }}}</p>
  31. </div>
  32. <div class="control-group" rel="popover" data-original-title="{{ to.name }}" data-content="{{ to.popover }}" data-bind="attr: {'class': ( errors.to().length > 0 ) ? 'control-group error' : 'control-group'}">
  33. <label class="control-label">{{ to.name }}</label>
  34. <div class="controls">
  35. <input id="email-to" type="text" name="to" data-bind="value: to" />
  36. <ul class="help-inline" data-bind="foreach: errors.to()">
  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="{{ cc.name }}" data-content="{{ cc.popover }}" data-bind="attr: {'class': ( errors.cc().length > 0 ) ? 'control-group error' : 'control-group'}">
  42. <label class="control-label">{{ cc.name }}</label>
  43. <div class="controls">
  44. <input id="email-cc" type="text" name="cc" data-bind="value: cc" />
  45. <ul class="help-inline" data-bind="foreach: errors.cc()">
  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="{{ subject.name }}" data-content="{{ subject.popover }}" data-bind="attr: {'class': ( errors.subject().length > 0 ) ? 'control-group error' : 'control-group'}">
  51. <label class="control-label">{{ subject.name }}</label>
  52. <div class="controls">
  53. <input id="email-subject" type="text" name="subject" data-bind="value: subject" />
  54. <ul class="help-inline" data-bind="foreach: errors.subject()">
  55. <li class="error" data-bind="html: $data"></li>
  56. </ul>
  57. </div>
  58. </div>
  59. <div class="control-group" rel="popover" data-original-title="{{ body.name }}" data-content="{{ body.popover }}" data-bind="attr: {'class': ( errors.body().length > 0 ) ? 'control-group error' : 'control-group'}">
  60. <label class="control-label">{{ body.name }}</label>
  61. <div class="controls">
  62. <textarea id="email-body" type="text" name="body" data-bind="value: body"></textarea>
  63. <ul class="help-inline" data-bind="foreach: errors.body()">
  64. <li class="error" data-bind="html: $data"></li>
  65. </ul>
  66. </div>
  67. </div>
  68. </fieldset>
  69. <div class="form-actions">
  70. <button data-bind="click: {{ save.func }}" class="btn btn-primary">{{ save.name }}</button>
  71. <a href="javascript:void(0);" data-bind="click: {{ cancel.func }}" class="btn">{{ cancel.name }}</a>
  72. </div>
  73. </form>
  74. </div>