/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Wed Jul 5 01:03:22 2006 UTC (17 years, 11 months ago) by dpavlin
File size: 2315 byte(s)
- auto-focus of field after update from server if it has ID auto-focus-{item_id}
- added vi-like keybinding for next/previous post
- archive key (a) now moves automatically to next item
- added t key (like tag) to add tags

1 {*----------------------------------------
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 <input type="submit" name="action" value="Save" id="auto-focus-{$item->getID()}" />
50 <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