DodoApp: Add optional name field to create app form

Change-Id: I03f6efaf9cf787e34c69da1b9a97913c195b2c8c
diff --git a/core/installer/welcome/dodo-app-tmpl/base.html b/core/installer/welcome/dodo-app-tmpl/base.html
index 4e9401b..450ab25 100644
--- a/core/installer/welcome/dodo-app-tmpl/base.html
+++ b/core/installer/welcome/dodo-app-tmpl/base.html
@@ -5,7 +5,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0">
     <title>{{ block "title" . }}{{ end }}</title>
     <link rel="stylesheet" href="/stat/pico.2.0.6.min.css">
-    <link rel="stylesheet" href="/stat/dodo_app.css?v=0.0.8">
+    <link rel="stylesheet" href="/stat/dodo_app.css?v=0.0.9">
 </head>
 <body class="container">
 	<nav aria-label="breadcrumb">
diff --git a/core/installer/welcome/dodo-app-tmpl/index.html b/core/installer/welcome/dodo-app-tmpl/index.html
index 865f0cf..67b20f6 100644
--- a/core/installer/welcome/dodo-app-tmpl/index.html
+++ b/core/installer/welcome/dodo-app-tmpl/index.html
@@ -4,6 +4,7 @@
 {{- define "content" -}}
 <form id="create-app" action="" method="POST">
 	<fieldset class="grid">
+		<input type="text" name="name" placeholder="name (optional)" />
 		<select name="network">
 			{{- range .Networks -}}
 			<option value="{{ .Name }}">{{ .Name }} - {{ .Domain }}</option>
diff --git a/core/installer/welcome/dodo_app.go b/core/installer/welcome/dodo_app.go
index b02f7e9..57de50e 100644
--- a/core/installer/welcome/dodo_app.go
+++ b/core/installer/welcome/dodo_app.go
@@ -856,8 +856,12 @@
 		http.Error(w, "missing type", http.StatusBadRequest)
 		return
 	}
-	g := installer.NewFixedLengthRandomNameGenerator(3)
-	appName, err := g.Generate()
+	appName := r.FormValue("name")
+	var err error
+	if appName == "" {
+		g := installer.NewFixedLengthRandomNameGenerator(3)
+		appName, err = g.Generate()
+	}
 	if err != nil {
 		http.Error(w, err.Error(), http.StatusInternalServerError)
 		return
diff --git a/core/installer/welcome/stat/dodo_app.css b/core/installer/welcome/stat/dodo_app.css
index 5a66768..627579f 100644
--- a/core/installer/welcome/stat/dodo_app.css
+++ b/core/installer/welcome/stat/dodo_app.css
@@ -78,7 +78,7 @@
 
 @media (min-width: 768px) {
   fieldset.grid {
-    grid-template-columns: 1fr 1fr 1fr 200px;
+    grid-template-columns: 1fr 1fr 1fr 1fr 200px;
   }
 }