12953d9616
Added a hook to automatically add descriptions and style to forms. Now need the 'current password' when changing the password. Changed 'content' to 'comment' for the new comment form.
25 lines
507 B
HTML
25 lines
507 B
HTML
$def with (form, preview)
|
|
|
|
$if preview != None:
|
|
$ link = preview
|
|
<div class="preview">
|
|
$if not link.URL:
|
|
<b>$link.title</b>
|
|
$else:
|
|
<a href="$link.URL">$:link.URL_description</a>
|
|
$:link.description
|
|
$if link.extended:
|
|
<p>$:link.extended
|
|
</div>
|
|
<p>
|
|
|
|
<div id="commentform">
|
|
<form name="main" method="post">
|
|
$:form.render_css()
|
|
<br/>
|
|
<input type="submit" name="post" value="Post"/>
|
|
<input type="submit" name="preview" value="Preview"/>
|
|
</form>
|
|
</div>
|
|
|