2014-07-01 09:12:28 -04:00
|
|
|
script(type='text/ng-template', id='shareProjectModalTemplate')
|
|
|
|
.modal-header
|
2014-07-01 10:05:32 -04:00
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
|
|
|
) ×
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("share_project")}
|
2014-07-01 09:12:28 -04:00
|
|
|
.modal-body.modal-body-share
|
|
|
|
.container-fluid
|
2014-07-01 10:05:32 -04:00
|
|
|
.row.public-access-level(ng-show="project.publicAccesLevel == 'private'")
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-12.text-center
|
2014-07-31 12:07:43 -04:00
|
|
|
| #{translate("this_project_is_private")}
|
2014-07-01 10:15:54 -04:00
|
|
|
|
|
2014-07-01 10:05:32 -04:00
|
|
|
a(
|
|
|
|
href
|
|
|
|
ng-click="openMakePublicModal()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("make_public")}
|
2014-07-01 10:05:32 -04:00
|
|
|
.row.public-access-level(ng-show="project.publicAccesLevel != 'private'")
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-12.text-center
|
2014-07-31 12:07:43 -04:00
|
|
|
strong(ng-if="project.publicAccesLevel == 'readAndWrite'") #{translate("this_project_is_public")}
|
2014-09-20 04:20:36 -04:00
|
|
|
strong(ng-if="project.publicAccesLevel == 'readOnly'") #{translate("this_project_is_public_read_only")}
|
2014-07-01 10:17:42 -04:00
|
|
|
|
|
2014-07-01 10:05:32 -04:00
|
|
|
a(
|
|
|
|
href
|
|
|
|
ng-click="openMakePrivateModal()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("make_private")}
|
2014-07-01 09:12:28 -04:00
|
|
|
.row.project-member
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-8 {{ project.owner.email }}
|
2014-07-01 09:12:28 -04:00
|
|
|
.text-right(
|
2014-07-03 10:05:35 -04:00
|
|
|
ng-class="{'col-xs-3': project.members.length > 0, 'col-xs-4': project.members.length == 0}"
|
2014-09-26 11:35:57 -04:00
|
|
|
) #{translate("owner")}
|
2014-07-01 09:12:28 -04:00
|
|
|
.row.project-member(ng-repeat="member in project.members")
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-8 {{ member.email }}
|
|
|
|
.col-xs-3.text-right
|
2014-07-31 12:07:43 -04:00
|
|
|
span(ng-show="member.privileges == 'readAndWrite'") #{translate("can_edit")}
|
|
|
|
span(ng-show="member.privileges == 'readOnly'") #{translate("read_only")}
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-1
|
2014-07-01 09:12:28 -04:00
|
|
|
a(
|
|
|
|
href
|
2014-08-20 09:31:44 -04:00
|
|
|
tooltip="#{translate('remove_collaborator')}"
|
2014-07-01 09:12:28 -04:00
|
|
|
tooltip-placement="bottom"
|
|
|
|
ng-click="removeMember(member)"
|
|
|
|
)
|
|
|
|
i.fa.fa-times
|
|
|
|
.row.invite-controls
|
|
|
|
form(ng-show="canAddCollaborators")
|
2014-07-31 12:07:43 -04:00
|
|
|
.small #{translate("share_with_your_collabs")}
|
2014-07-01 09:12:28 -04:00
|
|
|
.form-group
|
2015-10-07 12:32:35 -04:00
|
|
|
tags-input(
|
|
|
|
template="shareTagTemplate"
|
2015-09-02 07:20:37 -04:00
|
|
|
placeholder="joe@example.com, sue@example.com, ..."
|
2015-10-07 12:32:35 -04:00
|
|
|
ng-model="inputs.contacts"
|
2014-07-01 09:12:28 -04:00
|
|
|
focus-on="open"
|
2015-10-08 13:17:53 -04:00
|
|
|
display-property="display"
|
2015-10-07 12:32:35 -04:00
|
|
|
key-property="id"
|
|
|
|
add-on-paste="true"
|
2014-07-01 09:12:28 -04:00
|
|
|
)
|
2015-10-07 12:32:35 -04:00
|
|
|
auto-complete(
|
|
|
|
source="filterAutocompleteUsers($query)"
|
|
|
|
template="shareAutocompleteTemplate"
|
|
|
|
display-property="email"
|
|
|
|
min-length="0"
|
|
|
|
)
|
2014-07-01 09:12:28 -04:00
|
|
|
.form-group
|
|
|
|
.pull-right
|
|
|
|
select.privileges.form-control(
|
|
|
|
ng-model="inputs.privileges"
|
|
|
|
name="privileges"
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
option(value="readAndWrite") #{translate("can_edit")}
|
|
|
|
option(value="readOnly") #{translate("read_only")}
|
2014-07-01 09:12:28 -04:00
|
|
|
|
|
|
|
|
button.btn.btn-info(
|
|
|
|
type="submit"
|
2015-09-02 07:20:37 -04:00
|
|
|
ng-click="addMembers()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("share")}
|
2014-07-01 09:12:28 -04:00
|
|
|
div.text-center(ng-hide="canAddCollaborators")
|
2014-07-31 12:07:43 -04:00
|
|
|
p #{translate("need_to_upgrade_for_more_collabs")}.
|
2014-11-24 18:59:55 -05:00
|
|
|
p(ng-controller="FreeTrialModalController")
|
|
|
|
a.btn(href, ng-click="startFreeTrial('projectMembers')", ng-class="buttonClass") #{translate("start_free_trial")}
|
2014-07-17 07:57:17 -04:00
|
|
|
p.small(ng-show="startedFreeTrial")
|
2014-07-31 12:07:43 -04:00
|
|
|
| #{translate("refresh_page_after_starting_free_trial")}.
|
2014-07-01 09:12:28 -04:00
|
|
|
|
|
|
|
.modal-footer
|
|
|
|
.modal-footer-left
|
|
|
|
i.fa.fa-refresh.fa-spin(ng-show="state.inflight")
|
|
|
|
span.text-danger.error(ng-show="state.error") {{ state.error }}
|
|
|
|
button.btn.btn-primary(
|
|
|
|
ng-click="done()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("done")}
|
2014-07-01 10:05:32 -04:00
|
|
|
|
|
|
|
script(type="text/ng-template", id="makePublicModalTemplate")
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
|
|
|
) ×
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("make_project_public")}?
|
2014-07-01 10:05:32 -04:00
|
|
|
.modal-body.modal-body-share
|
2014-07-31 12:07:43 -04:00
|
|
|
p #{translate("make_project_public_consequences")}
|
2014-07-01 10:05:32 -04:00
|
|
|
p
|
|
|
|
select.form-control(
|
|
|
|
ng-model="inputs.privileges"
|
|
|
|
name="privileges"
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
option(value="readAndWrite") #{translate("allow_public_editing")}
|
|
|
|
option(value="readOnly") #{translate("allow_public_read_only")}
|
2014-07-01 10:05:32 -04:00
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default(
|
|
|
|
ng-click="cancel()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("cancel")}
|
2014-07-01 10:05:32 -04:00
|
|
|
button.btn.btn-info(
|
|
|
|
ng-click="makePublic()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("make_public")}
|
2014-07-01 10:05:32 -04:00
|
|
|
|
|
|
|
script(type="text/ng-template", id="makePrivateModalTemplate")
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
|
|
|
) ×
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("make_project_private")}?
|
2014-07-01 10:05:32 -04:00
|
|
|
.modal-body.modal-body-share
|
2014-07-31 12:07:43 -04:00
|
|
|
p #{translate("make_project_private_consequences")}
|
2014-07-01 10:05:32 -04:00
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default(
|
|
|
|
ng-click="cancel()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("cancel")}
|
2014-07-01 10:05:32 -04:00
|
|
|
button.btn.btn-info(
|
|
|
|
ng-click="makePrivate()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("make_private")}
|
2015-10-07 12:32:35 -04:00
|
|
|
|
|
|
|
script(type="text/ng-template", id="shareTagTemplate")
|
|
|
|
.tag-template
|
|
|
|
span(ng-if="data.type")
|
|
|
|
i.fa.fa-fw(ng-class="{'fa-user': data.type == 'user', 'fa-group': data.type == 'group'}")
|
|
|
|
|
|
|
|
|
span {{$getDisplayText()}}
|
|
|
|
|
|
|
|
|
a(href, ng-click="$removeTag()").remove-button
|
|
|
|
i.fa.fa-fw.fa-close
|
|
|
|
|
|
|
|
script(type="text/ng-template", id="shareAutocompleteTemplate")
|
|
|
|
.autocomplete-template
|
2015-10-08 13:17:53 -04:00
|
|
|
div(ng-if="data.type == 'user'")
|
|
|
|
i.fa.fa-user
|
|
|
|
|
|
|
|
|
span(ng-bind-html="$highlight(data.email)")
|
|
|
|
div.subdued.small(ng-show="data.name", ng-bind-html="$highlight(data.name)")
|
|
|
|
div(ng-if="data.type == 'group'")
|
|
|
|
i.fa.fa-group
|
|
|
|
|
|
|
|
|
span(ng-bind-html="$highlight(data.name)")
|
|
|
|
div.subdued.small(ng-show="data.member_count") {{ data.memberCount }} members
|