creating and deleting repos
[arvados-workbench2.git] / src / views-components / form-fields / repository-form-fields.tsx
index 56f1c1b295c9dd6baa28f071d220f579a070a504..932a5fe2f12de0a3a6769b94e528eaaf02976991 100644 (file)
@@ -6,15 +6,25 @@ 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";
+import { Grid } from "@material-ui/core";
 
-export const RepositoryNameField = () =>
-    <span>
-        pawelkowalczyk/
-        <Field
-            name='name'
-            component={TextField}
-            validate={REPOSITORY_NAME_VALIDATION}
-            label="Name"
-            autoFocus={true} />.git<br/>
+export const RepositoryNameField = (props: any) =>
+    <Grid container style={{ marginTop: '0', paddingTop: '24px' }}>
+        <Grid item xs={3}>
+            {props.data.user.username}/
+        </Grid>
+        <Grid item xs={7} style={{ bottom: '24px', position: 'relative' }}>
+            <Field
+                name='name'
+                component={TextField}
+                validate={REPOSITORY_NAME_VALIDATION}
+                label="Name"
+                autoFocus={true} />
+        </Grid>
+        <Grid item xs={2}>
+            .git
+        </Grid>
+        <Grid item xs={12}>
             It may take a minute or two before you can clone your new repository.
-            </span>;
\ No newline at end of file
+        </Grid>
+    </Grid>;
\ No newline at end of file