2015-02-03 19:29:01 +03:00
|
|
|
{{#unless navItem.last}}
|
|
|
|
<span class="navigation-item-drag-handle icon-grab">
|
2015-03-08 18:58:51 +03:00
|
|
|
<span class="sr-only">Reorder</span>
|
2015-02-03 19:29:01 +03:00
|
|
|
</span>
|
|
|
|
{{/unless}}
|
2015-01-18 03:16:54 +03:00
|
|
|
<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">
|
2015-02-14 02:27:22 +03:00
|
|
|
{{gh-navitem-url-input baseUrl=baseUrl url=navItem.url last=navItem.last change="updateUrl"}}
|
2015-01-18 03:16:54 +03:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<span class="navigation-item-action">
|
|
|
|
{{#if navItem.last}}
|
|
|
|
<button type="button" class="add-navigation-link icon-add" {{action "addItem"}}>
|
2015-03-08 18:58:51 +03:00
|
|
|
<span class="sr-only">Add</span>
|
2015-01-18 03:16:54 +03:00
|
|
|
</button>
|
|
|
|
{{else}}
|
|
|
|
<button type="button" class="navigation-delete icon-trash" {{action "deleteItem" navItem}}>
|
2015-03-08 18:58:51 +03:00
|
|
|
<span class="sr-only">Delete</span>
|
2015-01-18 03:16:54 +03:00
|
|
|
</button>
|
|
|
|
{{/if}}
|
|
|
|
</span>
|