X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/cab8fbece33e9c6188b911552790f459c740f4cd..e3d13624759c128c326b64e9e0e60996bd28aadf:/src/views-components/form-fields/repository-form-fields.tsx

diff --git a/src/views-components/form-fields/repository-form-fields.tsx b/src/views-components/form-fields/repository-form-fields.tsx
new file mode 100644
index 00000000..56f1c1b2
--- /dev/null
+++ b/src/views-components/form-fields/repository-form-fields.tsx
@@ -0,0 +1,20 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
+import * as React from "react";
+import { Field } from "redux-form";
+import { TextField } from "~/components/text-field/text-field";
+import { REPOSITORY_NAME_VALIDATION } from "~/validators/validators";
+
+export const RepositoryNameField = () =>
+    <span>
+        pawelkowalczyk/
+        <Field
+            name='name'
+            component={TextField}
+            validate={REPOSITORY_NAME_VALIDATION}
+            label="Name"
+            autoFocus={true} />.git<br/>
+            It may take a minute or two before you can clone your new repository.
+            </span>;
\ No newline at end of file
