added-attributes-dialog-and-init-creating-repos
[arvados-workbench2.git] / 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 (file)
index 0000000..56f1c1b
--- /dev/null
@@ -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