Move group.scala.html to account package

This commit is contained in:
takezoe
2014-03-06 11:26:58 +09:00
parent 50d84835cb
commit c0f5cb1641
2 changed files with 3 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ trait AccountControllerBase extends AccountManagementControllerBase {
} }
get("/groups/new")(usersOnly { get("/groups/new")(usersOnly {
html.group(None, List((context.loginAccount.get.userName, true))) account.html.group(None, List((context.loginAccount.get.userName, true)))
}) })
post("/groups/new", newGroupForm)(usersOnly { form => post("/groups/new", newGroupForm)(usersOnly { form =>
@@ -198,7 +198,7 @@ trait AccountControllerBase extends AccountManagementControllerBase {
get("/:groupName/_editgroup")(managersOnly { get("/:groupName/_editgroup")(managersOnly {
defining(params("groupName")){ groupName => defining(params("groupName")){ groupName =>
html.group(getAccountByUserName(groupName, true), getGroupMembers(groupName)) account.html.group(getAccountByUserName(groupName, true), getGroupMembers(groupName))
} }
}) })

View File

@@ -1,7 +1,7 @@
@(account: Option[model.Account], members: List[(String, Boolean)])(implicit context: app.Context) @(account: Option[model.Account], members: List[(String, Boolean)])(implicit context: app.Context)
@import context._ @import context._
@import view.helpers._ @import view.helpers._
@main(if(account.isEmpty) "Create group" else "Edit group"){ @html.main(if(account.isEmpty) "Create group" else "Edit group"){
<div> <div>
<form id="form" method="post" action="@if(account.isEmpty){@path/groups/new} else {@path/@account.get.userName/_editgroup}" validate="true"> <form id="form" method="post" action="@if(account.isEmpty){@path/groups/new} else {@path/@account.get.userName/_editgroup}" validate="true">
<div class="row-fluid"> <div class="row-fluid">