6 changed files with 107 additions and 67 deletions
@ -1,5 +1,12 @@ |
|||||
extends layouts/room |
extends layouts/room |
||||
block content |
block content |
||||
|
|
||||
h1 Chat Home |
.content-block.uk-height-1-1.uk-overflow-auto |
||||
|
|
||||
|
h1 #{site.name} Chat |
||||
|
|
||||
|
p You can #[a(href='/chat/room/create') create] public and private chat rooms. A public room is listed in the public room directory, shown below. Private rooms are not listed in the directory and are unable to be found in search. |
||||
|
|
||||
|
p Rooms can be open, which means anyone can join them if they have them link. Rooms can also be closed, which means the room owner must invite people to join (and they have to accept). |
||||
|
|
||||
|
h2 Public Rooms |
@ -1,54 +0,0 @@ |
|||||
extends layouts/room |
|
||||
block content |
|
||||
|
|
||||
form(method="POST", action="/chat").uk-form |
|
||||
.uk-card.uk-card-default.uk-card-small |
|
||||
.uk-card-header |
|
||||
h1.uk-card-title Create Chat Room |
|
||||
.uk-card-body |
|
||||
.uk-margin |
|
||||
label(for="name").uk-form-label Room name |
|
||||
input(id="name", name="name", type="text", placeholder="Enter room name").uk-input |
|
||||
|
|
||||
.uk-margin |
|
||||
label(for="description").uk-form-label Room description |
|
||||
textarea(id="description", name="description", rows="2", placeholder="Enter room description").uk-textarea |
|
||||
|
|
||||
.uk-margin |
|
||||
label(for="policy").uk-form-label Room policy |
|
||||
textarea(id="policy", name="policy", rows="2", placeholder="Enter room use policy").uk-textarea |
|
||||
|
|
||||
.uk-margin |
|
||||
div(uk-grid) |
|
||||
.uk-width-auto |
|
||||
fieldset |
|
||||
legend Room Visibility |
|
||||
div(uk-grid).uk-grid-small.uk-flex-middle |
|
||||
.uk-width-auto |
|
||||
label |
|
||||
input(id="is-public", name="visibility", type="radio", value="public", checked).uk-radio |
|
||||
| Public |
|
||||
.ui-width-auto |
|
||||
label |
|
||||
input(id="is-private", name="visibility", type="radio", value="private").uk-radio |
|
||||
| Private |
|
||||
|
|
||||
.uk-width-auto |
|
||||
fieldset |
|
||||
legend Membership Policy |
|
||||
div(uk-grid).uk-grid-small.uk-flex-middle |
|
||||
.uk-width-auto |
|
||||
label |
|
||||
input(id="membership-open", name="policy", type="radio", value="open", checked).uk-radio |
|
||||
| Open |
|
||||
.uk-width-auto |
|
||||
label |
|
||||
input(id="membership-closed", name="policy", type="radio", value="closed").uk-radio |
|
||||
| Closed |
|
||||
|
|
||||
.uk-card-footer |
|
||||
div(uk-grid) |
|
||||
.uk-width-expand |
|
||||
+renderBackButton() |
|
||||
.uk-width-auto |
|
||||
button(type="submit").uk-button.uk-button-primary.uk-border-rounded Create room |
|
@ -0,0 +1,55 @@ |
|||||
|
extends ../layouts/room |
||||
|
block content |
||||
|
|
||||
|
.content-block.uk-height-1-1.uk-overflow-auto |
||||
|
form(method="POST", action="/chat").uk-form |
||||
|
.uk-card.uk-card-default.uk-card-small |
||||
|
.uk-card-header |
||||
|
h1.uk-card-title Create Chat Room |
||||
|
.uk-card-body |
||||
|
.uk-margin |
||||
|
label(for="name").uk-form-label Room name |
||||
|
input(id="name", name="name", type="text", placeholder="Enter room name").uk-input |
||||
|
|
||||
|
.uk-margin |
||||
|
label(for="description").uk-form-label Room description |
||||
|
textarea(id="description", name="description", rows="2", placeholder="Enter room description").uk-textarea |
||||
|
|
||||
|
.uk-margin |
||||
|
label(for="policy").uk-form-label Room policy |
||||
|
textarea(id="policy", name="policy", rows="2", placeholder="Enter room use policy").uk-textarea |
||||
|
|
||||
|
.uk-margin |
||||
|
div(uk-grid) |
||||
|
.uk-width-auto |
||||
|
fieldset |
||||
|
legend Room Visibility |
||||
|
div(uk-grid).uk-grid-small.uk-flex-middle |
||||
|
.uk-width-auto |
||||
|
label |
||||
|
input(id="is-public", name="visibility", type="radio", value="public", checked).uk-radio |
||||
|
| Public |
||||
|
.ui-width-auto |
||||
|
label |
||||
|
input(id="is-private", name="visibility", type="radio", value="private").uk-radio |
||||
|
| Private |
||||
|
|
||||
|
.uk-width-auto |
||||
|
fieldset |
||||
|
legend Membership Policy |
||||
|
div(uk-grid).uk-grid-small.uk-flex-middle |
||||
|
.uk-width-auto |
||||
|
label |
||||
|
input(id="membership-open", name="policy", type="radio", value="open", checked).uk-radio |
||||
|
| Open |
||||
|
.uk-width-auto |
||||
|
label |
||||
|
input(id="membership-closed", name="policy", type="radio", value="closed").uk-radio |
||||
|
| Closed |
||||
|
|
||||
|
.uk-card-footer |
||||
|
div(uk-grid) |
||||
|
.uk-width-expand |
||||
|
+renderBackButton() |
||||
|
.uk-width-auto |
||||
|
button(type="submit").uk-button.uk-button-primary.uk-border-rounded Create room |
@ -1,8 +1,8 @@ |
|||||
extends layouts/room |
extends ../layouts/room |
||||
block content |
block content |
||||
|
|
||||
include components/input-form |
include ../components/input-form |
||||
include components/message |
include ../components/message |
||||
|
|
||||
#site-chat-container.uk-flex.uk-flex-column.uk-height-1-1 |
#site-chat-container.uk-flex.uk-flex-column.uk-height-1-1 |
||||
div(uk-grid).uk-flex-middle.chat-menubar |
div(uk-grid).uk-flex-middle.chat-menubar |
Loading…
Reference in new issue