edit.html 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="form-group">
  3. <label for="c-post_id" class="control-label col-xs-12 col-sm-2">{:__('Post')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-post_id" data-rule="required" data-source="blog/post/index" data-field="title" class="form-control selectpage" name="row[post_id]" type="text" value="{$row.post_id}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label for="c-pid" class="control-label col-xs-12 col-sm-2">{:__('Pid')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-pid" data-rule="required" class="form-control" name="row[pid]" type="number" value="{$row.pid}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label for="c-username" class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-username" data-rule="required" class="form-control" name="row[username]" type="text" value="{$row.username|htmlentities}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label for="c-email" class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-email" data-rule="required" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label for="c-website" class="control-label col-xs-12 col-sm-2">{:__('Website')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-website" class="form-control" name="row[website]" type="text" value="{$row.website|htmlentities}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label for="c-content" class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <textarea id="c-content" data-rule="required" class="form-control" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label for="c-comments" class="control-label col-xs-12 col-sm-2">{:__('Comments')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-comments" data-rule="required" class="form-control" name="row[comments]" type="number" value="{$row.comments}">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label for="c-ip" class="control-label col-xs-12 col-sm-2">{:__('Ip')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <input id="c-ip" class="form-control" name="row[ip]" type="text" value="{$row.ip|htmlentities}">
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label for="c-useragent" class="control-label col-xs-12 col-sm-2">{:__('Useragent')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <input id="c-useragent" class="form-control" name="row[useragent]" type="text" value="{$row.useragent|htmlentities}">
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label for="c-subscribe" class="control-label col-xs-12 col-sm-2">{:__('Subscribe')}:</label>
  58. <div class="col-xs-12 col-sm-8">
  59. <input id="c-subscribe" data-rule="required" class="form-control" name="row[subscribe]" type="number" value="{$row.subscribe|htmlentities}">
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  64. <div class="col-xs-12 col-sm-8">
  65. {foreach name="statusList" item="vo"}
  66. <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>
  67. {/foreach}
  68. </div>
  69. </div>
  70. <div class="form-group layer-footer">
  71. <label class="control-label col-xs-12 col-sm-2"></label>
  72. <div class="col-xs-12 col-sm-8">
  73. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  74. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  75. </div>
  76. </div>
  77. </form>