mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-17 05:21:36 +03:00
68eb6b67b0
Closes #4540 - Implements drag & drop to reorder navigation items - Adds a `sort` property to navigation items - Adds a tiny library to enable touch events for drag & drop. It hooks onto jQuery UI. - Sort nav items before being saved - Adds `settings-view-navigation` to route for body class
16 lines
648 B
Handlebars
16 lines
648 B
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" class="js-settings-navigation" novalidate="novalidate">
|
|
{{#each navItem in navigationItems}}
|
|
{{gh-navitem navItem=navItem baseUrl=blogUrl addItem="addItem" deleteItem="deleteItem" updateUrl="updateUrl"}}
|
|
{{/each}}
|
|
</form>
|
|
</section>
|