/[refeed]/trunk/style/templates/form-item-comment.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-comment.tpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4 - (show annotations)
Wed Jul 5 01:03:22 2006 UTC (17 years, 10 months ago) by dpavlin
File size: 1336 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-comment.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-comment.tpl -
15 ----------------------------------------*}
16 <form method="POST" action="#" onsubmit="submit_item_commentform(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>Tags</h3>
21 <p>
22 <input type="text" name="itemtags" value="{foreach from=$item->metadata.tags item="tag"}{$tag|escape} {/foreach}" size="48" id="auto-focus-{$item->getID()}" />
23 </p>
24
25 <h3>Comment</h3>
26 <p>
27 <textarea name="comment" rows="4" cols="48">{$item->metadata.comment}</textarea>
28 </p>
29
30 <p>
31 <input type="submit" name="action" value="Save" />
32 <input type="reset" onclick="populate_item_body({$item->getID()}, 'itemBodyHTML', 'itemTab{$item->getID()}View'); return false;" name="action" value="Cancel" />
33 </p>
34
35 </form>

  ViewVC Help
Powered by ViewVC 1.1.26