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

123456789101112131415161718192021
  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 autofocus 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. <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">{{ permission.Value ? '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="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. </dialog-ok-cancel>