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

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