add.html 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  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">{:__('Name')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="control-label col-xs-12 col-sm-2">{:__('Is_show')}:</label>
  10. <div class="col-xs-12 col-sm-8">
  11. <select id="c-is_show" data-rule="required" class="form-control selectpicker" name="row[is_show]">
  12. {foreach name="isShowList" 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">{:__('Weigh')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <input id="c-weigh" data-rule="required" class="form-control" name="row[weigh]" type="number" value="1">
  22. </div>
  23. </div>
  24. <div class="form-group layer-footer">
  25. <label class="control-label col-xs-12 col-sm-2"></label>
  26. <div class="col-xs-12 col-sm-8">
  27. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  28. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  29. </div>
  30. </div>
  31. </form>