diff options
author | Maxime Quandalle <maxime@quandalle.com> | 2016-02-01 17:53:34 +0100 |
---|---|---|
committer | Maxime Quandalle <maxime@quandalle.com> | 2016-02-01 17:53:34 +0100 |
commit | b490acf9fb7a57208ba619d5c8e078451e1297b4 (patch) | |
tree | 7d44b85dff8a1b47aca729b2cca42cd6d62941f8 /client/components/import/import.jade | |
parent | 67e7b6a139280cab1e1bccb94c684c56eb69985c (diff) | |
parent | b5ebbd2bf95eef6fdc4f7a5fdaf5ef4e3b4ec5b5 (diff) | |
download | wekan-b490acf9fb7a57208ba619d5c8e078451e1297b4.tar.gz wekan-b490acf9fb7a57208ba619d5c8e078451e1297b4.tar.bz2 wekan-b490acf9fb7a57208ba619d5c8e078451e1297b4.zip |
Merge pull request #430 from wekan/full-screen-import
Full screen board import
Diffstat (limited to 'client/components/import/import.jade')
-rw-r--r-- | client/components/import/import.jade | 55 |
1 files changed, 34 insertions, 21 deletions
diff --git a/client/components/import/import.jade b/client/components/import/import.jade index 74b6ca13..e10072b4 100644 --- a/client/components/import/import.jade +++ b/client/components/import/import.jade @@ -1,39 +1,52 @@ -template(name="importPopup") - if error.get - .warning {{_ error.get}} +template(name="importHeaderBar") + h1 + a.back-btn(href="{{pathFor 'home'}}") + i.fa.fa-chevron-left + | {{_ 'import-board-title'}} + +template(name="import") + .wrapper + if error.get + .warning {{_ error.get}} + +Template.dynamic(template=currentTemplate) + +template(name="importTextarea") form - p: label(for='import-textarea') {{_ getLabel}} - textarea#import-textarea.js-import-json(placeholder="{{_ 'import-json-placeholder'}}" autofocus) + p: label(for='import-textarea') {{_ 'import-board-trello-instruction'}} + textarea.js-import-json(placeholder="{{_ 'import-json-placeholder'}}" autofocus) | {{jsonText}} - if membersMapping - div - a.show-mapping - | {{_ 'import-show-user-mapping'}} input.primary.wide(type="submit" value="{{_ 'import'}}") -template(name="mapMembersPopup") +template(name="importMapMembers") + h2 {{_ 'import-map-members'}} .map-members p {{_ 'import-members-map'}} .mapping-list each members - .mapping - a.source - div.full-name - = fullName - div.username + a.mapping-item.js-select-member(class="{{#if wekanId}}filled{{/if}}") + .profile-source + .full-name= fullName + .username | ({{username}}) .wekan - if wekan - +userAvatar(userId=wekan._id) + if wekanId + +userAvatar(userId=wekanId) else - a.member.add-member.js-add-members + a.member.add-member i.fa.fa-plus + //- + Due to the way the flewbox layout is working, we need to set some + invisible items so that the last row items have a consistent width. + See http://jsfiddle.net/Ln4h3c4n/ for an minimal example of the issue. + .mapping-item.ghost-item + .mapping-item.ghost-item + .mapping-item.ghost-item + .mapping-item.ghost-item + .mapping-item.ghost-item form input.primary.wide(type="submit" value="{{_ 'done'}}") - template(name="addMemberPopup") - -template(name="mapMembersAddPopup") +template(name="importMapMembersAddPopup") .select-member p | {{_ 'import-user-select'}} |