add.html 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {eq name="admin.cid" value="0"}
  3. <div class="form-group">
  4. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" >
  7. </div>
  8. </div>
  9. {else/}
  10. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  11. {/eq}
  12. <div class="form-group">
  13. <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  14. <div class="col-xs-12 col-sm-8">
  15. <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Image')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <div class="input-group">
  22. <input id="c-image" class="form-control" size="50" name="row[image]" type="text">
  23. <div class="input-group-addon no-border no-padding">
  24. <span><button type="button" id="faupload-image" class="btn btn-danger faupload" data-input-id="c-image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  25. <span><button type="button" id="fachoose-image" class="btn btn-primary fachoose" data-input-id="c-image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
  26. </div>
  27. <span class="msg-box n-right" for="c-image"></span>
  28. </div>
  29. <ul class="row list-inline faupload-preview" id="p-image"></ul>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="control-label col-xs-12 col-sm-2">{:__('Info')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <textarea id="c-info" data-rule="required" class="form-control " rows="5" name="row[info]" cols="50"></textarea>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="control-label col-xs-12 col-sm-2">{:__('Start_time')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-start_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label class="control-label col-xs-12 col-sm-2">{:__('End_time')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <input id="c-end_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label class="control-label col-xs-12 col-sm-2">{:__('Progress')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-progress" data-rule="required" class="form-control" step="0.01" name="row[progress]" type="number" value="0.00">
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="control-label col-xs-12 col-sm-2">{:__('Uid')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-uid" data-rule="required" class="form-control" name="row[uid]" type="number" value="0">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Verify_time')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. <input id="c-verify_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[verify_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <label class="control-label col-xs-12 col-sm-2">{:__('Verify_remark')}:</label>
  70. <div class="col-xs-12 col-sm-8">
  71. <input id="c-verify_remark" data-rule="required" class="form-control" name="row[verify_remark]" type="text" value="">
  72. </div>
  73. </div>
  74. <div class="form-group">
  75. <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
  76. <div class="col-xs-12 col-sm-8">
  77. <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number" value="0">
  78. </div>
  79. </div>
  80. <div class="form-group">
  81. <label class="control-label col-xs-12 col-sm-2">{:__('Feedback')}:</label>
  82. <div class="col-xs-12 col-sm-8">
  83. <input id="c-feedback" class="form-control" name="row[feedback]" type="text">
  84. </div>
  85. </div>
  86. <!--<div class="form-group">-->
  87. <!-- <label class="control-label col-xs-12 col-sm-2">{:__('Feedback_admin_id')}:</label>-->
  88. <!-- <div class="col-xs-12 col-sm-8">-->
  89. <!-- <input id="c-feedback_admin_id" data-rule="required" data-source="feedback/admin/index" class="form-control selectpage" name="row[feedback_admin_id]" type="text" value="">-->
  90. <!-- </div>-->
  91. <!--</div>-->
  92. <div class="form-group">
  93. <label class="control-label col-xs-12 col-sm-2">{:__('Feedback_time')}:</label>
  94. <div class="col-xs-12 col-sm-8">
  95. <input id="c-feedback_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[feedback_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  96. </div>
  97. </div>
  98. <div class="form-group">
  99. <label class="control-label col-xs-12 col-sm-2">{:__('Assessment')}:</label>
  100. <div class="col-xs-12 col-sm-8">
  101. <input id="c-assessment" class="form-control" step="0.01" name="row[assessment]" type="number">
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  106. <div class="col-xs-12 col-sm-8">
  107. <div class="radio">
  108. {foreach name="statusList" item="vo"}
  109. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="-1"}checked{/in} /> {$vo}</label>
  110. {/foreach}
  111. </div>
  112. </div>
  113. </div>
  114. <div class="form-group layer-footer">
  115. <label class="control-label col-xs-12 col-sm-2"></label>
  116. <div class="col-xs-12 col-sm-8">
  117. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  118. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  119. </div>
  120. </div>
  121. </form>