mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-23 15:42:15 +00:00
Add basic v1 import modal template & controller
This commit is contained in:
parent
488e6d7c5d
commit
cbba7c38df
2 changed files with 26 additions and 0 deletions
|
@ -313,3 +313,26 @@ script(type="text/ng-template", id="userProfileModalTemplate")
|
|||
|
||||
.modal-footer
|
||||
button.btn.btn-info(ng-click="done()") #{translate("done")}
|
||||
|
||||
script(type="text/ng-template", id="v1ImportModalTemplate")
|
||||
.modal-header
|
||||
button.close(ng-click="dismiss()") ×
|
||||
h3 #{translate("import_project_to_v2")}
|
||||
|
||||
.modal-body
|
||||
img(
|
||||
src="/img/v1-import/v2-editor.png"
|
||||
alt="The new V2 Editor."
|
||||
)
|
||||
|
||||
h2 Try importing your project to V2!
|
||||
p Some exciting copy about the new features:
|
||||
ul
|
||||
li Some stuff
|
||||
li Some more stuff
|
||||
li Yet more stuff
|
||||
|
||||
.modal-footer
|
||||
button.btn.btn-primary(ng-click="openV1()") #{translate("open_in_v1")}
|
||||
button.btn.btn-primary(ng-click="import()") #{translate("import_to_v2")}
|
||||
|
||||
|
|
|
@ -123,3 +123,6 @@ define [
|
|||
$scope.onComplete = (error, name, response) ->
|
||||
if response.project_id?
|
||||
window.location = '/project/' + response.project_id
|
||||
|
||||
App.controller 'V1ImportModalController', ($scope, $modalInstance, project) ->
|
||||
console.log('V1ImportModalController', project)
|
||||
|
|
Loading…
Reference in a new issue