mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
cc4ff8c6d4
refs https://github.com/TryGhost/Team/issues/3168 - This is basic scaffolding for collection resources UI in Admin. For the most part it's a copy-paste of tags code with slight modifications to fit the collections usecase
38 lines
1.4 KiB
Handlebars
38 lines
1.4 KiB
Handlebars
<section class="gh-canvas">
|
|
<form class="mb15">
|
|
<GhCanvasHeader class="gh-canvas-header">
|
|
<div class="flex flex-column">
|
|
<div class="gh-canvas-breadcrumb">
|
|
<LinkTo @route="collections" data-test-link="collections-back">
|
|
Collections
|
|
</LinkTo>
|
|
{{svg-jar "arrow-right-small"}} {{if this.collection.isNew "New collection" "Edit collection"}}
|
|
</div>
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
{{if this.collection.isNew "New collection" this.collection.title}}
|
|
</h2>
|
|
</div>
|
|
|
|
<section class="view-actions">
|
|
<GhTaskButton
|
|
@task={{this.saveTask}}
|
|
@type="button"
|
|
@class="gh-btn gh-btn-primary gh-btn-icon"
|
|
@data-test-button="save"
|
|
{{on-key "cmd+s"}}
|
|
/>
|
|
</section>
|
|
</GhCanvasHeader>
|
|
|
|
<Collections::CollectionForm @collection={{this.model}} />
|
|
</form>
|
|
|
|
{{#unless this.collection.isNew}}
|
|
<div>
|
|
<button type="button" class="gh-btn gh-btn-red gh-btn-icon" {{on "click" this.confirmDeleteCollection}} data-test-button="delete-collection">
|
|
<span>Delete collection</span>
|
|
</button>
|
|
</div>
|
|
{{/unless}}
|
|
</section>
|