mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
Introduce modular UI framework
1. Modals wrapped 2. Toolbar icon actions: click and link-to navigation 3. Moved components into sub-folders 4. Replaced Bootstrap Tooltip and Dropdown libs with Ember specific add-ons And more. Co-Authored-By: Saul S <sauls8t@users.noreply.github.com> Co-Authored-By: McMatts <matt@documize.com>
This commit is contained in:
parent
f140e7ef77
commit
6eb68f84e0
48 changed files with 330 additions and 240 deletions
4
gui/app/templates/components/ui/empty-state.hbs
Normal file
4
gui/app/templates/components/ui/empty-state.hbs
Normal file
|
@ -0,0 +1,4 @@
|
|||
<div class="empty-state">
|
||||
<i class="material-icons">{{glypth}}</i>
|
||||
<p>{{message}}</p>
|
||||
</div>
|
1
gui/app/templates/components/ui/ui-modal-buttons.hbs
Normal file
1
gui/app/templates/components/ui/ui-modal-buttons.hbs
Normal file
|
@ -0,0 +1 @@
|
|||
{{yield}}
|
13
gui/app/templates/components/ui/ui-modal.hbs
Normal file
13
gui/app/templates/components/ui/ui-modal.hbs
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div id={{contentId}} class="modal" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog {{size}}" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">{{title}}</div>
|
||||
<div class="modal-body">
|
||||
{{yield}}
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
{{outlet "buttons"}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
12
gui/app/templates/components/ui/ui-select.hbs
Normal file
12
gui/app/templates/components/ui/ui-select.hbs
Normal file
|
@ -0,0 +1,12 @@
|
|||
<select {{action "change" on="change"}} class="form-control {{cssClass}}" readonly={{readonly}}>
|
||||
{{#if prompt}}
|
||||
<option disabled selected={{is-not selection}}>
|
||||
{{prompt}}
|
||||
</option>
|
||||
{{/if}}
|
||||
{{#each content key="@identity" as |item|}}
|
||||
<option value={{read-path item optionValuePath}} selected={{is-equal item selection}}>
|
||||
{{read-path item optionLabelPath}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
|
@ -0,0 +1,3 @@
|
|||
{{#if tooltip}}
|
||||
{{#attach-tooltip showDelay=1000}}{{tooltip}}{{/attach-tooltip}}
|
||||
{{/if}}
|
3
gui/app/templates/components/ui/ui-tooltip.hbs
Normal file
3
gui/app/templates/components/ui/ui-tooltip.hbs
Normal file
|
@ -0,0 +1,3 @@
|
|||
{{#if tooltip}}
|
||||
{{#attach-tooltip showDelay=1000}}{{tooltip}}{{/attach-tooltip}}
|
||||
{{/if}}
|
Loading…
Add table
Add a link
Reference in a new issue