@(designChangeForm: Form[forms.DesignChangeForm], id: Long, delRelations: scala.collection.mutable.ArrayBuffer[beans.DesignChangeListBean], addRelations: org.squeryl.Query[PartRelation])(implicit lang: Lang)
@import helper._
@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.f) }
@main("update Design Change by Play 2.1") {
	<h1>@Messages("title22")</h1>
    <a href="/designchangelist?page=0&key=">@Messages("title21")@Messages("title15")</a>
	&nbsp
	<a href="/designChangeNotifylist?page=0&designChangeId=@id&notifyType=3&state=9">@Messages("notify.type0")@Messages("list.link19")</a>
	&nbsp
	<a href="/designChangeNotifylist?page=0&designChangeId=@id&notifyType=4&state=9">@Messages("notify.type1")@Messages("list.link19")</a>
	
	@form(routes.DesignChangeController.designChangeCoverModification(id: Long)) {
		@commonDesignChangeForm(designChangeForm)
	}
	<hr />
	@Messages("title23")
	<table>
		<thead>
			<tr>
				<th>@Messages("form.header10")@Messages("list.header1")</th>
				<th>@Messages("form.header10")@Messages("list.header2")</th>
				<th>@Messages("form.header11")@Messages("list.header1")</th>
				<th>@Messages("form.header11")@Messages("list.header2")</th>
			</tr>
		</thead>
		<tbody>
			@for(delRelation <- delRelations.sortBy(dcb => dcb.dcSeq)) {
				<tr>
					<td>@delRelation.parentBefore</td>
					<td>@delRelation.childBefore</td>
					<td>@delRelation.parentAfter</td>
					<td>@delRelation.childAfter</td>
				</tr>
			}
		</tbody>
	</table>
	<br />
	@form(routes.DesignChangeController.designChangeCancel(id: Long)) {
		<input type="hidden" id="id" value=designChangeForm("id") >
		<input type="submit" class="btn success" value=@Messages("btn.label5") >
	}
    @form(routes.NotifyController.createNotify(0, id, 3)) {
    	<input type="submit" value=@Messages("btn.label2") class="btn success">
    }
    @form(routes.NotifyController.createNotify(0, id, 4)) {
    	<input type="submit" value=@Messages("btn.label3") class="btn success">
    }
	<br />
    <a href="/designchangelist?page=0&key=">@Messages("title21")@Messages("title15")</a>
	&nbsp
	<a href="/designChangeNotifylist?page=0&designChangeId=@id&notifyType=3&state=9">@Messages("notify.type0")@Messages("list.link19")</a>
	&nbsp
	<a href="/designChangeNotifylist?page=0&designChangeId=@id&notifyType=4&state=9">@Messages("notify.type1")@Messages("list.link19")</a>
	
}