edit.html 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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-title" 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" class="form-control" name="row[title]" type="text" value="{$row.title}">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label for="c-entitle" class="control-label col-xs-12 col-sm-2">{:__('Entitle')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <input id="c-entitle" class="form-control" name="row[entitle]" type="text" value="{$row.entitle}">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label for="c-version" class="control-label col-xs-12 col-sm-2">{:__('Version')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <input id="c-version" class="form-control" name="row[version]" type="text" value="{$row.version}">
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label for="c-basic_title" class="control-label col-xs-12 col-sm-2">{:__('Basic_title')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input id="c-basic_title" class="form-control" name="row[basic_title]" type="text" value="{$row.basic_title}">
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label for="c-boy_voice_title" class="control-label col-xs-12 col-sm-2">{:__('Boy_voice_title')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <input id="c-boy_voice_title" class="form-control" name="row[boy_voice_title]" type="text" value="{$row.boy_voice_title}">
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label for="c-girl_voice_title" class="control-label col-xs-12 col-sm-2">{:__('Girl_voice_title')}:</label>
  34. <div class="col-xs-12 col-sm-8">
  35. <input id="c-girl_voice_title" class="form-control" name="row[girl_voice_title]" type="text" value="{$row.girl_voice_title}">
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label for="c-male_anchor_title" class="control-label col-xs-12 col-sm-2">{:__('Male_anchor_title')}:</label>
  40. <div class="col-xs-12 col-sm-8">
  41. <input id="c-male_anchor_title" class="form-control" name="row[male_anchor_title]" type="text" value="{$row.male_anchor_title}">
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <label for="c-child_anchor_title" class="control-label col-xs-12 col-sm-2">{:__('Child_anchor_title')}:</label>
  46. <div class="col-xs-12 col-sm-8">
  47. <input id="c-child_anchor_title" class="form-control" name="row[child_anchor_title]" type="text" value="{$row.child_anchor_title}">
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <label for="c-voice_file" class="control-label col-xs-12 col-sm-2">{:__('voice_file')}:</label>
  52. <div class="col-xs-12 col-sm-8">
  53. <div class="input-group">
  54. <input id="c-voice_file" data-rule="required" class="form-control" size="50" name="row[voice_file]" type="text" value="{$row.voice_file}">
  55. <div class="input-group-addon no-border no-padding">
  56. <span><button type="button" id="plupload-voice_file" class="btn btn-danger plupload" data-url="ajax/upload" data-mimetype="application/zip" data-input-id="c-voice_file" data-multiple="false"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
  57. <!--<span><button type="button" id="fachoose-voice_file" class="btn btn-primary fachoose" data-input-id="c-voice_file" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>-->
  58. </div>
  59. <span class="msg-box n-right" for="c-voice_file"></span>
  60. </div>
  61. </div>
  62. </div>
  63. <div class="form-group">
  64. <label for="c-package_title" class="control-label col-xs-12 col-sm-2">{:__('Package_title')}:</label>
  65. <div class="col-xs-12 col-sm-8">
  66. <input id="c-package_title" class="form-control" name="row[package_title]" type="text" value="{$row.package_title}">
  67. </div>
  68. </div>
  69. <div class="form-group">
  70. <label for="c-isallowed" class="control-label col-xs-12 col-sm-2">{:__('Isallowed')}:</label>
  71. <div class="col-xs-12 col-sm-8">
  72. <select id="c-isallowed" class="form-control selectpicker" name="row[isallowed]">
  73. {foreach name="isallowedList" item="vo"}
  74. <option value="{$key}" {in name="key" value="$row.isallowed"}selected{/in}>{$vo}</option>
  75. {/foreach}
  76. </select>
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <label for="c-appid" class="control-label col-xs-12 col-sm-2">{:__('Appid')}:</label>
  81. <div class="col-xs-12 col-sm-8">
  82. <input id="c-appid" class="form-control" name="row[appid]" type="text" value="{$row.appid}">
  83. </div>
  84. </div>
  85. <div class="form-group">
  86. <label for="c-apikey" class="control-label col-xs-12 col-sm-2">{:__('Apikey')}:</label>
  87. <div class="col-xs-12 col-sm-8">
  88. <input id="c-apikey" class="form-control" name="row[apikey]" type="text" value="{$row.apikey}">
  89. </div>
  90. </div>
  91. <div class="form-group">
  92. <label for="c-servretkey" class="control-label col-xs-12 col-sm-2">{:__('Servretkey')}:</label>
  93. <div class="col-xs-12 col-sm-8">
  94. <input id="c-servretkey" class="form-control" name="row[servretkey]" type="text" value="{$row.servretkey}">
  95. </div>
  96. </div>
  97. <div class="form-group">
  98. <label for="c-status" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  99. <div class="col-xs-12 col-sm-8">
  100. <div class="radio">
  101. {foreach name="statusList" item="vo"}
  102. <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>
  103. {/foreach}
  104. </div>
  105. </div>
  106. </div>
  107. <div class="form-group layer-footer">
  108. <label class="control-label col-xs-12 col-sm-2"></label>
  109. <div class="col-xs-12 col-sm-8">
  110. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  111. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  112. </div>
  113. </div>
  114. </form>