blob: 1db68ba5304886ae00d34526bab8ef762d356ac3 (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<link rel="import" href="chrome://resources/polymer/v1_0/polymer/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-collapse/iron-collapse.html">
<link rel="import" href="chrome://resources/polymer/v1_0/iron-flex-layout/classes/iron-flex-layout.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input.html">
<dom-module id="cr-search-engine-adder">
<link rel="import" type="css" href="search_engine_adder.css">
<template>
<div class="layout horizontal center justified">
<span i18n-content="searchEnginesAddSearchEngineLabel"></span>
<cr-expand-button expanded="{{opened}}"></cr-expand-button>
</div>
<iron-collapse opened="{{opened}}">
<div class="settings-box">
<div class="container layout horizontal">
<div class="input-field flex two">
<div class="input-label" i18n-content="searchEnginesDomainLabel">
</div>
<paper-input id="domainField" auto-validate="false" required>
</paper-input>
</div>
<div class="input-field flex two">
<div class="input-label" i18n-content="searchEnginesKeywordLabel">
</div>
<paper-input id="keywordField" auto-validate="false" required>
</paper-input>
</div>
<div class="input-field flex four">
<div class="input-label" i18n-content="searchEnginesQueryURLLabel">
</div>
<paper-input id="queryURLField" auto-validate="false" required>
</paper-input>
</div>
<div class="layout horizontal center">
<paper-button i18n-content="searchEnginesAddButtonLabel"
on-tap="add_" raised>
</paper-button>
</div>
</div>
</div>
</iron-collapse>
</template>
<script src="search_engine_adder.js"></script>
</dom-module>
|