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">{:__('Price')}:</label>
  4. <div class="col-xs-12 col-sm-8">
  5. <input id="c-price" data-rule="required" class="form-control" name="row[price]" type="number" value="">
  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" data-rule="required" class="form-control" name="row[level]" type="number" value="">
  12. </div>
  13. </div>
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Type')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. <select id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]">
  18. {foreach name="typeList" item="vo"}
  19. <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  20. {/foreach}
  21. </select>
  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>