@(relationForm: Form[beans.PartsListBean],childName:String)(implicit lang: Lang)
@import helper._
@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.f) } 
@main("Update relation by Play 2.1") {
	<h1>@Messages("title3")</h1>
	@form(routes.PartsListController.relationUpdate(childName)) {
		<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.link4") >
		</div>
	}
	@form(routes.PartsListController.relationDelete(relationForm("parent").value.get, relationForm("child").value.get), 'class -> "topRight") {
		<input type="submit" value=@Messages("list.link15") class="btn danger">
	}	
	<a href="/single_partslist?page=0&key=">@Messages("list.link2")</a>
		
}
