add.html 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="" maxlength="30">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Contents')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <!--<input id="c-contents" data-rule="required" class="form-control" name="row[contents]" type="text" value="">-->
  12. <textarea id="c-contents" class="form-control editor" name="row[contents]" rows="10"></textarea>
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
  17. <div class="col-xs-12 col-sm-8">
  18. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="1">
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  23. <div class="col-xs-12 col-sm-8">
  24. <div class="radio">
  25. {foreach name="statusList" item="vo"}
  26. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="NORMAL"}checked{/in} /> {$vo}</label>
  27. {/foreach}
  28. </div>
  29. </div>
  30. </div>
  31. <div class="form-group">
  32. <label class="control-label col-xs-12 col-sm-2">{:__('Front_info')}:</label>
  33. <div class="col-xs-12 col-sm-8">
  34. <input id="c-front_info" class="form-control" name="row[front_info]" type="hidden" value="">
  35. <button type="button" class="btn btn-info" id="btnFrontend">设置前端跳转</button>
  36. </div>
  37. </div>
  38. <div class="form-group layer-footer">
  39. <label class="control-label col-xs-12 col-sm-2"></label>
  40. <div class="col-xs-12 col-sm-8">
  41. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  42. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  43. </div>
  44. </div>
  45. </form>