<style include="settings-shared"></style>
<div class="settings-box first">
<div class="start">
<localized-link
localized-string="$i18n{smbSharesLearnMoreLabel}"
link-url="$i18n{smbSharesLearnMoreURL}">
</localized-link>
</div>
<template is="dom-if" if="[[!prefs.network_file_shares.allowed.value]]"
restamp>
<cr-policy-pref-indicator
pref="[[prefs.network_file_shares.allowed]]"
icon-aria-label="$i18n{smbSharesTitle}">
</cr-policy-pref-indicator>
</template>
<cr-button id="addShare"
on-click="onAddShareClick_"
disabled="[[!prefs.network_file_shares.allowed.value]]">
$i18n{addSmbShare}
</cr-button>
</div>
<template is="dom-if" if="[[showAddSmbDialog_]]" restamp>
<add-smb-share-dialog on-close="onAddSmbDialogClosed_"
last-url="[[prefs.network_file_shares.most_recently_used_url.value]]"
should-open-file-manager-after-mount>
</add-smb-share-dialog>
</template>