UX: Add groups/custom/new route for admins to create a new group.

This commit is contained in:
Guo Xiang Tan
2018-03-27 16:45:21 +08:00
parent 558914b986
commit 7edab1c0b9
18 changed files with 535 additions and 61 deletions

View File

@@ -403,6 +403,17 @@ en:
remove_user_as_group_owner: "Revoke owner"
groups:
new:
title: "New Group"
description: "Create a new group"
create: "Create"
name:
too_short: "Group name is too short"
too_long: "Group name is too long"
checking: "Checking group name availability..."
available: "Group name is available"
not_available: "Group name is not available"
blank: "Group name cannot be blank"
manage:
title: 'Manage'
name: 'Name'
@@ -452,7 +463,6 @@ en:
submit: "Submit Request"
title: "Request to join @%{group_name}"
reason: "Let the group owners know why you belong in this group"
membership: "Membership"
name: "Name"
user_count: "Members Count"

View File

@@ -462,6 +462,7 @@ Discourse::Application.routes.draw do
get 'logs' => 'groups#histories'
collection do
get 'custom/new' => 'groups#new', constraints: AdminConstraint.new
get "search" => "groups#search"
end