OSDN Git Service

Refactoring
[open-pdm-light/PartList.git] / PartsList / PartsList / .target / views / showReplyForm.scala.html
index 2b3d3be..2321ab7 100644 (file)
@@ -1,9 +1,9 @@
-@(replyForm: Form[forms.ReplyForm], id: Long, partId: Long, notifyType: Long, replyType: Long, state: Long, reply:Reply)(implicit lang: Lang)
+@(replyForm: Form[forms.ReplyForm], id: Long, partId: Long, designChangeId: Long, notifyType: Long, replyType: Long, state: Long, reply:Reply)(implicit lang: Lang)
 @import helper._
 @implicitFiedConstructor = @{FieldConstructor(twitterBootstrapInput.f)}
 @main("showReply by Play 2.1") {
        <h1>@Messages("title18")</h1>
-       @form(routes.ReplyController.appendAtach(id, partId, notifyType, replyType, state), 'enctype -> "multipart/form-data") {
+       @form(routes.ReplyController.appendAtach(id, partId, designChangeId, notifyType, replyType, state), 'enctype -> "multipart/form-data") {
                @commonReplyForm(replyForm, replyType)
                <input type="submit" value=@Messages("list.header5") class="btn success">
        }
     }
        </table>
        <hr />
-       <a href="/notifylist?page=0&partId=@partId&notifyType=@notifyType&state=@state">@Messages("notify.type" + notifyType)@Messages("list.link19")</a>
+       @if(partId != 0) {
+               <a href="/notifylist?page=0&partId=@partId&notifyType=@notifyType&state=@state">@Messages("notify.type" + notifyType)@Messages("list.link19")</a>
+       } else {
+               <a href="/designChangeNotifylist?page=0&designChangeId=@designChangeId&notifyType=@notifyType&state=@state">@Messages("notify.type"+notifyType)@Messages("list.link19")</a>     
+       
+       }
 }
\ No newline at end of file