2018-12-14 11:52:31 +00:00
|
|
|
{{#if spaces}}
|
2022-03-02 20:30:39 -05:00
|
|
|
{{ui/ui-button color=constants.Color.Yellow light=true icon=constants.Icon.Export label=(localize 'space_admin_export') onClick=(action "onExport")}}
|
2019-05-28 10:59:48 +01:00
|
|
|
<Ui::UiSpacer @size="300" />
|
2018-12-13 12:24:16 +00:00
|
|
|
|
2018-12-14 11:52:31 +00:00
|
|
|
<div class="view-customize">
|
|
|
|
<ul class="space-list">
|
2018-11-16 19:18:10 +00:00
|
|
|
{{#each spaces as |space|}}
|
2018-12-14 11:52:31 +00:00
|
|
|
<li class="space">
|
|
|
|
<div class="info">
|
|
|
|
{{#link-to "folder.index" space.id space.slug}}
|
|
|
|
<div class="name">
|
|
|
|
{{#if (eq space.spaceType constants.SpaceType.Public)}}
|
2022-03-02 20:30:39 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.World}} title={{localize 'public'}} />
|
2018-12-14 11:52:31 +00:00
|
|
|
{{/if}}
|
|
|
|
{{#if (eq space.spaceType constants.SpaceType.Protected)}}
|
2022-03-02 20:30:39 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.People}} title={{localize 'protected'}} />
|
2018-12-14 11:52:31 +00:00
|
|
|
{{/if}}
|
|
|
|
{{#if (eq space.spaceType constants.SpaceType.Private)}}
|
2022-03-02 20:30:39 -05:00
|
|
|
<i class={{concat "dicon " constants.Icon.Person}} title={{localize 'personal'}} />
|
2018-12-14 11:52:31 +00:00
|
|
|
{{/if}}
|
|
|
|
{{space.name}}
|
|
|
|
</div>
|
2022-03-02 20:30:39 -05:00
|
|
|
<div class="desc">{{space.desc}}</div>
|
2018-12-14 11:52:31 +00:00
|
|
|
{{/link-to}}
|
2019-05-28 10:59:48 +01:00
|
|
|
<Ui::UiSpacer @size="200" />
|
2018-12-14 11:52:31 +00:00
|
|
|
{{#ui/ui-toolbar dark=false light=true raised=true large=false bordered=true}}
|
2022-03-02 20:30:39 -05:00
|
|
|
{{ui/ui-toolbar-icon icon=constants.Icon.AddUser color=constants.Color.Green tooltip=(localize 'space_admin_make_owner') onClick=(action "onOwner" space.id)}}
|
2022-03-08 12:50:34 -05:00
|
|
|
{{ui/ui-toolbar-icon icon=constants.Icon.Delete color=constants.Color.Red tooltip=(localize 'space_delete') onClick=(action "onShow" space.id)}}
|
2018-12-14 11:52:31 +00:00
|
|
|
{{/ui/ui-toolbar}}
|
2018-11-16 19:18:10 +00:00
|
|
|
</div>
|
2018-12-14 11:52:31 +00:00
|
|
|
</li>
|
2018-11-16 19:18:10 +00:00
|
|
|
{{/each}}
|
2018-12-14 11:52:31 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
2018-11-16 19:18:10 +00:00
|
|
|
|
2018-12-14 11:52:31 +00:00
|
|
|
<div id="space-delete-modal" class="modal" tabindex="-1" role="dialog">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content">
|
2022-03-02 20:30:39 -05:00
|
|
|
<div class="modal-header">{{localize 'space_admin_delete_title'}}</div>
|
2018-12-14 11:52:31 +00:00
|
|
|
<div class="modal-body">
|
|
|
|
<form onsubmit={{action "onDelete"}}>
|
2022-03-02 20:30:39 -05:00
|
|
|
<p>{{localize 'space_admin_delete_check'}}</p>
|
2018-12-14 11:52:31 +00:00
|
|
|
<div class="form-group">
|
2022-03-02 20:30:39 -05:00
|
|
|
<label for="delete-space-name">{{localize 'space_admin_confirm'}}</label>
|
|
|
|
{{input type="text" id="delete-space-name" class="form-control mousetrap" placeholder="" value=deleteSpace.name}}
|
|
|
|
<small class="form-text text-muted">{{localize 'space_admin_confirm_explain'}}</small>
|
2018-12-14 11:52:31 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2022-03-01 22:03:18 -05:00
|
|
|
{{ui/ui-button color=constants.Color.Gray light=true label=(localize 'cancel') dismiss=true}}
|
2018-12-14 11:52:31 +00:00
|
|
|
{{ui/ui-button-gap}}
|
2022-03-01 22:40:51 -05:00
|
|
|
{{ui/ui-button color=constants.Color.Red light=true label=(localize 'delete') onClick=(action "onDelete")}}
|
2018-11-16 19:18:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-12-14 11:52:31 +00:00
|
|
|
</div>
|
|
|
|
{{else}}
|
2022-03-02 20:30:39 -05:00
|
|
|
<p>{{localize 'space_admin_empty'}}</p>
|
2018-12-14 11:52:31 +00:00
|
|
|
{{/if}}
|
2018-11-16 19:18:10 +00:00
|
|
|
|
|
|
|
|