Show export user CSV even if the group has reached max capacity

This commit is contained in:
Alberto Fernández Capel 2018-04-17 16:09:22 +01:00
parent 37f009c3cd
commit 5d266c7f04

View file

@ -59,24 +59,29 @@ block content
.col-md-12.text-centered .col-md-12.text-centered
small #{translate("no_members")} small #{translate("no_members")}
hr
div(ng-if="users.length < groupSize", ng-cloak) div(ng-if="users.length < groupSize", ng-cloak)
hr p.small #{translate("add_more_members")}
p form.form
.small #{translate("add_more_members")} .row
form.form .col-xs-6
.row input.form-control(
.col-xs-6 name="email",
input.form-control( type="text",
name="email", placeholder="jane@example.com, joe@example.com",
type="text", ng-model="inputs.emails",
placeholder="jane@example.com, joe@example.com", on-enter="addMembers()"
ng-model="inputs.emails", )
on-enter="addMembers()" .col-xs-4
) button.btn.btn-primary(ng-click="addMembers()") #{translate("add")}
.col-xs-4 .col-xs-2
button.btn.btn-primary(ng-click="addMembers()") #{translate("add")} a(href="/subscription/group/export") Export CSV
.col-xs-2
a(href="/subscription/group/export") Export CSV div(ng-if="users.length >= groupSize && users.length > 0", ng-cloak)
.row
.col-xs-2.col-xs-offset-10
a(href="/subscription/group/export") Export CSV
script(type="text/javascript"). script(type="text/javascript").
window.users = !{JSON.stringify(users)}; window.users = !{JSON.stringify(users)};
@ -84,5 +89,3 @@ block content