|
|
@@ -360,6 +360,17 @@ script(type="text/ng-template", id="uploadFileModalTemplate")
|
|
|
.alert.alert-warning.small.modal-alert(ng-if="tooManyFiles") #{translate("maximum_files_uploaded_together", {max:"{{max_files}}"})}
|
|
|
.alert.alert-warning.small.modal-alert(ng-if="rateLimitHit") #{translate("too_many_files_uploaded_throttled_short_period")}
|
|
|
.alert.alert-warning.small.modal-alert(ng-if="notLoggedIn") #{translate("session_expired_redirecting_to_login", {seconds:"{{secondsToRedirect}}"})}
|
|
|
+ .alert.alert-warning.small.modal-alert(ng-if="conflicts.length > 0")
|
|
|
+ p.text-center
|
|
|
+ | The following files already exist in this project:
|
|
|
+ ul.text-center.list-unstyled.row-spaced-small
|
|
|
+ li(ng-repeat="conflict in conflicts"): strong {{ conflict }}
|
|
|
+ p.text-center.row-spaced-small
|
|
|
+ | Do you want to overwrite them?
|
|
|
+ p.text-center
|
|
|
+ a(href, ng-click="doUpload()").btn.btn-primary Overwrite
|
|
|
+ |
|
|
|
+ a(href, ng-click="cancel()").btn.btn-default Cancel
|
|
|
|
|
|
.modal-body(
|
|
|
fine-upload
|
|
|
@@ -370,10 +381,14 @@ script(type="text/ng-template", id="uploadFileModalTemplate")
|
|
|
drag-area-text="{{drag_files}}"
|
|
|
hint-text="{{hint_press_and_hold_control_key}}"
|
|
|
multiple="true"
|
|
|
+ auto-upload="false"
|
|
|
on-complete-callback="onComplete"
|
|
|
on-upload-callback="onUpload"
|
|
|
on-validate-batch="onValidateBatch"
|
|
|
on-error-callback="onError"
|
|
|
+ on-submit-callback="onSubmit"
|
|
|
+ on-cancel-callback="onCancel"
|
|
|
+ control="control"
|
|
|
params="{'folder_id': parent_folder_id}"
|
|
|
)
|
|
|
span #{translate("upload_files")}
|