mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 01:03:23 +03:00
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>
|