add.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. {:token()}
  3. <input type="hidden" name="row[rules]" />
  4. <div class="form-group">
  5. <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
  6. <div class="col-xs-12 col-sm-8">
  7. <input id="c-name" class="form-control" name="row[name]" type="text" value="">
  8. </div>
  9. </div>
  10. <div class="form-group">
  11. <label class="control-label col-xs-12 col-sm-2">{:__('Permission')}:</label>
  12. <div class="col-xs-12 col-sm-8">
  13. <span class="text-muted"><input type="checkbox" name="" id="checkall" /> <label for="checkall"><small>{:__('Check all')}</small></label></span>
  14. <span class="text-muted"><input type="checkbox" name="" id="expandall" /> <label for="expandall"><small>{:__('Expand all')}</small></label></span>
  15. <div id="treeview"></div>
  16. </div>
  17. </div>
  18. <div class="form-group">
  19. <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
  20. <div class="col-xs-12 col-sm-8">
  21. <div class="radio">
  22. {foreach name="statusList" item="vo"}
  23. <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="normal"}checked{/in} /> {$vo}</label>
  24. {/foreach}
  25. </div>
  26. </div>
  27. </div>
  28. <div class="form-group layer-footer">
  29. <label class="control-label col-xs-12 col-sm-2"></label>
  30. <div class="col-xs-12 col-sm-8">
  31. <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
  32. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  33. </div>
  34. </div>
  35. </form>
  36. <script>
  37. var nodeData = {:json_encode($nodeList); };
  38. </script>