2014-02-12 05:23:40 -05:00
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
2014-07-07 13:06:12 -04:00
|
|
|
.content.content-alt
|
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-10.col-md-offset-1
|
2018-09-25 09:10:06 -04:00
|
|
|
.card(ng-controller="UserMembershipController")
|
2014-07-07 13:06:12 -04:00
|
|
|
.page-header
|
|
|
|
.pull-right(ng-cloak)
|
2018-09-25 09:10:06 -04:00
|
|
|
small(ng-show="groupSize && selectedUsers.length == 0") !{translate("you_have_added_x_of_group_size_y", {addedUsersSize:"<strong>{{ users.length }}</strong>", groupSize:"<strong>{{ groupSize }}</strong>"})}
|
2014-07-07 13:06:12 -04:00
|
|
|
a.btn.btn-danger(
|
|
|
|
href,
|
|
|
|
ng-show="selectedUsers.length > 0"
|
|
|
|
ng-click="removeMembers()"
|
2018-09-25 09:10:06 -04:00
|
|
|
) #{translate(translations.remove)}
|
|
|
|
h1 #{translate(translations.title)}
|
2014-07-07 13:06:12 -04:00
|
|
|
|
|
|
|
.row-spaced-small
|
|
|
|
ul.list-unstyled.structured-list(
|
|
|
|
select-all-list,
|
|
|
|
ng-cloak
|
|
|
|
)
|
|
|
|
li.container-fluid
|
|
|
|
.row
|
|
|
|
.col-md-5
|
|
|
|
input.select-all(
|
|
|
|
select-all,
|
|
|
|
type="checkbox"
|
|
|
|
)
|
2014-08-01 07:34:53 -04:00
|
|
|
span.header #{translate("email")}
|
2014-07-07 13:06:12 -04:00
|
|
|
.col-md-5
|
2014-08-01 07:34:53 -04:00
|
|
|
span.header #{translate("name")}
|
2014-07-07 13:06:12 -04:00
|
|
|
.col-md-2
|
2018-06-07 11:53:19 -04:00
|
|
|
span.header #{translate("accepted_invite")}
|
2014-07-07 13:06:12 -04:00
|
|
|
li.container-fluid(
|
|
|
|
ng-repeat="user in users | orderBy:'email':true",
|
2018-09-25 09:10:06 -04:00
|
|
|
ng-controller="UserMembershipListItemController"
|
2014-07-07 13:06:12 -04:00
|
|
|
)
|
|
|
|
.row
|
|
|
|
.col-md-5
|
|
|
|
input.select-item(
|
|
|
|
select-individual,
|
|
|
|
type="checkbox",
|
|
|
|
ng-model="user.selected"
|
|
|
|
)
|
|
|
|
span.email {{ user.email }}
|
|
|
|
.col-md-5
|
|
|
|
span.name {{ user.first_name }} {{ user.last_name }}
|
|
|
|
.col-md-2
|
|
|
|
span.registered
|
2018-06-07 09:10:01 -04:00
|
|
|
i.fa.fa-check.text-success(ng-show="!user.invite")
|
|
|
|
i.fa.fa-times(ng-show="user.invite")
|
2014-07-07 13:06:12 -04:00
|
|
|
li(
|
|
|
|
ng-if="users.length == 0",
|
|
|
|
ng-cloak
|
|
|
|
)
|
|
|
|
.row
|
|
|
|
.col-md-12.text-centered
|
2014-08-01 07:34:53 -04:00
|
|
|
small #{translate("no_members")}
|
2014-07-07 13:06:12 -04:00
|
|
|
|
2018-04-17 11:09:22 -04:00
|
|
|
hr
|
2018-09-25 09:10:06 -04:00
|
|
|
div(ng-if="!groupSize || users.length < groupSize", ng-cloak)
|
2018-04-17 11:09:22 -04:00
|
|
|
p.small #{translate("add_more_members")}
|
|
|
|
form.form
|
|
|
|
.row
|
|
|
|
.col-xs-6
|
|
|
|
input.form-control(
|
|
|
|
name="email",
|
|
|
|
type="text",
|
|
|
|
placeholder="jane@example.com, joe@example.com",
|
|
|
|
ng-model="inputs.emails",
|
|
|
|
on-enter="addMembers()"
|
|
|
|
)
|
|
|
|
.col-xs-4
|
|
|
|
button.btn.btn-primary(ng-click="addMembers()") #{translate("add")}
|
2018-09-25 09:10:06 -04:00
|
|
|
.col-xs-2(ng-if="paths.exportMembers", ng-cloak)
|
|
|
|
a(href=paths.exportMembers) Export CSV
|
2018-04-17 11:09:22 -04:00
|
|
|
|
2018-09-25 09:10:06 -04:00
|
|
|
div(ng-if="groupSize && users.length >= groupSize && users.length > 0", ng-cloak)
|
2018-04-17 11:09:22 -04:00
|
|
|
.row
|
2018-09-25 09:10:06 -04:00
|
|
|
.col-xs-2.col-xs-offset-10(ng-if="paths.exportMembers", ng-cloak)
|
|
|
|
a(href=paths.exportMembers) Export CSV
|
2018-04-17 11:09:22 -04:00
|
|
|
|
2014-07-07 13:06:12 -04:00
|
|
|
|
|
|
|
script(type="text/javascript").
|
|
|
|
window.users = !{JSON.stringify(users)};
|
2018-09-25 09:10:06 -04:00
|
|
|
window.paths = !{JSON.stringify(paths)};
|
|
|
|
window.groupSize = #{entity.membersLimit || 'null'};
|