mirror of
https://github.com/documize/community.git
synced 2025-08-05 05:25:27 +02:00
Support for ARIA
This commit is contained in:
parent
45f216b8a1
commit
6b3cdb5033
42 changed files with 159 additions and 148 deletions
|
@ -2,14 +2,14 @@
|
|||
{{#if (or hasDocuments pinState.isPinned session.authenticated)}}
|
||||
{{#ui/ui-toolbar-dropdown label="Content" arrow=true}}
|
||||
{{#attach-popover class="ember-attacher-popper" hideOn="click clickout" showOn="click" isShown=false}}
|
||||
<div class="menu">
|
||||
<div class="menu" role="menu">
|
||||
{{#if pinState.isPinned}}
|
||||
<li class="item" {{action "onUnpin"}}>Remove bookmark</li>
|
||||
<li class="item" {{action "onUnpin"}} role="button" tabindex="0">Remove bookmark</li>
|
||||
{{else if session.authenticated}}
|
||||
<li class="item" {{action "onPin"}}>Bookmark</li>
|
||||
<li class="item" {{action "onPin"}} role="button" tabindex="0">Bookmark</li>
|
||||
{{/if}}
|
||||
{{#if hasDocuments}}
|
||||
<li class="item" {{action "onShowExport"}}>Download</li>
|
||||
<li class="item" {{action "onShowExport"}} role="button" tabindex="0">Download</li>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/attach-popover}}
|
||||
|
@ -19,12 +19,12 @@
|
|||
{{#if permissions.documentAdd}}
|
||||
{{#ui/ui-toolbar-dropdown label="New" arrow=true}}
|
||||
{{#attach-popover class="ember-attacher-popper" hideOn="click clickout" showOn="click" isShown=false}}
|
||||
<div class="menu">
|
||||
<li class="item" {{action "onShowEmptyDocModal"}}>Blank canvas</li>
|
||||
<div class="menu" role="menu">
|
||||
<li class="item" {{action "onShowEmptyDocModal"}} role="button" tabindex="0">Blank canvas</li>
|
||||
{{#if hasTemplates}}
|
||||
<li class="item" {{action "onShowTemplateDocModal"}}>From template</li>
|
||||
<li class="item" {{action "onShowTemplateDocModal"}} role="button" tabindex="0">From template</li>
|
||||
{{/if}}
|
||||
<li class="item" {{action "onShowImportDocModal"}}>Import files</li>
|
||||
<li class="item" {{action "onShowImportDocModal"}} role="button" tabindex="0">Import files</li>
|
||||
</div>
|
||||
{{/attach-popover}}
|
||||
{{/ui/ui-toolbar-dropdown}}
|
||||
|
@ -41,7 +41,7 @@
|
|||
<div class="modal-content">
|
||||
<div class="modal-header">Blank Canvas</div>
|
||||
<div class="modal-body">
|
||||
<form onsubmit={{action "onAddEmptyDoc"}}>
|
||||
<form onsubmit={{action "onAddEmptyDoc"}} role="form">
|
||||
<div class="form-group">
|
||||
<label for="empty-doc-name">Document Name</label>
|
||||
{{input id="empty-doc-name" type="text" value=emptyDocName placeholder="Enter name" class=(if emptyDocNameError "form-control mousetrap is-invalid" "form-control mousetrap") autocomplete="off"}}
|
||||
|
@ -61,7 +61,7 @@
|
|||
<div class="modal-content">
|
||||
<div class="modal-header">From Template</div>
|
||||
<div class="modal-body">
|
||||
<form onsubmit={{action "onAddTemplateDoc"}}>
|
||||
<form onsubmit={{action "onAddTemplateDoc"}} role="form">
|
||||
<div class="form-group">
|
||||
<label for="template-doc-name">Document Name</label>
|
||||
{{input id="template-doc-name" type="text" value=templateDocName placeholder="Enter name" class=(if templateDocNameError "form-control mousetrap is-invalid" "form-control mousetrap") autocomplete="off"}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue