habitica/views/options/groups/create-group.jade

28 lines
1.4 KiB
Text
Raw Normal View History

form.form-horizontal(x-bind='submit:groupCreate', data-type='{{type}}')
.alert.alert-danger(ng-show='_groupError') {{_groupError}}
.control-group.whatever-options
.control-group
label.control-label(for='new-group-name') {{text}} Name
.controls
input#new-group-name.input-medium.option-content(required, type='text', placeholder='{{text}} Name', value='{{_new.group.name}}')
.control-group
label.control-label(for='new-group-description') Description
.controls
textarea#new-group-description.option-content(cols='3', placeholder='Description') {{_new.group.description}}
.control-group(ng-show='type=="guild"')
.controls
label.radio
input(type='radio', name='new-group-privacy', checked='{{"public"==_new.group.privacy}}')
| Public
label.radio
input(type='radio', name='new-group-privacy', checked='{{"private"==_new.group.privacy}}')
| Invite Only
input.btn(type='submit', ng-disabled='!_new.group.privacy && !_new.group.name', value='Create')
span.gem-cost 4 Gems
p
small
| The Gem cost promotes high quality guilds, and is transferred into your guild's bank for use as rewards in the upcoming Challenges feature!
.control-group(ng-show='type=="party"')
.controls
input.btn(type='submit', value='Create')