add.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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-title">
  7. <h5>{$meta_title}</h5>
  8. <div class="ibox-tools">
  9. <a class="toback" href="{:url('index')}">
  10. 返回上一页
  11. </a>
  12. </div>
  13. </div>
  14. <div class="ibox-content">
  15. <form method="post" action="{:url('add')}" class="form-horizontal">
  16. <input type="hidden" name="id" value="{$info['id']|default='0'}">
  17. <div class="form-group">
  18. <label class="col-sm-2 control-label">名称</label>
  19. <div class="col-sm-6">
  20. <input type="text" class="form-control" name="name" value="{$info.name|default=''}">
  21. </div>
  22. </div>
  23. <div class="hr-line-dashed"></div>
  24. <div class="form-group">
  25. <div class="col-sm-4 col-sm-offset-2">
  26. <button class="btn btn-primary ajax-post" target-form="form-horizontal" type="submit">确 定</button>
  27. <a href="{:url('index')}" class="btn btn-default">取 消</a>
  28. </div>
  29. </div>
  30. </form>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. {/block}
  36. {block name="script"}
  37. <script>
  38. $(document).ready(function(){
  39. });
  40. </script>
  41. {/block}