<style include="cr-shared-style">
</style>
<cr-dialog id="dialog">
<div slot="title">
[[getDialogTitle_(isFolder_, isEdit_)]]
</div>
<div slot="body">
<cr-input id="name" label="$i18n{editDialogNameInput}"
value="{{titleValue_}}" autofocus>
</cr-input>
<cr-input id="url" type="url" label="$i18n{editDialogUrlInput}"
error-message="$i18n{editDialogInvalidUrl}" value="{{urlValue_}}"
hidden$="[[isFolder_]]" required>
</cr-input>
</div>
<div slot="button-container">
<cr-button class="cancel-button" on-click="onCancelButtonClick_">
$i18n{cancel}
</cr-button>
<cr-button id="saveButton" class="action-button"
on-click="onSaveButtonClick_">
$i18n{saveEdit}
</cr-button>
</div>
</cr-dialog>