2017-07-05 17:05:55 -07:00
|
|
|
<!--
|
2018-03-26 10:04:27 -04:00
|
|
|
@license
|
2017-07-05 17:05:55 -07:00
|
|
|
Copyright (C) 2017 The Android Open Source Project
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<link rel="import" href="../../../bower_components/polymer/polymer.html">
|
|
|
|
|
|
|
|
<link rel="import" href="../../../behaviors/base-url-behavior/base-url-behavior.html">
|
2018-07-30 17:14:49 -07:00
|
|
|
<link rel="import" href="../../../behaviors/gr-url-encoding-behavior/gr-url-encoding-behavior.html">
|
2017-07-05 17:05:55 -07:00
|
|
|
<link rel="import" href="../../../bower_components/iron-input/iron-input.html">
|
|
|
|
<link rel="import" href="../../../styles/gr-form-styles.html">
|
|
|
|
<link rel="import" href="../../../styles/shared-styles.html">
|
|
|
|
<link rel="import" href="../../shared/gr-autocomplete/gr-autocomplete.html">
|
|
|
|
<link rel="import" href="../../shared/gr-button/gr-button.html">
|
|
|
|
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
|
|
|
|
<link rel="import" href="../../shared/gr-select/gr-select.html">
|
|
|
|
|
2017-11-16 18:54:02 +00:00
|
|
|
<dom-module id="gr-create-repo-dialog">
|
2017-07-05 17:05:55 -07:00
|
|
|
<template>
|
|
|
|
<style include="shared-styles"></style>
|
|
|
|
<style include="gr-form-styles">
|
|
|
|
:host {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
input {
|
|
|
|
width: 20em;
|
|
|
|
}
|
|
|
|
gr-autocomplete {
|
|
|
|
border: none;
|
|
|
|
--gr-autocomplete: {
|
2018-04-11 15:32:06 -07:00
|
|
|
border: 1px solid var(--border-color);
|
2017-07-05 17:05:55 -07:00
|
|
|
border-radius: 2px;
|
2018-01-26 14:43:46 -08:00
|
|
|
font-size: var(--font-size-normal);
|
2017-07-05 17:05:55 -07:00
|
|
|
height: 2em;
|
|
|
|
padding: 0 .15em;
|
|
|
|
width: 20em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
|
2017-07-07 11:06:52 -07:00
|
|
|
<div class="gr-form-styles">
|
|
|
|
<div id="form">
|
|
|
|
<section>
|
2018-02-19 18:50:26 +09:00
|
|
|
<span class="title">Repository name</span>
|
2017-07-18 21:27:54 +00:00
|
|
|
<input is="iron-input"
|
2017-11-16 18:54:02 +00:00
|
|
|
id="repoNameInput"
|
2017-07-18 21:27:54 +00:00
|
|
|
autocomplete="on"
|
2017-11-16 18:54:02 +00:00
|
|
|
bind-value="{{_repoConfig.name}}">
|
2017-07-07 11:06:52 -07:00
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<span class="title">Rights inherit from</span>
|
2017-08-07 11:40:27 +00:00
|
|
|
<span class="value">
|
|
|
|
<gr-autocomplete
|
|
|
|
id="rightsInheritFromInput"
|
2017-11-16 18:54:02 +00:00
|
|
|
text="{{_repoConfig.parent}}"
|
2017-08-07 11:40:27 +00:00
|
|
|
query="[[_query]]"
|
|
|
|
placeholder="Optional, defaults to 'All-Projects'">
|
|
|
|
</gr-autocomplete>
|
|
|
|
</span>
|
2017-07-07 11:06:52 -07:00
|
|
|
</section>
|
|
|
|
<section>
|
|
|
|
<span class="title">Create initial empty commit</span>
|
|
|
|
<span class="value">
|
|
|
|
<gr-select
|
|
|
|
id="initalCommit"
|
2017-11-16 18:54:02 +00:00
|
|
|
bind-value="{{_repoConfig.create_empty_commit}}">
|
2017-07-07 11:06:52 -07:00
|
|
|
<select>
|
|
|
|
<option value="false">False</option>
|
|
|
|
<option value="true">True</option>
|
|
|
|
</select>
|
|
|
|
</gr-select>
|
|
|
|
</span>
|
|
|
|
</section>
|
|
|
|
<section>
|
2017-11-16 18:54:02 +00:00
|
|
|
<span class="title">Only serve as parent for other repositories</span>
|
2017-07-07 11:06:52 -07:00
|
|
|
<span class="value">
|
|
|
|
<gr-select
|
2017-11-16 18:54:02 +00:00
|
|
|
id="parentRepo"
|
2017-07-07 11:06:52 -07:00
|
|
|
is="gr-select"
|
2017-11-16 18:54:02 +00:00
|
|
|
bind-value="{{_repoConfig.permissions_only}}">
|
2017-07-07 11:06:52 -07:00
|
|
|
<select>
|
|
|
|
<option value="false">False</option>
|
|
|
|
<option value="true">True</option>
|
|
|
|
</select>
|
|
|
|
</gr-select>
|
|
|
|
</span>
|
|
|
|
</section>
|
2017-07-05 17:05:55 -07:00
|
|
|
</div>
|
2017-07-07 11:06:52 -07:00
|
|
|
</div>
|
2017-07-05 17:05:55 -07:00
|
|
|
<gr-rest-api-interface id="restAPI"></gr-rest-api-interface>
|
|
|
|
</template>
|
2017-11-16 18:54:02 +00:00
|
|
|
<script src="gr-create-repo-dialog.js"></script>
|
2017-07-05 17:05:55 -07:00
|
|
|
</dom-module>
|