add.html 1.9 KB

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