@(relationForm: Form[beans.PartsListBean], project:String, error:String)(implicit lang: Lang)
@import helper._
@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.f) } 
@main("Create relation by Play 2.1") {
	<h1>@Messages("title2")</h1>
	@Messages(error)
	@form(routes.PartsListController.relationRegistration(project)) {
		<fieldset>
			@inputText(relationForm("parent"), '_label -> Messages("list.header1"), 'readonly -> "readonly")
			@inputText(relationForm("child"), '_label -> Messages("list.header2"))

			@inputText(relationForm("quantity"), '_label -> Messages("list.header3"))
			@inputText(relationForm("relationKey"), '_label -> Messages("list.header12"))
		</fieldset>
		<div class="action">
			<input type="submit" class="btn primary" value=@Messages("list.link3") >
		</div>
	}	
	<a href="/single_partslist?page=0&key=&relationKey=">@Messages("list.link2")</a>
	<br />
	<a href="/list?page=0&key=">@Messages("list.link5")</a>
}
