add.html 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
  2. {:token()}
  3. <input type="hidden" name="row[rules]" value="" />
  4. {eq name="admin.cid" value="0"}
  5. <div class="form-group">
  6. <label class="control-label col-xs-12 col-sm-2">{:__('Cid')}:</label>
  7. <div class="col-xs-12 col-sm-8">
  8. <input id="c-cid" data-rule="required" data-source="Company" data-field="company_name" class="form-control selectpage" name="row[cid]" type="text" >
  9. </div>
  10. </div>
  11. {else/}
  12. <input id="c-cid" name="row[cid]" type="hidden" value="{$admin.cid}">
  13. {/eq}
  14. <div class="form-group">
  15. <label class="control-label col-xs-12 col-sm-2">{:__('Parent')}:</label>
  16. <div class="col-xs-12 col-sm-8">
  17. {:build_select('row[pid]', $groupdata, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
  18. </div>
  19. </div>
  20. <div class="form-group">
  21. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  22. <div class="col-xs-12 col-sm-8">
  23. <input type="text" class="form-control" id="name" name="row[name]" value="" data-rule="required" />
  24. </div>
  25. </div>
  26. <div class="form-group">
  27. <label class="control-label col-xs-12 col-sm-2">{:__('Permission')}:</label>
  28. <div class="col-xs-12 col-sm-8">
  29. <span class="text-muted"><input type="checkbox" name="" id="checkall" /> <label for="checkall"><small>{:__('Check all')}</small></label></span>
  30. <span class="text-muted"><input type="checkbox" name="" id="expandall" /> <label for="expandall"><small>{:__('Expand all')}</small></label></span>
  31. <div id="treeview"></div>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  36. <div class="col-xs-12 col-sm-8">
  37. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
  38. </div>
  39. </div>
  40. <div class="form-group hidden layer-footer">
  41. <label class="control-label col-xs-12 col-sm-2"></label>
  42. <div class="col-xs-12 col-sm-8">
  43. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  44. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  45. </div>
  46. </div>
  47. </form>