add.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. <div class="form-group">
  5. <label class="control-label col-xs-12 col-sm-2">{:__('Parent')}:</label>
  6. <div class="col-xs-12 col-sm-8">
  7. {:build_select('row[pid]', $groupdata, null, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
  8. </div>
  9. </div>
  10. <div class="form-group">
  11. <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  12. <div class="col-xs-12 col-sm-8">
  13. <input type="text" class="form-control" id="name" name="row[name]" value="" data-rule="required" />
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class="control-label col-xs-12 col-sm-2">{:__('Permission')}:</label>
  18. <div class="col-xs-12 col-sm-8">
  19. <span class="text-muted"><input type="checkbox" name="" id="checkall" /> <label for="checkall"><span>{:__('Check all')}</span></label></span>
  20. <span class="text-muted"><input type="checkbox" name="" id="expandall" /> <label for="expandall"><span>{:__('Expand all')}</span></label></span>
  21. <div id="treeview"></div>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  26. <div class="col-xs-12 col-sm-8">
  27. {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
  28. </div>
  29. </div>
  30. <div class="form-group hidden layer-footer">
  31. <label class="control-label col-xs-12 col-sm-2"></label>
  32. <div class="col-xs-12 col-sm-8">
  33. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  34. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  35. </div>
  36. </div>
  37. </form>