index.html 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <html>
  2. <head>
  3. <style type="text/css">
  4. @media (max-width: 375px) {
  5. .edit-form tr td input {
  6. width: 100%;
  7. }
  8. .edit-form tr th:first-child, .edit-form tr td:first-child {
  9. width: 20%;
  10. }
  11. .edit-form tr th:nth-last-of-type(-n+2), .edit-form tr td:nth-last-of-type(-n+2) {
  12. display: none;
  13. }
  14. }
  15. .edit-form table > tbody > tr td a.btn-delcfg {
  16. visibility: hidden;
  17. }
  18. .edit-form table > tbody > tr:hover td a.btn-delcfg {
  19. visibility: visible;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <div class="panel panel-default panel-intro">
  25. <div class="panel-body">
  26. <div id="myTabContent" class="tab-content">
  27. <div class="tab-pane fade active in" id="about">
  28. <div class="widget-body no-padding">
  29. <form id="basic-form" class="edit-form form-horizontal nice-validator n-default n-bootstrap" role="form" data-toggle="validator" method="POST" action="{:url('Admin/wwh/service/serviceedit')}" novalidate="novalidate">
  30. <input type="hidden" name="__token__" value="3d21ee81f41717393f2f12f92c2fa29f" />
  31. <table class="table table-striped">
  32. <tbody>
  33. <tr>
  34. <td style="width:8%">内容</td>
  35. <td>
  36. <div class="row">
  37. <div class="col-sm-8 col-xs-12">
  38. <textarea id="c-content" name="content" class="form-control editor" rows="5" name="content" cols="50">{$data.content|htmlentities}</textarea>
  39. </div>
  40. <div class="col-sm-4"></div>
  41. </div> </td>
  42. <td>content</td>
  43. <td></td>
  44. </tr>
  45. </tbody>
  46. <tfoot>
  47. <tr>
  48. <td></td>
  49. <td> <button type="submit" class="btn btn-success btn-embossed">保存</button> </td>
  50. <td></td>
  51. <td></td>
  52. </tr>
  53. </tfoot>
  54. </table>
  55. </form>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. <script>
  62. $(function(){
  63. Table.api.bindevent(table);
  64. },
  65. index: function () {
  66. Controller.api.bindevent();
  67. },
  68. })
  69. </script>
  70. </body>
  71. </html>