<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/cr_input/cr_input.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="network_shared_css.html">

<dom-module id="network-proxy-input">
  <template>
    <style include="network-shared">
      cr-input {
        margin: 0 var(--cr-button-edge-spacing);
      }

      #container {
        align-items: center;
        display: flex;
        flex: 0 1 auto;
        flex-direction: row;
      }

      #label {
        flex: 1;
      }

      #host {
        width: 200px;
      }

      #port {
        width: 50px;
      }
    </style>
    <div id="container">
      <div id="label">[[label]]</div>
      <cr-input id="host" readonly="[[!editable]]" value="{{value.Host}}"
          on-change="onValueChange_">
      </cr-input>
      <div>[[i18n('networkProxyPort')]]</div>
      <cr-input id="port" readonly="[[!editable]]" value="{{value.Port}}"
          on-change="onValueChange_">
      </cr-input>
    </div>
  </template>
  <script src="network_proxy_input.js"></script>
</dom-module>
