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-01 09:12:28 -04:00
|
|
|
h3 Share Project
|
|
|
|
.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-01 10:15:54 -04:00
|
|
|
| This project is private and can only be accessed by the people below.
|
|
|
|
|
|
2014-07-01 10:05:32 -04:00
|
|
|
a(
|
|
|
|
href
|
|
|
|
ng-click="openMakePublicModal()"
|
|
|
|
) Make Public
|
|
|
|
.row.public-access-level(ng-show="project.publicAccesLevel != 'private'")
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-12.text-center
|
2014-07-01 10:05:32 -04:00
|
|
|
strong(ng-if="project.publicAccesLevel == 'readAndWrite'") This project is public and can be edited by anyone with the URL.
|
|
|
|
strong(ng-if="project.publicAccesLevel == 'readOnly'") This project is public and can be viewed by anyone with the URL.
|
2014-07-01 10:17:42 -04:00
|
|
|
|
|
2014-07-01 10:05:32 -04:00
|
|
|
a(
|
|
|
|
href
|
|
|
|
ng-click="openMakePrivateModal()"
|
|
|
|
) 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-07-01 09:12:28 -04:00
|
|
|
) Owner
|
|
|
|
.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-01 09:12:28 -04:00
|
|
|
span(ng-show="member.privileges == 'readAndWrite'") Can Edit
|
|
|
|
span(ng-show="member.privileges == 'readOnly'") Read Only
|
2014-07-03 10:05:35 -04:00
|
|
|
.col-xs-1
|
2014-07-01 09:12:28 -04:00
|
|
|
a(
|
|
|
|
href
|
|
|
|
tooltip="Remove collaborator"
|
|
|
|
tooltip-placement="bottom"
|
|
|
|
ng-click="removeMember(member)"
|
|
|
|
)
|
|
|
|
i.fa.fa-times
|
|
|
|
.row.invite-controls
|
|
|
|
form(ng-show="canAddCollaborators")
|
|
|
|
.small Share with your collaborators
|
|
|
|
.form-group
|
|
|
|
input.form-control(
|
|
|
|
type="email"
|
|
|
|
placeholder="Enter email address..."
|
|
|
|
ng-model="inputs.email"
|
|
|
|
focus-on="open"
|
|
|
|
)
|
|
|
|
.form-group
|
|
|
|
.pull-right
|
|
|
|
select.privileges.form-control(
|
|
|
|
ng-model="inputs.privileges"
|
|
|
|
name="privileges"
|
|
|
|
)
|
|
|
|
option(value="readAndWrite") Can Edit
|
|
|
|
option(value="readOnly") Read Only
|
|
|
|
|
|
|
|
|
button.btn.btn-info(
|
|
|
|
type="submit"
|
|
|
|
ng-click="addMember()"
|
|
|
|
) Share
|
|
|
|
div.text-center(ng-hide="canAddCollaborators")
|
|
|
|
p You need to upgrade your account to add more collaborators.
|
2014-07-01 09:16:41 -04:00
|
|
|
p
|
2014-07-17 07:57:17 -04:00
|
|
|
a.btn.btn-info(href, ng-click="startFreeTrial('projectMembers')") Start Free Trial
|
|
|
|
p.small(ng-show="startedFreeTrial")
|
2014-07-01 09:16:41 -04:00
|
|
|
| Please refresh this page after starting your 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-01 10:05:32 -04:00
|
|
|
) Done
|
|
|
|
|
|
|
|
script(type="text/ng-template", id="makePublicModalTemplate")
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
|
|
|
) ×
|
|
|
|
h3 Make project public?
|
|
|
|
.modal-body.modal-body-share
|
|
|
|
p If you make your project public then anyone with the URL will be able to access it.
|
|
|
|
p
|
|
|
|
select.form-control(
|
|
|
|
ng-model="inputs.privileges"
|
|
|
|
name="privileges"
|
|
|
|
)
|
|
|
|
option(value="readAndWrite") Allow public editing
|
|
|
|
option(value="readOnly") Allow public read only access
|
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default(
|
|
|
|
ng-click="cancel()"
|
|
|
|
) Cancel
|
|
|
|
button.btn.btn-info(
|
|
|
|
ng-click="makePublic()"
|
|
|
|
) Make public
|
|
|
|
|
|
|
|
script(type="text/ng-template", id="makePrivateModalTemplate")
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
|
|
|
) ×
|
|
|
|
h3 Make project private?
|
|
|
|
.modal-body.modal-body-share
|
2014-07-22 09:38:32 -04:00
|
|
|
p If you make your project private then only the people you choose to share it with will have access.
|
2014-07-01 10:05:32 -04:00
|
|
|
.modal-footer
|
|
|
|
button.btn.btn-default(
|
|
|
|
ng-click="cancel()"
|
|
|
|
) Cancel
|
|
|
|
button.btn.btn-info(
|
|
|
|
ng-click="makePrivate()"
|
|
|
|
) Make private
|