source: extensions/Google2Piwigo/admin/template/import.tpl @ 28832

Last change on this file since 28832 was 28832, checked in by mistic100, 10 years ago

fix oauth flow

File size: 2.5 KB
Line 
1{include file='include/colorbox.inc.tpl'}
2{include file='include/add_album.inc.tpl'}
3{combine_script id='common' load='footer' path='admin/themes/default/js/common.js'}
4{combine_script id='jquery.ajaxmanager' load='footer' path='themes/default/js/plugins/jquery.ajaxmanager.js'}
5{combine_script id='jquery.jgrowl' load='footer' require='jquery' path='themes/default/js/plugins/jquery.jgrowl_minimized.js'}
6{combine_css path="themes/default/js/plugins/jquery.jgrowl.css"}
7
8{combine_css path=$PICASA_WA_PATH|cat:"admin/template/style.css"}
9
10{footer_script}
11$("input.login").click(function() {
12  window.location.href = "{$picasa_login}";
13});
14{/footer_script}
15
16
17<div class="titrePage">
18        <h2>Google2Piwigo</h2>
19</div>
20
21{* <!-- LOGIN --> *}
22{if $ACTION == 'init_login'}
23<p><input type="submit" class="login" value="{'Login'|translate}"></p>
24
25{* <!-- MAIN MENU --> *}
26{else if $ACTION == 'main'}
27{footer_script}
28jQuery('input[type="submit"]').click(function() {
29  window.location.href = $(this).attr("data");
30});
31jQuery('.load').click(function() {
32  $("#loader_import").fadeIn();
33});
34{/footer_script}
35
36<p>
37  <b>{'Logged in as'|translate}</b> : {$username}<br><br>
38  <input type="submit" data="{$logout_url}" value="{'Logout'|translate}">
39</p>
40<br>
41<p>
42  <input type="submit" data="{$list_albums_url}" class="load" value="{'List my albums'|translate}">
43  <input type="submit" data="{$import_all_url}" class="load" value="{'Import all my pictures'|translate}">
44  <br>
45  <span id="loader_import" style="display:none;"><img src="admin/themes/default/images/ajax-loader.gif"> <i>{'Processing...'|translate}</i></span>
46</p>
47
48{* <!-- ALBUMS LIST --> *}
49{else if $ACTION == 'list_albums'}
50{footer_script}
51jQuery('.load').click(function() {
52  $("#loader_import").fadeIn();
53});
54{/footer_script}
55
56<h3>{'%d albums'|translate:$total_albums}</h3>
57<ul id="albumsList">
58{foreach from=$albums item=album}
59  <li>
60    <b><a href="{$album.U_LIST}" class="load">{$album.title}</a></b> <i>{'(%d photos)'|translate:$album.photos}</i>
61    {if $album.description}- {$album.description|truncate:100}{/if}
62  </li>
63{/foreach}
64</ul>
65<span id="loader_import" style="display:none;"><img src="admin/themes/default/images/ajax-loader.gif"> <i>{'Processing...'|translate}</i></span>
66
67{* <!-- PHOTOS LIST --> *}
68{else if $ACTION == 'list_photos'}
69{include file=$PICASA_WA_ABS_PATH|@cat:'admin/template/import.list_photos.tpl'}
70
71{* <!-- IMPORT ALL --> *}
72{else if $ACTION == 'list_all'}
73{include file=$PICASA_WA_ABS_PATH|@cat:'admin/template/import.list_all.tpl'}
74
75{/if}
Note: See TracBrowser for help on using the repository browser.