2014-07-16 09:59:52 -04:00
|
|
|
script(type='text/ng-template', id='newTagModalTemplate')
|
|
|
|
.modal-header
|
2014-07-23 06:26:45 -04:00
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
2020-01-27 08:53:27 -05:00
|
|
|
aria-label="Close"
|
|
|
|
)
|
|
|
|
span(aria-hidden="true") ×
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("create_new_folder")}
|
2014-07-16 09:59:52 -04:00
|
|
|
.modal-body
|
|
|
|
form(name="newTagForm", novalidate)
|
|
|
|
input.form-control(
|
|
|
|
type="text",
|
|
|
|
placeholder="New Folder Name",
|
|
|
|
required,
|
|
|
|
ng-model="inputs.newTagName",
|
|
|
|
on-enter="create()",
|
2014-07-16 10:04:37 -04:00
|
|
|
focus-on="open",
|
|
|
|
stop-propagation="click"
|
2014-07-16 09:59:52 -04:00
|
|
|
)
|
|
|
|
.modal-footer
|
2016-01-29 10:11:27 -05:00
|
|
|
.modal-footer-left
|
|
|
|
span.text-danger.error(ng-show="state.error") #{translate("generic_something_went_wrong")}
|
2014-07-16 10:04:37 -04:00
|
|
|
//- We stop propagation to stop the clicks from closing the
|
|
|
|
//- 'move to folder' menu.
|
2022-11-15 05:56:27 -05:00
|
|
|
button.btn.btn-secondary(
|
2014-07-16 10:04:37 -04:00
|
|
|
ng-click="cancel()"
|
|
|
|
stop-propagation="click"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("cancel")}
|
2014-07-16 09:59:52 -04:00
|
|
|
button.btn.btn-primary(
|
2016-01-29 10:11:27 -05:00
|
|
|
ng-disabled="newTagForm.$invalid || state.inflight"
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-click="create()"
|
2014-07-16 10:04:37 -04:00
|
|
|
stop-propagation="click"
|
2016-01-29 10:11:27 -05:00
|
|
|
)
|
|
|
|
span(ng-show="!state.inflight") #{translate("create")}
|
2020-04-22 05:35:33 -04:00
|
|
|
span(ng-show="state.inflight") #{translate("creating")}…
|
2014-07-16 09:59:52 -04:00
|
|
|
|
2016-01-28 10:11:57 -05:00
|
|
|
script(type='text/ng-template', id='deleteTagModalTemplate')
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
2020-01-27 08:53:27 -05:00
|
|
|
aria-label="Close"
|
|
|
|
)
|
|
|
|
span(aria-hidden="true") ×
|
2016-01-29 10:15:44 -05:00
|
|
|
h3 #{translate("delete_folder")}
|
2016-01-28 10:11:57 -05:00
|
|
|
.modal-body
|
2016-01-29 10:15:44 -05:00
|
|
|
p #{translate("about_to_delete_folder")}
|
2016-01-28 10:11:57 -05:00
|
|
|
ul
|
|
|
|
li
|
|
|
|
strong {{tag.name}}
|
|
|
|
.modal-footer
|
|
|
|
.modal-footer-left
|
|
|
|
span.text-danger.error(ng-show="state.error") #{translate("generic_something_went_wrong")}
|
2022-11-15 05:56:27 -05:00
|
|
|
button.btn.btn-secondary(
|
2016-01-28 10:11:57 -05:00
|
|
|
ng-click="cancel()"
|
|
|
|
) #{translate("cancel")}
|
|
|
|
button.btn.btn-danger(
|
|
|
|
ng-click="delete()",
|
|
|
|
ng-disabled="state.inflight"
|
|
|
|
)
|
2020-04-22 05:35:33 -04:00
|
|
|
span(ng-show="state.inflight") #{translate("deleting")}…
|
2016-01-28 10:11:57 -05:00
|
|
|
span(ng-show="!state.inflight") #{translate("delete")}
|
|
|
|
|
2016-01-28 13:18:22 -05:00
|
|
|
script(type='text/ng-template', id='renameTagModalTemplate')
|
|
|
|
.modal-header
|
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
2020-01-27 08:53:27 -05:00
|
|
|
aria-label="Close"
|
|
|
|
)
|
|
|
|
span(aria-hidden="true") ×
|
2016-01-29 10:15:44 -05:00
|
|
|
h3 #{translate("rename_folder")}
|
2016-01-28 13:18:22 -05:00
|
|
|
.modal-body
|
|
|
|
form(name="renameTagForm", novalidate)
|
|
|
|
input.form-control(
|
|
|
|
type="text",
|
|
|
|
placeholder="Tag Name",
|
|
|
|
ng-model="inputs.tagName",
|
|
|
|
required,
|
|
|
|
on-enter="rename()",
|
|
|
|
focus-on="open"
|
|
|
|
)
|
|
|
|
.modal-footer
|
|
|
|
.modal-footer-left
|
|
|
|
span.text-danger.error(ng-show="state.error") #{translate("generic_something_went_wrong")}
|
2022-11-15 05:56:27 -05:00
|
|
|
button.btn.btn-secondary(ng-click="cancel()") #{translate("cancel")}
|
2016-01-28 13:18:22 -05:00
|
|
|
button.btn.btn-primary(
|
|
|
|
ng-click="rename()",
|
|
|
|
ng-disabled="renameTagForm.$invalid || state.inflight"
|
|
|
|
)
|
|
|
|
span(ng-show="!state.inflight") #{translate("rename")}
|
2020-04-22 05:35:33 -04:00
|
|
|
span(ng-show="state.inflight") #{translate("renaming")}…
|
2016-01-28 13:18:22 -05:00
|
|
|
|
2014-07-16 09:59:52 -04:00
|
|
|
script(type='text/ng-template', id='renameProjectModalTemplate')
|
|
|
|
.modal-header
|
2014-07-23 06:26:45 -04:00
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
2020-01-27 08:53:27 -05:00
|
|
|
aria-label="Close"
|
|
|
|
)
|
|
|
|
span(aria-hidden="true") ×
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("rename_project")}
|
2014-07-16 09:59:52 -04:00
|
|
|
.modal-body
|
2018-10-09 12:09:49 -04:00
|
|
|
.alert.alert-danger(ng-show="state.error.message") {{state.error.message}}
|
2017-05-19 11:21:02 -04:00
|
|
|
.alert.alert-danger(ng-show="state.error && !state.error.message") #{translate("generic_something_went_wrong")}
|
2014-07-16 09:59:52 -04:00
|
|
|
form(name="renameProjectForm", novalidate)
|
|
|
|
input.form-control(
|
|
|
|
type="text",
|
|
|
|
placeholder="Project Name",
|
|
|
|
ng-model="inputs.projectName",
|
|
|
|
required,
|
|
|
|
on-enter="rename()",
|
|
|
|
focus-on="open"
|
|
|
|
)
|
|
|
|
.modal-footer
|
2022-11-15 05:56:27 -05:00
|
|
|
button.btn.btn-secondary(ng-click="cancel()") #{translate("cancel")}
|
2014-07-16 09:59:52 -04:00
|
|
|
button.btn.btn-primary(
|
|
|
|
ng-click="rename()",
|
2017-05-19 11:21:02 -04:00
|
|
|
ng-disabled="renameProjectForm.$invalid || state.inflight"
|
|
|
|
)
|
|
|
|
span(ng-show="!state.inflight") #{translate("rename")}
|
2020-04-22 05:35:33 -04:00
|
|
|
span(ng-show="state.inflight") #{translate("renaming")}…
|
2014-07-16 09:59:52 -04:00
|
|
|
|
|
|
|
script(type='text/ng-template', id='cloneProjectModalTemplate')
|
|
|
|
.modal-header
|
2014-07-23 06:26:45 -04:00
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
2020-01-27 08:53:27 -05:00
|
|
|
aria-label="Close"
|
|
|
|
)
|
|
|
|
span(aria-hidden="true") ×
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("copy_project")}
|
2014-07-16 09:59:52 -04:00
|
|
|
.modal-body
|
2018-10-10 10:04:17 -04:00
|
|
|
.alert.alert-danger(ng-show="state.error.message") {{state.error.message === "invalid element name" ? "#{translate("invalid_element_name")}" : state.error.message}}
|
2017-05-19 11:21:02 -04:00
|
|
|
.alert.alert-danger(ng-show="state.error && !state.error.message") #{translate("generic_something_went_wrong")}
|
2014-07-16 09:59:52 -04:00
|
|
|
form(name="cloneProjectForm", novalidate)
|
|
|
|
.form-group
|
2014-07-31 12:07:43 -04:00
|
|
|
label #{translate("new_name")}
|
2014-07-16 09:59:52 -04:00
|
|
|
input.form-control(
|
|
|
|
type="text",
|
|
|
|
placeholder="New Project Name",
|
|
|
|
required,
|
|
|
|
ng-model="inputs.projectName",
|
|
|
|
on-enter="clone()",
|
|
|
|
focus-on="open"
|
|
|
|
)
|
|
|
|
.modal-footer
|
2022-11-15 05:56:27 -05:00
|
|
|
button.btn.btn-secondary(
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-disabled="state.inflight"
|
|
|
|
ng-click="cancel()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("cancel")}
|
2014-07-16 09:59:52 -04:00
|
|
|
button.btn.btn-primary(
|
|
|
|
ng-disabled="cloneProjectForm.$invalid || state.inflight"
|
|
|
|
ng-click="clone()"
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
span(ng-hide="state.inflight") #{translate("copy")}
|
2020-04-22 05:35:33 -04:00
|
|
|
span(ng-show="state.inflight") #{translate("copying")} …
|
2014-07-16 09:59:52 -04:00
|
|
|
|
|
|
|
script(type='text/ng-template', id='newProjectModalTemplate')
|
|
|
|
.modal-header
|
2014-07-23 06:26:45 -04:00
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
2020-01-27 08:53:27 -05:00
|
|
|
aria-label="Close"
|
|
|
|
)
|
|
|
|
span(aria-hidden="true") ×
|
2014-07-31 12:07:43 -04:00
|
|
|
h3 #{translate("new_project")}
|
2014-07-16 09:59:52 -04:00
|
|
|
.modal-body
|
2018-10-09 12:09:49 -04:00
|
|
|
.alert.alert-danger(ng-show="state.error.message") {{state.error.message}}
|
2017-05-19 11:21:02 -04:00
|
|
|
.alert.alert-danger(ng-show="state.error && !state.error.message") #{translate("generic_something_went_wrong")}
|
2014-07-16 09:59:52 -04:00
|
|
|
form(novalidate, name="newProjectForm")
|
|
|
|
input.form-control(
|
|
|
|
type="text",
|
|
|
|
placeholder="Project Name",
|
|
|
|
required,
|
|
|
|
ng-model="inputs.projectName",
|
|
|
|
on-enter="create()",
|
|
|
|
focus-on="open"
|
|
|
|
)
|
|
|
|
.modal-footer
|
2022-11-15 05:56:27 -05:00
|
|
|
button.btn.btn-secondary(
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-disabled="state.inflight"
|
|
|
|
ng-click="cancel()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("cancel")}
|
2014-07-16 09:59:52 -04:00
|
|
|
button.btn.btn-primary(
|
|
|
|
ng-disabled="newProjectForm.$invalid || state.inflight"
|
|
|
|
ng-click="create()"
|
|
|
|
)
|
2014-07-31 12:07:43 -04:00
|
|
|
span(ng-hide="state.inflight") #{translate("create")}
|
2021-08-24 04:54:07 -04:00
|
|
|
span(ng-show="state.inflight") #{translate("creating")}…
|
2014-07-16 09:59:52 -04:00
|
|
|
|
2019-11-25 10:41:12 -05:00
|
|
|
script(type='text/ng-template', id='archiveTrashLeaveOrDeleteProjectsModalTemplate')
|
2014-07-16 09:59:52 -04:00
|
|
|
.modal-header
|
2014-07-23 06:26:45 -04:00
|
|
|
button.close(
|
|
|
|
type="button"
|
|
|
|
data-dismiss="modal"
|
|
|
|
ng-click="cancel()"
|
2020-01-27 08:53:27 -05:00
|
|
|
aria-label="Close"
|
|
|
|
)
|
|
|
|
span(aria-hidden="true") ×
|
2019-11-25 10:41:12 -05:00
|
|
|
h3(ng-if="action === 'archive'") #{translate("archive_projects")}
|
|
|
|
h3(ng-if="action === 'trash'") #{translate("trash_projects")}
|
|
|
|
h3(ng-if="action === 'leave'") #{translate("leave_projects")}
|
|
|
|
h3(ng-if="action === 'delete'") #{translate("delete_projects")}
|
|
|
|
h3(ng-if="action === 'leaveOrDelete'") #{translate("delete_and_leave_projects")}
|
2014-07-16 09:59:52 -04:00
|
|
|
.modal-body
|
2019-11-25 10:41:12 -05:00
|
|
|
div(ng-if="action !== 'leaveOrDelete'")
|
|
|
|
p(ng-if="action === 'archive'") #{translate("about_to_archive_projects")}
|
|
|
|
p(ng-if="action === 'trash'") #{translate("about_to_trash_projects")}
|
|
|
|
p(ng-if="action === 'leave'") #{translate("about_to_leave_projects")}
|
|
|
|
p(ng-if="action === 'delete'") #{translate("about_to_delete_projects")}
|
2014-07-16 09:59:52 -04:00
|
|
|
ul
|
2019-11-25 10:41:12 -05:00
|
|
|
li(ng-repeat="project in projects | orderBy:'name'")
|
|
|
|
strong {{project.name}}
|
2021-04-01 04:18:21 -04:00
|
|
|
div(ng-if="action === 'archive'")
|
|
|
|
p #{translate("archiving_projects_wont_affect_collaborators")}
|
|
|
|
|
|
|
|
|
a(
|
|
|
|
href="https://www.overleaf.com/blog/new-feature-using-archive-and-trash-to-keep-your-projects-organized"
|
|
|
|
target="_blank"
|
|
|
|
) #{translate("find_out_more_nt")}
|
|
|
|
div(ng-if="action === 'trash'")
|
|
|
|
p #{translate("trashing_projects_wont_affect_collaborators")}
|
|
|
|
|
|
|
|
|
a(
|
|
|
|
href="https://www.overleaf.com/blog/new-feature-using-archive-and-trash-to-keep-your-projects-organized"
|
|
|
|
target="_blank"
|
|
|
|
) #{translate("find_out_more_nt")}
|
2019-11-25 10:41:12 -05:00
|
|
|
.project-action-alert.alert.alert-warning(ng-if="action === 'leave' || action === 'delete'")
|
|
|
|
i.fa.fa-fw.fa-exclamation-triangle
|
|
|
|
.project-action-alert-msg #{translate("this_action_cannot_be_undone")}
|
|
|
|
div(ng-if="action === 'leaveOrDelete'")
|
|
|
|
p #{translate("about_to_delete_projects")}
|
|
|
|
ul
|
|
|
|
li(ng-repeat="project in projects | filter:{accessLevel: 'owner'} | orderBy:'name'")
|
2014-07-16 09:59:52 -04:00
|
|
|
strong {{project.name}}
|
2014-07-31 12:07:43 -04:00
|
|
|
p #{translate("about_to_leave_projects")}
|
2014-07-16 09:59:52 -04:00
|
|
|
ul
|
2019-11-25 10:41:12 -05:00
|
|
|
li(ng-repeat="project in projects | filter:{accessLevel: '!owner'} | orderBy:'name'")
|
2014-07-16 09:59:52 -04:00
|
|
|
strong {{project.name}}
|
2019-11-25 10:41:12 -05:00
|
|
|
.project-action-alert.alert.alert-warning
|
|
|
|
i.fa.fa-fw.fa-exclamation-triangle
|
|
|
|
.project-action-alert-msg #{translate("this_action_cannot_be_undone")}
|
2014-07-16 09:59:52 -04:00
|
|
|
.modal-footer
|
2022-11-15 05:56:27 -05:00
|
|
|
button.btn.btn-secondary(
|
2014-07-16 09:59:52 -04:00
|
|
|
ng-click="cancel()"
|
2014-07-31 12:07:43 -04:00
|
|
|
) #{translate("cancel")}
|
2014-07-16 09:59:52 -04:00
|
|
|
button.btn.btn-danger(
|
2019-11-25 10:41:12 -05:00
|
|
|
ng-click="confirm()"
|
2016-03-22 10:41:31 -04:00
|
|
|
) #{translate("confirm")}
|