edit.html 3.9 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 class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-title" readonly data-rule="required" class="form-control" name="row[title]" type="text" value="{$row.title|htmlentities}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-level" readonly data-rule="required" class="form-control" name="row[level]" type="text" value="{$row.level|htmlentities}">
  12. </div>
  13. </div>
  14. {if $row['id'] != 1}
  15. <div class="form-group">
  16. <label class="control-label col-xs-12 col-sm-2">{:__('Growthvalue')}:</label>
  17. <div class="col-xs-12 col-sm-8">
  18. <input id="c-growthvalue" data-rule="required" class="form-control" name="row[growthvalue]" type="number" value="{$row.growthvalue|htmlentities}">
  19. </div>
  20. </div>
  21. {/if}
  22. <div class="form-group">
  23. <label class="control-label col-xs-12 col-sm-2">{:__('Free')}:</label>
  24. <div class="col-xs-12 col-sm-8">
  25. <input id="c-free" data-rule="required" class="form-control" name="row[free]" type="number" value="{$row.free|htmlentities}">
  26. </div>
  27. </div>
  28. {if $row['id'] != 1}
  29. <div class="form-group">
  30. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  31. <div class="col-xs-12 col-sm-8">
  32. <div class="radio">
  33. {foreach name="statusList" item="vo"}
  34. <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>
  35. {/foreach}
  36. </div>
  37. </div>
  38. </div>
  39. <div class="form-group">
  40. <label class="control-label col-xs-12 col-sm-2">{:__('Price')}:</label>
  41. <div class="col-xs-12 col-sm-8">
  42. <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="text" value="{$row.price|htmlentities}">
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <label class="control-label col-xs-12 col-sm-2">{:__('Day')}:</label>
  47. <div class="col-xs-12 col-sm-8">
  48. <input id="c-day" data-rule="required" class="form-control" name="row[day]" type="number" value="{$row.day|htmlentities}">
  49. </div>
  50. </div>
  51. {/if}
  52. <div class="form-group">
  53. <label class="control-label col-xs-12 col-sm-2">{:__('Vipdiscount')}:</label>
  54. <div class="col-xs-12 col-sm-8">
  55. <input id="c-vipdiscount" data-rule="required" class="form-control" name="row[vipdiscount]" type="number" value="{$row.vipdiscount|htmlentities}">
  56. </div>
  57. </div>
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-2">{:__('Birthdiscount')}:</label>
  60. <div class="col-xs-12 col-sm-8">
  61. <input id="c-birthdiscount" data-rule="required" class="form-control" name="row[birthdiscount]" type="number" value="{$row.birthdiscount|htmlentities}">
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="control-label col-xs-12 col-sm-2">{:__('Manypeople')}:</label>
  66. <div class="col-xs-12 col-sm-8">
  67. <input id="c-manypeople" data-rule="required" class="form-control" name="row[manypeople]" type="number" value="{$row.manypeople|htmlentities}">
  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-primary btn-embossed disabled">{:__('OK')}</button>
  74. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  75. </div>
  76. </div>
  77. </form>