<dtml-comment>
##############################################################################
manage_editEntry.html

Interface for edit a entry.

Copyright (c) 2003-2005 Atsushi Shibata All Rights Reserved.
##############################################################################
</dtml-comment>

<dtml-comment>Set 0 to showall</dtml-comment>
<dtml-unless showall>
<dtml-call "REQUEST.set('showall',0)">
</dtml-unless>

<dtml-var manage_page_header>
<link rel="stylesheet" href="./style_css" type="text/css" />
<dtml-var additional_css>

<dtml-var manage_tabs>

<dtml-comment>
<dtml-var "manage_form_title(this(), _,
           form_title='Edit Entry'
	   )">
</dtml-comment>

<p class="form-help">
Edit Entry informations. Some fields(with <i>italic</i> title) are optional.

</p>
<dtml-if worning_message>
<p class="form-help" style="color: red;">
<dtml-var worning_message>
</p>
</dtml-if>
<dtml-if preview>
<p>
<dtml-var entry_html>
</p>
</dtml-if>


<FORM ACTION="manage_editEntry" METHOD="POST">
<table cellspacing="0" cellpadding="4"  border="0" width="100%">
	<tr>
		<td>
		 	<table border="0" cellspacing="0" cellpadding="0">
				<tr>
				 	<td>
					<span class="form-label">
					Title :
					</span>
					<input type="text" name="title" size="<dtml-if textbox_width><dtml-var "textbox_width/1.5"><dtml-else>40</dtml-if>" value="<dtml-var title html_quote missing="">" />
					</td>
					<td  class="form-hsep">&nbsp;</td>
				 	<td>
					<span  class="form-label">
					Author :
					</span>
					<input type="text" name="author" size="12" value="<dtml-var author html_quote missing="">" />
					</td>
				</tr>
			</table>
		</td>
	</tr>


	<dtml-if "not getProperty('hide_subtitle') or showall">
	<tr>
		<td>
		<span class="form-optional">
		Subtitle :
		</span>
		<input type="text" name="subtitle" size="<dtml-var textbox_width missing="60">" value="<dtml-var subtitle html_quote missing="">" />
		</td>
	</tr>
	<dtml-else>
		<input type="hidden" name="subtitle" value="<dtml-var subtitle html_quote missing="">" />
	</dtml-if>

	<tr>
		<td align="left" valign="top">
		 	<table cellspacing="0" cellpadding="0" border="0">
				<tr>
				 	<td valign="top">
					<span class="form-label">
					Category :
					</span>
					<td align="left" valign="top">
					<select name="main_category:int">
					<option value="">None</option>
					<dtml-in category_list>
					<option value="<dtml-var id>" <dtml-try><dtml-if "_.int(id) == _.int(category[0])">selected</dtml-if><dtml-except></dtml-try>><dtml-var name></option>
					</dtml-in>
					</select>
					</td>
					<td class="form-hsep">&nbsp;</td>
				 	<td valign="top">
					<span class="form-label">
					Format :
					</span>
					<select name="format:int">
					<option value="0" <dtml-if "format == 0">selected</dtml-if>>Plain Text(HTML OK)</option>
					<option value="1" <dtml-if "format == 1">selected</dtml-if>>StructuredText</option>
					<option value="2" <dtml-if "format == 2">selected</dtml-if>>HTML</option>
					<option value="4" <dtml-if "format == 4">selected</dtml-if>>reStructuredText</option>
					</select>
					</td>
					<td class="form-hsep">&nbsp;</td>
					<td align="left" valign="top">
					<span class="form-label">
					Status :
					</span>
					</td>
					<td align="left" valign="top">
					<select name="moderated:int">
					<option value="0" <dtml-if "moderated == 0">selected</dtml-if>>Closed</option>
					<option value="1" <dtml-if "moderated == 1">selected</dtml-if>>Open</option>
					</select>
					</td>
				</tr>
			</table>
		</td>
	</tr>

	<tr>
		<td>
		<div class="form-label">
		Body
		</div>
		<dtml-try>
		<dtml-if "use_epoz_service and format == 2">
		<dtml-call "REQUEST.set('epoz_style','width: ' + _.str(epoz_width) + 'px; height: ' + _.str(epoz_height) + 'px; border: 1px solid #000000;')">
        <dtml-var "Epoz('body', data=body,
                                      toolbox='/toolbox',
                                      lang='en',
                                      style=epoz_style)">
        <dtml-else>
        <dtml-var this_name_might_not_exist_so_that_exception_always_raise>
		</dtml-if>
		<dtml-except>
		<textarea name="body:text" cols="<dtml-var textarea_width missing="60">" rows="<dtml-var body_height missing="20">"><dtml-var body html_quote></textarea>
		</dtml-try>
		</td>
	</tr>

	<dtml-if "not getProperty('hide_extend') or showall">
	<tr>
		<td valign="top">
		<div class="form-optional">
		Extend
		</div>
		<textarea name="extend:text" cols="<dtml-var textarea_width missing="60">" rows="<dtml-var extend_height missing="6">"><dtml-var extend html_quote missing=""></textarea>
		</td>
	</tr>
	<dtml-else>
		<input type="hidden" name="extend:text" value="<dtml-var extend html_quote missing="">" />
	</dtml-if>

	<dtml-if "not getProperty('hide_subcategory') or showall">
	<tr>
		<td valign="top">
		 	<table cellspacing="0" cellpadding="0" border="0">
		 		<tr>
					<td valign="top">
					<span class="form-optional">
					Sub Categories :
					</span>
					</td>
					<td valign="top">
					<dtml-in category_list>
					<input type="checkbox" name="sub_category:list" value="<dtml-var id html_quote>" <dtml-if "_.len(category) > 1 and _.int(id) in category[1:]">checked</dtml-if> />:<dtml-var name>
					<dtml-if "_['sequence-index'] % 4 == 3"><br></dtml-if>
					</dtml-in>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<dtml-else>
		<input type="hidden" name="sub_category:list" value="<dtml-var sub_category missing="">" />
	</dtml-if>

	<dtml-if "not getProperty('hide_excerpt') or showall">
	<tr>
		<td valign="top">
		<div class="form-optional">
		Excerpt
		</div>
		<textarea name="excerpt:text" cols="<dtml-var textarea_width missing="60">" rows="<dtml-var excerpt_height missing="6">"><dtml-var excerpt html_quote missing=""></textarea>
		</td>
	</tr>
	<dtml-else>
		<input type="hidden" name="excerpt:text" value="<dtml-var excerpt html_quote missing="">" />
	</dtml-if>

	<dtml-if "not getProperty('hide_trackbackurls') or showall">
	<tr>
		<td align="left" valign="top">
		 	<table border="0" cellspacing="0" cellpadding="0">
				<tr>
				 	<td valign="top">
					<div class="form-optional">
					Trackback URL(s)
					</div>
					</td>
					<td class="form-hsep">&nbsp;</td>
					<td valign="top">
					<input type="checkbox" name="sendnow" />:Send Trackback(s) immediate.
					</td>
				</tr>
				<tr>
					<td colspan="3">
					<textarea name="trackback_url:text" cols="<dtml-var textarea_width missing="60">" rows="4"><dtml-try><dtml-in sending_trackback_list><dtml-if "sent!=1"><dtml-var url>
			</dtml-if></dtml-in><dtml-except></dtml-try></textarea>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<dtml-else>
		<input type="hidden" name="trackback_url:text" value="" />
	</dtml-if>

	<dtml-if "not getProperty('hide_comment') or showall">
	<tr>
		<td>
		 	<table cellspacing="0" cellpadding="0" border="0">
				<tr>
				 	<td valign="top">
					<span class="form-label">
					Comment :
					</span>
					<td align="left" valign="top">
					<select name="allow_comment:int">
					<option value="0" <dtml-if "allow_comment == 0">selected</dtml-if>>None(cannot add,hidden)</option>
					<option value="1" <dtml-if "allow_comment == 1">selected</dtml-if>>Open(can add,shown)</option>
					<option value="2" <dtml-if "allow_comment == 2">selected</dtml-if>>Closed(cannot add,show)</option>
					</select>
					</td>
					<td class="form-hsep">&nbsp;</td>
					<td>
					<span class="form-label">
					Trackback :
					</span>
					<select name="receive_trackback:int">
					<option value="0" <dtml-if "receive_trackback == 0">selected</dtml-if>>None(cannot add,hidden)</option>
					<option value="1" <dtml-if "receive_trackback == 1">selected</dtml-if>>Open(can add,shown)</option>
					<option value="2" <dtml-if "receive_trackback == 2">selected</dtml-if>>Closed(cannot add,show)</option>
					</select>
					</td>
				</tr>
			</table>
		</td>
	</tr>
	<dtml-else>
		<input type="hidden" name="allow_comment:int" value="<dtml-var allow_comment>" />
		<input type="hidden" name="receive_trackback:int" value="<dtml-var receive_trackback>" />
	</dtml-if>
	  <tr>
	    <td align="left" valign="top">
		<span class="form-optional">
		Show all fields
		</span>
		<input type="checkbox" name="showall:boolean" <dtml-if showall>checked</dtml-if>>
	    <input class="form-element" type="submit" name="submit" 
	     value="Save Changes" /> 
	    <input class="form-element" type="submit" name="preview" 
	     value="Change and View" /> 
	    </td>
	  </tr>

	<tr>
		<td align="left" valign="top">
		<div class="form-optional">
		Sent Trackback URL(s)
		</div>
		<ul>
		<dtml-try>
		<dtml-in sending_trackback_list>
		<dtml-if "sent!=0"><li><dtml-var url></dtml-if>
		</dtml-in>
		<dtml-except>
		</dtml-try>
		</ul>
		</td>
	</tr>


</table>
</form>

<dtml-var manage_page_footer>