/[refeed]/trunk/style/templates/form-item-edit.tpl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /trunk/style/templates/form-item-edit.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (hide annotations)
Thu Jul 6 17:48:42 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 2313 byte(s)
converted auto-focus- to autoFocus since camelCase is norm it seems
1 dpavlin 2 {*----------------------------------------
2     $Id: form-item-edit.tpl,v 1.2 2005/10/12 23:15:13 migurski Exp $
3     vim: ts=4 foldcolumn=4 foldmethod=marker
4    
5     This file is part of Reblog: http://reblog.org
6     A derivative work of Feed On Feeds: http://feedonfeeds.com
7    
8     Distributed under the Gnu Public License, see LICENSE
9    
10     Copyright ©2004 Michael Frumin, Michal Migurski
11     mike@stamen.com, http://stamen.com
12     mfrumin@eyebeam.org, http://eyebeam.org
13    
14     form-item-edit.tpl -
15     ----------------------------------------*}
16     <form method="POST" action="#" onsubmit="submit_item_editform(this, {$item->getID()}); return false;">
17     <input type="hidden" name="return" value="{$return|escape}" />
18     <input type="hidden" name="item" value="{$item->getID()}" />
19    
20     <h3>Title</h3>
21     <p>
22     <input type="text" name="title" value="{$item->title|escape}" size="48" />
23     </p>
24    
25     <h3>Link</h3>
26     <p>
27     <input type="radio" name="links{$item->getID()}" value="0" checked="checked" />
28     <input type="text" name="link" id="selectedLinkField{$item->getID()}" value="{$item->link|escape}" onfocus="return item_editform_link_edit({$item->getID()});" size="48" />
29    
30     {if $item->link != $item->original.link}
31     <br />
32     <input type="radio" name="links{$item->getID()}" value="{$item->original.link|escape}" onclick="return item_editform_link_select({$item->getID()}, '{$item->original.link}');" />
33     <a target="{$item->original.link|escape}" href="{$item->original.link|escape}">{$item->original.link|escape}</a>
34     {/if}
35    
36     {foreach from=$item->metadata.links item=link}
37     <br />
38     <input type="radio" name="links{$item->getID()}" value="{$link|escape}" onclick="return item_editform_link_select({$item->getID()}, '{$link}');" />
39     <a target="{$link|escape}" href="{$link|escape}">{$link|escape}</a>
40     {/foreach}
41     </p>
42    
43     <h3>Content</h3>
44     <p>
45     <textarea name="content" rows="8" cols="48">{$item->content}</textarea>
46     </p>
47    
48     <p>
49 dpavlin 10 <input type="submit" name="action" value="Save" id="autoFocus{$item->getID()}" />
50 dpavlin 2 <input type="reset" onclick="populate_item_body({$item->getID()}, 'itemBodyHTML', 'itemTab{$item->getID()}View'); return false;" name="action" value="Cancel" />
51     </p>
52    
53     </form>

  ViewVC Help
Powered by ViewVC 1.1.26