~ubuntu-branches/ubuntu/hardy/gallery2/hardy-security

« back to all changes in this revision

Viewing changes to modules/picasa/templates/SelectPicasaExportPath.tpl

  • Committer: Bazaar Package Importer
  • Author(s): Michael C. Schultheiss
  • Date: 2006-04-16 16:42:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060416164235-8uy0u4bfjdxpge2o
Tags: 2.1.1-1
* New upstream release (Closes: #362936)
  + Bugfixes for Postgres7 (Closes: #359000, #362152)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{*
 
2
 * $Revision: 1.2 $
 
3
 * If you want to customize this file, do not edit it directly since future upgrades
 
4
 * may overwrite it.  Instead, copy it into a new directory called "local" and edit that
 
5
 * version.  Gallery will look for that file first and use it if it exists.
 
6
 *}
 
7
<div class="gbBlock gcBackground1">
 
8
  <h2> {g->text text="Import from Picasa 2"} </h2>
 
9
 
 
10
  <p class="giDescription">
 
11
    {g->text text="This operation takes data (images, descriptions, orderings etc.) from <strong>Picasa 2</strong> and brings it into <strong>Gallery 2</strong>."}
 
12
  </p>
 
13
</div>
 
14
 
 
15
{if (!$SelectPicasaExportPath.hasToolkit)}
 
16
  <div class="gbBlock"><p class="giError">
 
17
    {capture name="url"}
 
18
      {g->url arg1="view=core.SiteAdmin" arg2="subView=core.AdminModules"}
 
19
    {/capture}
 
20
    {g->text text="You don't have any Graphics Toolkit activated to handle JPEG images.  If you import now, you will not have any thumbnails.  Visit the <a href=\"%s\">Modules</a> page to activate a Graphics Toolkit." arg1=$smarty.capture.url}
 
21
  </p></div>
 
22
{/if}
 
23
 
 
24
<div>
 
25
  {g->hiddenFormVars}
 
26
  <input type="hidden" name="{g->formVar var="controller"}" value="picasa.SelectPicasaExportPath"/>
 
27
  <input type="hidden" name="{g->formVar var="form[formName]"}" value="{$form.formName}"/>
 
28
</div>
 
29
 
 
30
<div class="gbBlock">
 
31
  <h4> {g->text text="Destination Album"} </h4>
 
32
  <p class="giDescription">
 
33
    {g->text text="Please select the gallery Album you want to import your picasa album into."}
 
34
  </p>
 
35
 
 
36
  <select name="{g->formVar var="form[destinationAlbumId]"}">
 
37
    {foreach from=$SelectPicasaExportPath.g2AlbumTree item=album}
 
38
      <option value="{$album.data.id}"{if $form.destinationAlbumId==$album.data.id}
 
39
          selected="selected"{/if}>
 
40
        {"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"|repeat:$album.depth}--
 
41
        {$album.data.title|default:$album.data.pathComponent}
 
42
      </option>
 
43
    {/foreach}
 
44
  </select>
 
45
 
 
46
  <h4> {g->text text="Path or File"} </h4>
 
47
  <p class="giDescription">
 
48
    {g->text text="This process will import Data from a Picasa 2 XML-Export. You must enter the path to the directory with the Picasa 2 files.  Example: <i>/path/to/picasa2xml</i>"}
 
49
  </p>
 
50
 
 
51
  <input type="text" size="60"
 
52
    name="{g->formVar var="form[picasaXmlPath]"}" value="{$form.picasaXmlPath}"
 
53
    id='giFormPath' autocomplete="off"/>
 
54
  {g->autoComplete element="giFormPath"}
 
55
  {g->url arg1="view=core.SimpleCallback" arg2="command=lookupDirectories" arg3="prefix=__VALUE__"
 
56
    forJavascript="true"}
 
57
  {/g->autoComplete}
 
58
 
 
59
  {if isset($form.error.picasaXmlPath.missing)}
 
60
    <div class="giError">
 
61
      {g->text text="You did not enter a path."}
 
62
    </div>
 
63
  {/if}
 
64
  {if isset($form.error.picasaXmlPath.invalid)}
 
65
    <div class="giError">
 
66
      {g->text text="The path that you entered does not contain valid Picasa export data."}
 
67
    </div>
 
68
  {/if}
 
69
 
 
70
  {if !empty($SelectPicasaExportPath.recentPaths)}
 
71
    <script type="text/javascript">
 
72
      // <![CDATA[
 
73
        function selectPath(path) {ldelim}
 
74
          document.getElementById("siteAdminForm").elements['{g->formVar var="form[picasaXmlPath]"}'].value = path;
 
75
          {rdelim}
 
76
      // ]]>
 
77
    </script>
 
78
 
 
79
    <h4 class="giTitle">
 
80
      {g->text text="Recently Used Paths"}
 
81
    </h4>
 
82
    <p>
 
83
      {foreach from=$SelectPicasaExportPath.recentPaths key=path item=count}
 
84
        {capture name="escapedPath"}{$path|replace:"\\":"\\\\"}{/capture}
 
85
        <a href="javascript:selectPath('{$smarty.capture.escapedPath}')">{$path}</a>
 
86
        <br/>
 
87
      {/foreach}
 
88
    </p>
 
89
  {/if}
 
90
</div>
 
91
 
 
92
<div class="gbBlock gcBackground1">
 
93
  <input type="submit" class="inputTypeSubmit"
 
94
    name="{g->formVar var="form[action][select]"}" value="{g->text text="Select"}"/>
 
95
</div>