0
0

limits.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-content">
  7. <form method="post" action="{:url('limits')}" class="form-horizontal">
  8. <input type="hidden" name="id" value="{$id}">
  9. <input type="hidden" name="day" value="{$day}">
  10. <input type="hidden" name="typeId" value="{$typeId}">
  11. <div class="form-group">
  12. <label class="col-sm-3 control-label">最多选择几种菜(0代表不限制)<span class="text-danger">*</span></label>
  13. <div class="col-sm-6">
  14. <input type="text" oninput="clearNoNum1(this)" class="form-control" name="limit" value="{$limit}">
  15. </div>
  16. </div>
  17. <div class="hr-line-dashed"></div>
  18. <div class="form-group">
  19. <div class="col-sm-6 col-sm-offset-3">
  20. <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
  21. </div>
  22. </div>
  23. </form>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. {/block}
  29. {block name="script"}
  30. <script>
  31. $(document).ready(function(){
  32. formSetValue("type", {$info.type|default=0});
  33. formSetValue("enable", {$info.enable|default=1});
  34. });
  35. </script>
  36. {/block}