edit.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <form id="edit-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="{$row.name|htmlentities}" 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="{$row.contents|htmlentities}">-->
  12. <textarea id="c-contents" class="form-control editor" name="row[contents]" rows="10">{$row.contents|htmlentities}</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="{$row.weigh|htmlentities}">
  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="$row.status"}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" data-rule="required" class="form-control" name="row[front_info]" type="hidden" value="{$row.front_info|htmlentities}">
  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>