add.html 1.9 KB

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