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.

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!-- Page Content -->
  2. <dialog-close title="Edit {{ user.Username }} settings">
  3. <div class="form-group">
  4. <label class="col-sm-2 control-label">Name</label>
  5. <div class="col-sm-9">
  6. <button type="button" class="btn btn-primary dropdown-toggle btn-select btn-block" data-toggle="dropdown" href="">
  7. <span class="pull-left">{{ tmpSetting.Name }} {{ userSettings[tmpSetting.Name] == null ? '' : '*' }}</span>
  8. <span class="caret pull-right text-center"></span>
  9. </button>
  10. <ul class="dropdown-menu col-sm-12">
  11. <li>
  12. <a href="" ng-repeat="setting in userEffectiveSettings" ng-click="setTmpSetting(setting.Name)">
  13. {{ setting.Name }} {{ userSettings[setting.Name] == null ? '' : '*' }}
  14. </a>
  15. </li>
  16. </ul>
  17. </div>
  18. </div>
  19. <div class="form-group">
  20. <label class="col-sm-2 control-label">Blocked</label>
  21. <div class="col-sm-9">
  22. <button type="button" class="btn btn-primary dropdown-toggle btn-select btn-block" data-toggle="dropdown" href="">
  23. <span class="pull-left">{{ tmpSetting.IsBlocked ? 'Yes' : 'No' }}</span>
  24. <span class="caret pull-right"></span>
  25. </button>
  26. <ul class="dropdown-menu col-sm-12">
  27. <li><a href="" ng-click="tmpSetting.IsBlocked = false">No</a></li>
  28. <li><a href="" ng-click="tmpSetting.IsBlocked = true">Yes</a></li>
  29. </ul>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="col-sm-2 control-label" for="Value">Value</label>
  34. <div class="col-sm-9">
  35. <textarea id="Value" ng-model="tmpSetting.Value" ng-if="tmpSetting.Type == 'string'" class="form-control"
  36. ng-disabled="userEffectiveSettings.length == 0"></textarea>
  37. <input id="Value" ng-model="tmpSetting.Value" ng-if="tmpSetting.Type == 'int' || tmpSetting.Type == 'float'"
  38. class="form-control" type="number" required ng-disabled="userEffectiveSettings.length == 0"/>
  39. <div class="col-sm-9" ng-if="tmpSetting.Type == 'object'" ng-disabled="userEffectiveSettings.length == 0">{{ tmpSetting.Value }}</div>
  40. <div class="btn-group" ng-if="tmpSetting.Type == 'bool'">
  41. <button type="button" class="btn btn-primary dropdown-toggle btn-select" data-toggle="dropdown" href=""
  42. ng-disabled="userEffectiveSettings.length == 0">
  43. {{ tmpSetting.Value ? 'Yes' : 'No' }} <span class="caret"></span>
  44. </button>
  45. <ul class="dropdown-menu">
  46. <li><a href="" ng-click="tmpSetting.Value = false">No</a></li>
  47. <li><a href="" ng-click="tmpSetting.Value = true">Yes</a></li>
  48. </ul>
  49. </div>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <div class="col-sm-9 col-sm-offset-2">
  54. <div class="col-sm-6">
  55. <button type="button" class="btn btn-primary btn-block" href="" ng-click="editSetting(tmpSetting)">
  56. Save
  57. </button>
  58. </div>
  59. <div class="col-sm-6">
  60. <button type="button" class="btn btn-danger btn-block" href="" ng-click="resetSetting(tmpSetting)">
  61. Reset
  62. </button>
  63. </div>
  64. </div>
  65. </div>
  66. </dialog-close>