Files
initializr/templates/home.html
2014-06-25 07:54:31 +01:00

85 lines
3.5 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Spring Initializr</title>
<link rel="stylesheet"
href="/css/bootstrap.min.css"/>
</head>
<body>
<div class="container">
<div class="navbar">
<div class="navbar-inner">
<a class="brand"
href="https://spring.io">
Spring
</a>
<ul class="nav">
<li>
<a href="/" title="Download a template project or build file with some very basic content.">
Projects
</a>
</li>
<li>
<a href="/spring.zip" title="Download the spring CLI as a zip distribution (unpack and run bin/spring on a command line).">
Download
</a>
</li>
<li>
<a href="/install.sh" title="Installer for the spring CLI command on Un*x-like system (should work on Linux, Mac or Cygwin). Curl this link and pipe to bash, or download the script and run it.">
Installer
</a>
</li>
</ul>
</div>
</div>
<h1>Spring Initializr</h1>
<div>
<form id="form" action="/starter.zip" method="get">
<label for="groupId">Group:</label> <input id="groupId" type="text" value="org.demo" name="groupId"/>
<label for="artifactId">Artifact:</label> <input id="artifactId" type="text" value="demo" name="artifactId"/>
<label for="name">Name:</label> <input id="name" type="text" value="demo" name="name"/>
<label for="name">Description:</label> <input id="description" type="text" value="Demo project" name="description"/>
<label for="packageName">Package Name:</label> <input id="packageName" type="text" value="demo" name="packageName"/>
<label>Styles:</label>
<% styles.each { %>
<label class="checkbox">
<input type="checkbox" name="style" value="${it.value}"/>
${it.name}
</label><% } %>
<label>Type:</label>
<% types.each { %>
<label class="radio">
<input type="radio" name="type" value="${it.value}"${it.selected==true ? ' checked="true"' : ''} onclick="javascript:this.form.action='${it.action}'"/>
${it.name}
</label><% } %>
<label>Packaging:</label>
<% packagings.each { %>
<label class="radio">
<input type="radio" name="packaging" value="${it.value}"${it.selected==true ? ' checked="true"' : ''}/>
${it.name}
</label><% } %>
<label>Java Version:</label>
<% javaVersions.each { %>
<label class="radio">
<input type="radio" name="javaVersion" value="${it.value}"${it.selected==true ? ' checked="true"' : ''}/>
${it.value}
</label><% } %>
<label>Language:</label>
<% languages.each { %>
<label class="radio">
<input type="radio" name="language" value="${it.value}"${it.selected==true ? ' checked="true"' : ''}/>
${it.name}
</label><% } %>
<label>Spring Boot Version:</label>
<% bootVersions.each { %>
<label class="radio">
<input type="radio" name="bootVersion" value="${it.value}"${it.selected==true ? ' checked="true"' : ''}/>
${it.value}
</label><% } %>
<button type="submit" class="btn">Generate</button>
</form>
</div>
</div>
</body>
</html>