2014-02-12 10:23:40 +00:00
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
2014-07-07 17:06:12 +00:00
|
|
|
.content.content-alt
|
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-10.col-md-offset-1
|
2015-10-05 15:36:56 +00:00
|
|
|
.card(ng-controller="SubscriptionGroupMembersController")
|
2014-07-07 17:06:12 +00:00
|
|
|
.page-header
|
|
|
|
.pull-right(ng-cloak)
|
2014-08-07 14:29:06 +00:00
|
|
|
small(ng-show="selectedUsers.length == 0") !{translate("you_have_added_x_of_group_size_y", {addedUsersSize:"<strong>{{ users.length }}</strong>", groupSize:"<strong>{{ groupSize }}</strong>"})}
|
2014-07-07 17:06:12 +00:00
|
|
|
a.btn.btn-danger(
|
|
|
|
href,
|
|
|
|
ng-show="selectedUsers.length > 0"
|
|
|
|
ng-click="removeMembers()"
|
2014-08-01 11:34:53 +00:00
|
|
|
) #{translate("remove_from_group")}
|
|
|
|
h1 #{translate("group_account")}
|
2014-07-07 17:06:12 +00: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 11:34:53 +00:00
|
|
|
span.header #{translate("email")}
|
2014-07-07 17:06:12 +00:00
|
|
|
.col-md-5
|
2014-08-01 11:34:53 +00:00
|
|
|
span.header #{translate("name")}
|
2014-07-07 17:06:12 +00:00
|
|
|
.col-md-2
|
2014-08-01 11:34:53 +00:00
|
|
|
span.header #{translate("registered")}
|
2014-07-07 17:06:12 +00:00
|
|
|
li.container-fluid(
|
|
|
|
ng-repeat="user in users | orderBy:'email':true",
|
2015-10-05 15:36:56 +00:00
|
|
|
ng-controller="SubscriptionGroupMemberListItemController"
|
2014-07-07 17:06:12 +00: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
|
|
|
|
i.fa.fa-check.text-success(ng-show="!user.holdingAccount")
|
|
|
|
i.fa.fa-times(ng-show="user.holdingAccount")
|
|
|
|
li(
|
|
|
|
ng-if="users.length == 0",
|
|
|
|
ng-cloak
|
|
|
|
)
|
|
|
|
.row
|
|
|
|
.col-md-12.text-centered
|
2014-08-01 11:34:53 +00:00
|
|
|
small #{translate("no_members")}
|
2014-07-07 17:06:12 +00:00
|
|
|
|
|
|
|
div(ng-if="users.length < groupSize", ng-cloak)
|
|
|
|
hr
|
|
|
|
p
|
2014-08-01 11:34:53 +00:00
|
|
|
.small #{translate("add_more_members")}
|
2014-07-07 17:06:12 +00:00
|
|
|
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()"
|
|
|
|
)
|
2015-05-28 19:54:41 +00:00
|
|
|
.col-xs-4
|
2014-08-01 11:34:53 +00:00
|
|
|
button.btn.btn-primary(ng-click="addMembers()") #{translate("add")}
|
2015-05-28 19:54:41 +00:00
|
|
|
.col-xs-2
|
|
|
|
a(href="/subscription/group/export") Export CSV
|
2014-07-07 17:06:12 +00:00
|
|
|
|
|
|
|
script(type="text/javascript").
|
|
|
|
window.users = !{JSON.stringify(users)};
|
|
|
|
window.groupSize = #{subscription.membersLimit};
|
2014-02-12 10:23:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|