2015-02-03 16:29:01 +00:00
|
|
|
{{#unless navItem.last}}
|
2015-06-13 09:34:09 -05:00
|
|
|
<span class="gh-blognav-grab icon-grab">
|
|
|
|
<span class="sr-only">Reorder</span>
|
|
|
|
</span>
|
2015-02-03 16:29:01 +00:00
|
|
|
{{/unless}}
|
2015-05-25 14:17:14 +01:00
|
|
|
|
|
|
|
<div class="gh-blognav-line">
|
2015-09-16 18:02:06 +01:00
|
|
|
{{#gh-validation-status-container tagName="span" class="gh-blognav-label" errors=navItem.errors property="label" hasValidated=navItem.hasValidated}}
|
|
|
|
{{gh-trim-focus-input focus=navItem.last placeholder="Label" value=navItem.label}}
|
|
|
|
{{gh-error-message errors=navItem.errors property="label"}}
|
|
|
|
{{/gh-validation-status-container}}
|
|
|
|
{{#gh-validation-status-container tagName="span" class="gh-blognav-url" errors=navItem.errors property="url" hasValidated=navItem.hasValidated}}
|
|
|
|
{{gh-navitem-url-input baseUrl=baseUrl url=navItem.url last=navItem.last change="updateUrl"}}
|
|
|
|
{{gh-error-message errors=navItem.errors property="url"}}
|
|
|
|
{{/gh-validation-status-container}}
|
2015-01-18 00:16:54 +00:00
|
|
|
</div>
|
2015-05-25 14:17:14 +01:00
|
|
|
|
|
|
|
{{#if navItem.last}}
|
|
|
|
<button type="button" class="gh-blognav-add" {{action "addItem"}}>
|
|
|
|
<i class="icon-add2"><span class="sr-only">Add</span></i>
|
|
|
|
</button>
|
|
|
|
{{else}}
|
|
|
|
<button type="button" class="gh-blognav-delete" {{action "deleteItem" navItem}}>
|
|
|
|
<i class="icon-trash"><span class="sr-only">Delete</span></i>
|
|
|
|
</button>
|
|
|
|
{{/if}}
|