mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
d87994aa35
Closes #4539
40 lines
1.7 KiB
Handlebars
40 lines
1.7 KiB
Handlebars
<header class="settings-view-header">
|
|
{{#link-to "settings" class="btn btn-default btn-back"}}Back{{/link-to}}
|
|
<h2 class="page-title">Navigation</h2>
|
|
<section class="page-actions">
|
|
<button type="button" class="btn btn-blue" {{action "save"}}>Save</button>
|
|
</section>
|
|
</header>
|
|
|
|
<section class="content settings-navigation">
|
|
<form id="settings-navigation" novalidate="novalidate">
|
|
|
|
{{#each navItem in navigationItems}}
|
|
<div class="navigation-item">
|
|
<button type="button" class="navigation-item-drag-handle icon-grab">
|
|
<span class="hidden">Reorder</span>
|
|
</button>
|
|
<div class="navigation-inputs">
|
|
<span class="navigation-item-label">
|
|
{{gh-trim-focus-input focus=navItem.last placeholder="Label" value=navItem.label}}
|
|
</span>
|
|
<span class="navigation-item-url">
|
|
{{gh-trim-focus-input focus=false placeholder="http://my-ghost-blog.com/" value=navItem.url}}
|
|
</span>
|
|
</div>
|
|
<span class="navigation-item-action">
|
|
{{#if navItem.last}}
|
|
<button type="button" class="add-navigation-link icon-add" {{action "addItem"}}>
|
|
<span class="hidden">Add</span>
|
|
</button>
|
|
{{else}}
|
|
<button type="button" class="navigation-delete icon-trash" {{action "deleteItem" navItem}}>
|
|
<span class="hidden">Delete</span>
|
|
</button>
|
|
{{/if}}
|
|
</span>
|
|
</div>
|
|
{{/each}}
|
|
|
|
</form>
|
|
</section> |