edit.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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" 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">{:__('Is_deleted')}:</label>-->
  10. <!-- <div class="col-xs-12 col-sm-8">-->
  11. <!-- -->
  12. <!-- <select id="c-is_deleted" class="form-control selectpicker" name="row[is_deleted]">-->
  13. <!-- {foreach name="isDeletedList" item="vo"}-->
  14. <!-- <option value="{$key}" {in name="key" value="$row.is_deleted"}selected{/in}>{$vo}</option>-->
  15. <!-- {/foreach}-->
  16. <!-- </select>-->
  17. <!-- </div>-->
  18. <!-- </div>-->
  19. <div class="form-group">
  20. <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
  21. <div class="col-xs-12 col-sm-8">
  22. <input id="c-sort" class="form-control" name="row[sort]" type="number" value="{$row.sort|htmlentities}">
  23. </div>
  24. </div>
  25. <div class="form-group">
  26. <label class="control-label col-xs-12 col-sm-2">状态:</label>
  27. <div class="col-xs-12 col-sm-8">
  28. <div class="radio">
  29. {foreach name="statusList" item="vo"}
  30. <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>
  31. {/foreach}
  32. </div>
  33. </div>
  34. </div>
  35. <div class="form-group layer-footer">
  36. <label class="control-label col-xs-12 col-sm-2"></label>
  37. <div class="col-xs-12 col-sm-8">
  38. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  39. </div>
  40. </div>
  41. </form>