Location: PHPKode > projects > Gallery2flickr > Gallery2Flickr/templates/Gallery2FlickrUserAdmin.tpl
{*
 * Gallery2Flickr
 *
 * A bridge between your gallery2 installation and flickr.com
 *
 * File:       Gallery2FlickrUserAdmin.tpl
 *
 *             Template for the site admin page.
 *
 * Copyright:
 *             (c) 2006 - 2008 hide@address.com
 *             Distributed under the terms of the GNU General Public License v2
 *
 * Author(s):
 *             Gunnar Wrobel <hide@address.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
 * 02110-1301, USA.
 *
 * (Gallery2Flickr is a module for Gallery2 - a web based photo album
 *  viewer and editor - Copyright for Gallery2: (C) 2000-2008 Bharat
 *  Mediratta)
 *
 * $Id: Gallery2FlickrUserAdmin.tpl 10 2008-01-18 09:39:31Z luciferc $
 *
 *}
 <div class="gbBlock gcBackground1">
   <h2> 
     {g->text text="Flickr Bridge Settings"} 
   </h2>
 </div>

 <div class="gbBlock">
   <h3> 
   {g->text text="Flickr credentials"} 
   </h3>

   <p class="giDescription">
     {g->text text="Provide a link to give Gallery2Flickr access to your flickr account:"}
   </p>
   
   <table class="gbDataTable">
     <tr>
       <td>
	 <input type="submit" 
		class="inputTypeSubmit"
		name="{g->formVar var="form[action][link]"}" value="{g->text text="Generate link"}"/>
       </td>
     </tr>
     {if isset($status.link)}
     <tr>
       <td>
	 <a 
	     href="{$status.link}"
	     target="_blank">
	   {g->text text="Provide Gallery2Flickr access to your flickr account."}
	 </a>
	 <p class="giDescription">
	   {g->text text="Once you finished that you should be able to select 'Save'."}
	 </p>
       </td>
     </tr>
     {/if}
     {if isset($form.error.frob)}
     <tr>
       <td>
	 <div class="giError"> 
	   {g->text text="Frob does not validate! Check if you have given the flickr bridge the necessary permissions!"} 
	 </div>
       </td>
     </tr>
     {/if}
     {if isset($form.error.flickr)}
     <tr>
       <td>
	 <div class="giError"> 
	   {g->text text="Flickr does not provide a frob!"} 
	 </div>
       </td>
     </tr>
     {/if}
     {if isset($status.saved)}
     <tr>
       <td>
	 <div class="gbBlock">
	   <h2 class="giSuccess">
	     {g->text text="Successfully generated authentication token and saved it. You may use Gallery2Flickr now!"}
	   </h2>
	 </div>
       </td>
     </tr>
     {/if}
   </table>
 </div>

 <div 
     class="gbBlock gcBackground1">
   <input 
       type="submit" 
       class="inputTypeSubmit"
       name="{g->formVar var="form[action][save]"}" value="{g->text text="Save"}"/>
   <input 
       type="submit" 
       class="inputTypeSubmit"
       name="{g->formVar var="form[action][reset]"}" value="{g->text text="Reset"}"/>
   {if $hasfrob==1}
   <input 
       type="submit" 
       class="inputTypeSubmit"
       name="{g->formVar var="form[action][delete]"}" value="{g->text text="Delete old credentials"}"/>
   {/if}
 </div>

<div class="block-core-GuestPreview gbBlock">
  <a href="http://gunnarwrobel.de/projects/Gallery2Flickr.html">Gallery2Flickr</a> &copy; 2006 - 2008 <a href="http://www.pardus.de">hide@address.com</a> (Author: <a href="http://gunnarwrobel.de">Gunnar Wrobel</a>)
</div>
Return current item: Gallery2flickr