permissionButton.handlebars 2.1 KB

12345678910111213141516171819202122
  1. <div class="btn-group">
  2. <a role="button" class="btn btn-small dropdown-toggle {{#if default}}default_permission{{/if}}" href="#" data-toggle="dropdown" {{#if readOnly}}disabled="disabled"{{/if}} title="{{titleText}}"><i class="icon-check"></i><i class="icon-lock"></i></a>
  3. <div class="dropdown-menu" role="radiogroup">
  4. <input type="radio" name="permission-for-{{cid}}" value="0" role="radio" id="button-{{cid}}-0" {{#if enableChecked }}checked="checked"{{/if}} >
  5. <label tabindex="0" for="button-{{cid}}-0"><i class="icon-check icon-Solid" aria-hidden="true"></i><span class="text">{{#t "rolebutton.enable"}}Enable{{/t}}</span></label>
  6. <input type="radio" name="permission-for-{{cid}}" value="0" role="radio" id="button-{{cid}}-1" {{#if enableAndLockChecked }}checked="checked"{{/if}}>
  7. <label tabindex=1 for="button-{{cid}}-1"><i class="icon-check icon-Solid" aria-hidden="true"></i><i class="icon-lock icon-Solid" aria-hidden="true"></i><span class="text">{{#t "rolebutton.enable_and_lock"}}Enable and Lock{{/t}}</span></label>
  8. <input type="radio" name="permission-for-{{cid}}" value="0" role="radio" id="button-{{cid}}-2" {{#if disableChecked }}checked="checked"{{/if}}>
  9. <label tabindex=2 for="button-{{cid}}-2"><i class="icon-x icon-Solid" aria-hidden="true"></i><span class="text">{{#t "rolebutton.disable"}}Disable{{/t}}</span></label>
  10. <input type="radio" name="permission-for-{{cid}}" value="0" role="radio" id="button-{{cid}}-3" {{#if disableAndLockChecked }}checked="checked"{{/if}}>
  11. <label tabindex=3 for="button-{{cid}}-3"><i class="icon-x icon-Solid" aria-hidden="true"></i><i class="icon-lock icon-Solid" aria-hidden="true"></i><span class="text">{{#t "rolebutton.disable_and_lock"}}Disable and Lock{{/t}}</span></label>
  12. <li class="divider"></li>
  13. <input type="radio" name="permission-for-{{cid}}" value="0" role="radio" id="button-{{cid}}-4" {{#if systemDefaultChecked }}checked="checked"{{/if}}>
  14. <label tabindex=4 for="button-{{cid}}-4" class="clearfix"><span class="text">{{#t "rolebutton.use_default"}}Use Default{{/t}}</span></label>
  15. </div>
  16. </div>