Skip to content

Instantly share code, notes, and snippets.

@donut
Forked from anonymous/gist:68641
Created February 22, 2009 22:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donut/68643 to your computer and use it in GitHub Desktop.
Save donut/68643 to your computer and use it in GitHub Desktop.
<!-- start content -->
<div id="content_confess">
<div class="post">
<h2 class="title">Confess your story to us</h2>
<div class="entry"> {exp:weblog:entry_form weblog="default_site" return="site/index" preview="site/entry"}
<table width="100%" border="0">
<tr>
<td width="22%"><label for="title">Title:</label></td>
<td width="78%">
<input type="text" name="title" id="title" value="{title}" />
</td>
</tr>
{custom_fields}
<tr>
<td width="22%"><label for="{field_name}">{field_label}</label></td>
<td width="78%">{if textinput}
<input type="text" dir="{text_direction}" id="{field_name}" name="{field_name}" value="{field_data}" maxlength="{maxlength}"/>
{/if}
{if textarea}
<textarea id="{field_name}" name="{field_name}" dir="{text_direction}" cols="45" rows="5" onclick="setFieldName(this.name)">{field_data}</textarea>
{/if}</td>
</tr>
{/custom_fields}
<tr>
<td>&nbsp;</td>
<td><a href="{upload_url}" onclick="window.open(this.href, '_blank', 'width=400,height=600');return false;" onkeypress="this.onclick()">Attach a file</a></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><input type="submit" id="x" value="Submit" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
{/exp:weblog:entry_form}
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
</div>
</div>
</div>
<!-- end content -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment