@(partForm: Form[forms.PartForm],id:Long, part:Part)(implicit lang: Lang)
@import helper._
@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.f) } 
@main("Update Part by Play 2.1") {
	<h1>@Messages("title7")</h1>
	
	<a href="/list?page=0&key=">@Messages("list.link5")</a>
	&nbsp
	<a href="/notifylist?page=0&partId=@part.id&notifyType=0&state=9">@Messages("notify.type0")@Messages("list.link19")</a>
	&nbsp
	<a href="/notifylist?page=0&partId=@part.id&notifyType=1&state=9">@Messages("notify.type1")@Messages("list.link19")</a>
	
	@form(routes.PartsMasterController.partModification(id:Long), 'enctype -> "multipart/form-data") {
		@commonPartForm(partForm)
	}
	@form(routes.PartsMasterController.partDelete(id), 'class -> "topRight") {
        <input type="submit" value=@Messages("list.link7") class="btn danger">
    }
    @form(routes.NotifyController.createNotify(part.id, 0)) {
    	<input type="submit" value=@Messages("btn.label2") class="btn success">
    }
    @form(routes.NotifyController.createNotify(part.id, 1)) {
    	<input type="submit" value=@Messages("btn.label3") class="btn success">
    }
   	<table>
   	<tr><th>@Messages("form.header2")</th><th></th></tr>
    @for(atach <- part.atachs) {
@*    		<tr><td><a href="/showAtach?fileName=@atach.fileName&contentType=@atach.contentType">@atach.fileName</a></td>*@
    		<tr><td><a href="/showAtach?id=@atach.id">@atach.fileName</a></td>
    		<td><a href="/dropAtach?id=@atach.id">@Messages("list.link14")</a></td></tr>
    }
   	</table>
   	<hr />
   	<table class="computers zebra-striped">
   	<tr><th>@Messages("form.header4")</th><th>@Messages("form.header5")</th></tr>
   	@for(member <- part.project.assign(part.project.head).users ) {
   		<tr><td>@member.name</td><td>@member.email</td></tr>
   	}	
   	</table>
	<a href="/list?page=0&key=">@Messages("list.link5")</a>
	&nbsp
	<a href="/notifylist?page=0&partId=@part.id&notifyType=0&state=9">@Messages("notify.type0")@Messages("list.link19")</a>
	&nbsp
	<a href="/notifylist?page=0&partId=@part.id&notifyType=1&state=9">@Messages("notify.type1")@Messages("list.link19")</a>

}
