blob: e65830069574184eddb6e87fe4cf9781747b03ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
<link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html">
<link rel="import" href="../i18n_setup.html">
<link rel="import" href="../settings_shared_css.html">
<link rel="import" href="startup_urls_page_browser_proxy.html">
<dom-module id="settings-startup-url-dialog">
<template>
<style include="settings-shared"></style>
<cr-dialog id="dialog" close-text="$i18n{close}">
<div slot="title">[[dialogTitle_]]</div>
<div slot="body">
<cr-input id="url" label="$i18n{onStartupSiteUrl}"
value="{{url_}}" on-input="validate_" spellcheck="false"
maxlength="[[urlLimit_]]" invalid="[[hasError_(error_)]]" autofocus
error-message="[[errorMessage_('$i18nPolymer{onStartupInvalidUrl}',
'$i18nPolymer{onStartupUrlTooLong}', error_)]]">
</cr-input>
</div>
<div slot="button-container">
<cr-button class="cancel-button" on-click="onCancelTap_"
id="cancel">$i18n{cancel}</cr-button>
<cr-button id="actionButton" class="action-button"
on-click="onActionButtonTap_">[[actionButtonText_]]</cr-button>
</div>
</cr-dialog>
</template>
<script src="startup_url_dialog.js"></script>
</dom-module>
|