edit.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <extend name="Public:base" />
  2. <block name="content">
  3. <div class="page-header">
  4. <h1>
  5. 配置管理
  6. <small>
  7. <i class="icon-double-angle-right"></i>
  8. {$crumbs}
  9. </small>
  10. </h1>
  11. </div>
  12. <div class="row">
  13. <div class="col-xs-12">
  14. <form class="form-horizontal" id="validation-form" method="post" action='{$action}'>
  15. <notempty name="Think.get.id">
  16. <input name="id" type="hidden" value="{$Think.get.id}" />
  17. </notempty>
  18. <div class="form-group required">
  19. <label class="col-sm-2 control-label" for="input-name2">名称:</label>
  20. <div class="col-sm-10">
  21. <input id="input-name2" class="form-control" type="text" placeholder="名称" name="name" value="{$c.name|default=''}" />
  22. </div>
  23. </div>
  24. <div class="form-group required">
  25. <label class="col-sm-2 control-label" for="input-name2">分组:</label>
  26. <div class="col-sm-10">
  27. <select name="config_group">
  28. <option value="">-选择分组-</option>
  29. <option <?php if(isset($c['config_group'])&&($c['config_group']=='site')){echo ' selected="selected"';} ?> value="site">site</option>
  30. <option <?php if(isset($c['config_group'])&&($c['config_group']=='image')){echo ' selected="selected"';} ?> value="image">image</option>
  31. <option <?php if(isset($c['config_group'])&&($c['config_group']=='smtp')){echo ' selected="selected"';} ?> value="smtp">smtp</option>
  32. <option <?php if(isset($c['config_group'])&&($c['config_group']=='other')){echo ' selected="selected"';} ?> value="other">other</option>
  33. </select>
  34. </div>
  35. </div>
  36. <div class="form-group required">
  37. <label class="col-sm-2 control-label" for="input-name2">配置值:</label>
  38. <div class="col-sm-10">
  39. <input id="input-name2" class="form-control" type="text" placeholder="配置值" name="value" value="{$c.value|default=''}" />
  40. </div>
  41. </div>
  42. <div class="form-group required">
  43. <label class="col-sm-2 control-label" for="input-name2">配置描述:</label>
  44. <div class="col-sm-10">
  45. <input id="input-name2" class="form-control" type="text" placeholder="配置描述" name="info" value="{$c.info|default=''}" />
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="col-sm-1 control-label no-padding-left"> </label>
  50. <div class="col-sm-11">
  51. <input name="send" type="submit" value="提交" class="btn btn-primary" />
  52. </div>
  53. </div>
  54. </form>
  55. </div>
  56. </div>
  57. </block>