email.html 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. <div class="control-group" rel="popover" data-original-title="{{ name.name }}" data-content="{{ name.popover }}" data-bind="attr: {'class': ( errors.name().length > 0 ) ? 'control-group error' : 'control-group'}">
  6. <label class="control-label">{{ name.name }}</label>
  7. <div class="controls">
  8. <input id="email-name" type="text" name="name" data-bind="value: name" />
  9. <ul class="help-inline" data-bind="foreach: errors.name()">
  10. <li class="error" data-bind="html: $data"></li>
  11. </ul>
  12. </div>
  13. </div>
  14. <div class="control-group" rel="popover" data-original-title="{{ description.name }}" data-content="{{ description.popover }}" data-bind="attr: {'class': ( errors.description().length > 0 ) ? 'control-group error' : 'control-group'}">
  15. <label class="control-label">{{ description.name }}</label>
  16. <div class="controls">
  17. <input id="email-description" type="text" name="description" data-bind="value: description" />
  18. <ul class="help-inline" data-bind="foreach: errors.description()">
  19. <li class="error" data-bind="html: $data"></li>
  20. </ul>
  21. </div>
  22. </div>
  23. <hr/>
  24. <div class="control-group">
  25. <p class="alert alert-info">{{ alert }}</p>
  26. <p class="alert alert-info">{{ smtp_alert }}</p>
  27. </div>
  28. <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'}">
  29. <label class="control-label">{{ to.name }}</label>
  30. <div class="controls">
  31. <input id="email-to" type="text" name="to" data-bind="value: to" />
  32. <ul class="help-inline" data-bind="foreach: errors.to()">
  33. <li class="error" data-bind="html: $data"></li>
  34. </ul>
  35. </div>
  36. </div>
  37. <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'}">
  38. <label class="control-label">{{ cc.name }}</label>
  39. <div class="controls">
  40. <input id="email-cc" type="text" name="cc" data-bind="value: cc" />
  41. <ul class="help-inline" data-bind="foreach: errors.cc()">
  42. <li class="error" data-bind="html: $data"></li>
  43. </ul>
  44. </div>
  45. </div>
  46. <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'}">
  47. <label class="control-label">{{ subject.name }}</label>
  48. <div class="controls">
  49. <input id="email-subject" type="text" name="subject" data-bind="value: subject" />
  50. <ul class="help-inline" data-bind="foreach: errors.subject()">
  51. <li class="error" data-bind="html: $data"></li>
  52. </ul>
  53. </div>
  54. </div>
  55. <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'}">
  56. <label class="control-label">{{ body.name }}</label>
  57. <div class="controls">
  58. <textarea id="email-body" type="text" name="body" data-bind="value: body"></textarea>
  59. <ul class="help-inline" data-bind="foreach: errors.body()">
  60. <li class="error" data-bind="html: $data"></li>
  61. </ul>
  62. </div>
  63. </div>
  64. </fieldset>
  65. <div class="form-actions">
  66. <button data-bind="click: {{ save.func }}" class="btn btn-primary">{{ save.name }}</button>
  67. <a href="javascript:void(0);" data-bind="click: {{ cancel.func }}" class="btn">{{ cancel.name }}</a>
  68. </div>
  69. </form>
  70. </div>