Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

permissionedit.html 1.1KB

12345678910111213141516171819202122
  1. <dialog-ok-cancel title="{{ permission.IsNew ? 'Add' : 'Edit'}} permission {{ permission.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 id="name" class="form-control input-permission-name" ng-model="permission.Name" required ng-disabled="!permission.IsNew"/>
  6. </div>
  7. </div>
  8. <div class="form-group">
  9. <label class="col-sm-2 control-label">Allowed</label>
  10. <div class="col-sm-9">
  11. <div class="btn-group">
  12. <button class="btn btn-default dropdown-toggle btn-select" data-toggle="dropdown" href="" lu-enable-permission="{{ neededPermission }}">
  13. {{ permission.Value ? 'Yes' : 'No' }} <span class="caret"></span>
  14. </button>
  15. <ul class="dropdown-menu">
  16. <li><a href="" ng-click="permission.Value = false">No</a></li>
  17. <li><a href="" ng-click="permission.Value = true">Yes</a></li>
  18. </ul>
  19. </div>
  20. </div>
  21. </div>
  22. </dialog-ok-cancel>