diff --git a/src/main/twirl/gitbucket/core/account/creategroup.scala.html b/src/main/twirl/gitbucket/core/account/creategroup.scala.html index 04c3902..1e64635 100644 --- a/src/main/twirl/gitbucket/core/account/creategroup.scala.html +++ b/src/main/twirl/gitbucket/core/account/creategroup.scala.html @@ -3,7 +3,12 @@

Create group

- @gitbucket.core.account.html.groupform(None, members, s"${context.path}/groups/new", false) +
+ @gitbucket.core.account.html.groupform(None, members, false) +
+ +
+
} diff --git a/src/main/twirl/gitbucket/core/account/editgroup.scala.html b/src/main/twirl/gitbucket/core/account/editgroup.scala.html index ce7c59a..729c1a7 100644 --- a/src/main/twirl/gitbucket/core/account/editgroup.scala.html +++ b/src/main/twirl/gitbucket/core/account/editgroup.scala.html @@ -1,10 +1,19 @@ @(account: gitbucket.core.model.Account, members: List[gitbucket.core.model.GroupMember], info: Option[Any])(implicit context: gitbucket.core.controller.Context) +@import gitbucket.core.view.helpers @gitbucket.core.html.main("Edit group"){ @gitbucket.core.account.html.menu("profile", account.userName, true){ @gitbucket.core.helper.html.information(info)

Edit group

- @gitbucket.core.account.html.groupform(Some(account), members, s"${context.path}/${account.userName}/_editgroup", false) +
+ @gitbucket.core.account.html.groupform(Some(account), members, false) +
+ + +
+
} } diff --git a/src/main/twirl/gitbucket/core/account/groupform.scala.html b/src/main/twirl/gitbucket/core/account/groupform.scala.html index 6c01eeb..8a41b77 100644 --- a/src/main/twirl/gitbucket/core/account/groupform.scala.html +++ b/src/main/twirl/gitbucket/core/account/groupform.scala.html @@ -1,68 +1,53 @@ @(account: Option[gitbucket.core.model.Account], members: List[gitbucket.core.model.GroupMember], - formUrl: String, admin: Boolean)(implicit context: gitbucket.core.controller.Context) -@import gitbucket.core.view.helpers -
-
-
-
- -
- -
- - @if(account.isDefined && admin){ - - } -
-
- -
- -
- -
-
- -
- -
-
-
- - @gitbucket.core.helper.html.uploadavatar(account) -
-
-
-
- -
    -
- @gitbucket.core.helper.html.account("memberName", 200, true, false) - - -
- -
-
-
-
-
- @if(account.isDefined && !admin){ -
- Delete group +
+
+
+ +
+
- } - - @if(admin){ - Cancel - } -
- + + @if(account.isDefined && admin){ + + } +
+
+ +
+ +
+ +
+
+ +
+ +
+
+
+ + @gitbucket.core.helper.html.uploadavatar(account) +
+ +
+
+ + + @gitbucket.core.helper.html.account("memberName", 200, true, false) + + +
+ +
+
+
+