habitica/views/options/social/hall.jade

95 lines
3.7 KiB
Text
Raw Normal View History

script(type='text/ng-template', id='partials/options.social.hall.html')
2014-04-15 22:40:21 +00:00
ul.options-submenu
li(ng-class="{ active: $state.includes('options.social.hall.heroes') }")
a(ui-sref='options.social.hall.heroes')
2014-01-22 22:34:06 +00:00
=env.t('hallHeroes')
li(ng-class="{ active: $state.includes('options.social.hall.patrons') }")
a(ui-sref='options.social.hall.patrons')
2014-01-22 22:34:06 +00:00
=env.t('hallPatrons')
.tab-content
.tab-pane.active
div(ui-view)
script(type='text/ng-template', id='partials/options.social.hall.heroes.html')
.well(ng-if='user.contributor.admin')
2014-01-22 22:34:06 +00:00
h2=env.t('rewardUser')
2014-02-08 19:07:37 +00:00
form(ng-submit='loadHero(_heroID)')
.form-group
input.form-control(type='text', ng-model='_heroID', placeholder=env.t('UUID'))
2014-02-08 19:07:37 +00:00
.form-group
input.btn.btn-default(type='submit')=env.t('loadUser')
2014-02-08 19:07:37 +00:00
form(ng-show='hero', ng-submit='saveHero(hero)')
h3 {{hero.profile.name}}
.form-group
input.form-control(type='text', ng-model='hero.contributor.text', placeholder=env.t('contribTitle'))
.form-group
2014-02-08 19:07:37 +00:00
label=env.t('contribLevel')
input.form-control(type='number', step="any", ng-model='hero.contributor.level')
small=env.t('contribHallText')
a(target='_blank', href='https://trello.com/c/wkFzONhE/277-contributor-gear')=env.t('moreDetails')
.form-group
2014-02-08 19:07:37 +00:00
textarea.form-control(cols=5, placeholder=env.t('contributions'), ng-model='hero.contributor.contributions')
include ../../shared/formatting-help
.form-group
.checkbox
label
input(type='checkbox', ng-model='hero.contributor.admin')
2014-01-22 22:34:06 +00:00
=env.t('admin')
hr
.form-group
2014-02-08 19:07:37 +00:00
label=env.t('balance')
input.form-control(type='number', step="any", ng-model='hero.balance')
2014-02-08 19:07:37 +00:00
small!= '`user.balance`' + env.t('notGems')
.form-group
.checkbox
label
input(type='checkbox', ng-model='hero.purchased.ads')
=env.t('hideAds')
2014-02-08 19:07:37 +00:00
// h4 Backer Status
// Add backer stuff like tier, disable adds, etcs
.form-group
input.form-control.btn.btn-primary(type='submit')=env.t('save')
table.table.table-striped
thead
tr
th=env.t('name')
th(ng-if='user.contributor.admin')=env.t('UUID')
th=env.t('contribLevel')
th=env.t('title')
th=env.t('contributions')
tbody
tr(ng-repeat='hero in heroes')
td
span(ng-if='hero.contributor.admin',popover=env.t('gamemaster'),popover-trigger='mouseenter',popover-placement='right')
a.label.label-default(ng-class='userLevelStyle(hero)', ng-click='clickMember(hero._id, true)')
| {{hero.profile.name}} 
span.glyphicon.glyphicon-star
span(ng-if='!hero.contributor.admin')
a.label.label-default(ng-class='userLevelStyle(hero)', ng-click='clickMember(hero._id, true)') {{hero.profile.name}}
td(ng-if='user.contributor.admin') {{hero._id}}
td {{hero.contributor.level}}
td {{hero.contributor.text}}
td
markdown(ng-model='hero.contributor.contributions', target='_blank')
script(type='text/ng-template', id='partials/options.social.hall.patrons.html')
table.table.table-striped(infinite-scroll="loadMore()")
thead
tr
th=env.t('name')
th(ng-if='user.contributor.admin')=env.t('UUID')
th=env.t('backerTier')
tbody
tr(ng-repeat='patron in patrons')
td
a.label.label-default(ng-class='userLevelStyle(patron)', ng-click='clickMember(patron._id, true)') {{patron.profile.name}}
td(ng-if='user.contributor.admin') {{patron._id}}
td {{patron.backer.tier}}