add.html 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <form id="form" action="{:url('info.tpl/edit')}">
  2. <table class="formtable" id="attr">
  3. <tr>
  4. <th>模板名称:</th>
  5. <td><input class="input" datatype="*" type="text" name="name" /></td>
  6. <tr>
  7. <th>模板类型</th>
  8. <td class="input-group">
  9. <input class="input w100" datatype="*" type="text" name="title[]" placeholder="模板标题"/>
  10. <select class="select" name="types[]">
  11. <option value="text" selected>文本输入</option>
  12. <option value="address">地址</option>
  13. <option value="number">整数数字</option>
  14. <option value="digit"">小数点数字</option>
  15. <option value="idcard">身份证输入</option>
  16. <option value="date">年月日时间</option>
  17. <option value="selector">选择器</option>
  18. </select>
  19. <input class="input w300" type="text" name="placeholder[]" placeholder="提示语"/>
  20. <span class="fn-cp ml5" id="add_attr"><i class="iconfont icon-add_icon"></i></span> <br />
  21. <input class="input w500 mt5" type="text" name="values[]" placeholder="默认值,多个以|线分开"/>
  22. </td>
  23. </tr>
  24. </tr>
  25. </table>
  26. <table class="formtable">
  27. <tr>
  28. <th></th>
  29. <td>
  30. <input type="submit" value="确定" class="button button-blue submit" />
  31. <input type="reset" value="重置" class="button"/>
  32. </td>
  33. </tr>
  34. </table>
  35. </form>
  36. {include file="info:tpl:bottom" /}