You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <dialog-ok-cancel title="{{ setting.IsNew ? 'Add' : 'Edit'}} setting {{ setting.Name }}">
  2. <div class="form-group">
  3. <label for="name" class="col-sm-2 control-label">Name</label>
  4. <div class="col-sm-9">
  5. <input autofocus id="name" class="form-control input-permission-name" ng-model="setting.Name" required ng-disabled="!setting.IsNew"/>
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="col-sm-2 control-label">Blocked</label>
  10. <div class="col-sm-9">
  11. <button type="button" class="btn btn-primary dropdown-toggle btn-select btn-block" data-toggle="dropdown" href="" lu-enable-permission="{{ neededPermission }}">
  12. <span class="pull-left">{{ setting.IsBlocked ? 'Yes' : 'No' }}</span>
  13. <span class="caret pull-right"></span>
  14. </button>
  15. <ul class="dropdown-menu col-sm-12">
  16. <li><a href="" ng-click="setting.IsBlocked = false">No</a></li>
  17. <li><a href="" ng-click="setting.IsBlocked = true">Yes</a></li>
  18. </ul>
  19. </div>
  20. </div>
  21. <div class="form-group">
  22. <label class="col-sm-2 control-label">Admin</label>
  23. <div class="col-sm-9">
  24. <button type="button" class="btn btn-primary dropdown-toggle btn-select btn-block" data-toggle="dropdown" href="" lu-enable-permission="{{ neededPermission }}">
  25. <span class="pull-left">{{ setting.IsAdmin ? 'Yes' : 'No' }}</span>
  26. <span class="caret pull-right"></span>
  27. </button>
  28. <ul class="dropdown-menu col-sm-12">
  29. <li><a href="" ng-click="setting.IsAdmin = false">No</a></li>
  30. <li><a href="" ng-click="setting.IsAdmin = true">Yes</a></li>
  31. </ul>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="col-sm-2 control-label">Type</label>
  36. <div class="col-sm-9">
  37. <button type="button" class="btn btn-primary dropdown-toggle btn-select btn-block" data-toggle="dropdown"
  38. href="" lu-enable-permission="{{ neededPermission }}" ng-disabled="!setting.IsNew">
  39. <span class="pull-left">{{ setting.Type }}</span>
  40. <span class="caret pull-right"></span>
  41. </button>
  42. <ul class="dropdown-menu col-sm-12">
  43. <li ng-repeat="type in types"><a href="" ng-click="setType(type)">{{ type }}</a></li>
  44. </ul>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="col-sm-2 control-label" for="Value">Value</label>
  49. <div class="col-sm-9">
  50. <textarea id="Value" ng-model="setting.Value" ng-if="setting.Type == 'string'"
  51. class="form-control" lu-enable-permission="{{ neededPermission }}"></textarea>
  52. <input id="Value" ng-model="setting.Value" ng-if="setting.Type == 'int' || setting.Type == 'float'"
  53. class="form-control" type="number" required lu-enable-permission="{{ neededPermission }}" />
  54. <div class="col-sm-9" ng-if="setting.Type == 'object'">{{ setting.Value }}</div>
  55. <div class="btn-group" ng-if="setting.Type == 'bool'">
  56. <button type="button" class="btn btn-primary dropdown-toggle btn-select" data-toggle="dropdown"
  57. href="" lu-enable-permission="{{ neededPermission }}">
  58. {{ setting.Value ? 'Yes' : 'No' }} <span class="caret"></span>
  59. </button>
  60. <ul class="dropdown-menu">
  61. <li><a href="" ng-click="setting.Value = false">No</a></li>
  62. <li><a href="" ng-click="setting.Value = true">Yes</a></li>
  63. </ul>
  64. </div>
  65. </div>
  66. </div>
  67. </dialog-ok-cancel>