<!--
field-add-step1.html

Define the field subproperties.
-->

<!--
	0 :  	['0'] 	['field_conf_id']  	=	 1
	1 : 	['0'] 	['project_id'] 	=	17
	2 : 	['0'] 	['field_type_id'] 	=	2
	3 : 	['0'] 	['field_name'] 	=	title
	4 : 	['0'] 	['title'] 	=	Title
	5 : 	['0'] 	['description'] 	=	The title of the file.
	6 : 	['0'] 	['edit_order'] 	=	13
	7 : 	['0'] 	['list_order'] 	=	2
	8 : 	['0'] 	['default_value'] 	=	
	9 : 	['0'] 	['properties'] 	=	maxlen=255;
	10 : 	['0'] 	['created_by'] 	=	38
	11 : 	['0'] 	['created_date'] 	=	0
	12 : 	['0'] 	['last_modified_by'] 	=	38
	13 : 	['0'] 	['last_modified_date'] 	=	0
	14 : 	['0'] 	['field_type_title'] 	=	String
	15 : 	['0'] 	['field_type_description'] 	=	Accepts either a length limited or unlimited string
	16 : 	['0'] 	['_username1'] 	=	david.han-sze-chuen@airliquide.com
	17 : 	['0'] 	['_username2'] 	=	david.han-sze-chuen@airliquide.com
-->

<table border="0" width="100%">
	<tr>
		<td valign="top">
			<b>&nbsp;{$TITLE.define_type_dependent_field_properties} : </b>
			<hr size="1">
			<form method=post action={$validate_edit_url}>
				<input type=hidden name="do" value="add_field_validate">
				<table>					
					{if $toPrint.maxlen}
						<tr>
							<td>
								<a title="{$STRING.click_for_more_info}" href="javascript:alert('{$maxlen_limit_msg}');">{$STRING.properties.maxlen}</a> :
							</td>
							<td>
								<input type=text name="sp[maxlen]" value="0">
							</td>
						</tr>
					{/if}
					{if $toPrint.int_size}
						<tr>
							<td>
								<a title="{$STRING.click_for_more_info}" href="javascript:alert('{$int_size_limit_msg}');">{$STRING.properties.int_size}</a> :
							</td>
							<td>
								<input type=text name="sp[int_size]" value="10">
							</td>
						</tr>
					{/if}
					{if $toPrint.decimal_size}
						<tr>
							<td>
								<a title="{$STRING.click_for_more_info}" href="javascript:alert('{$decimal_size_limit_msg}');">{$STRING.properties.decimal_size}</a> :
							</td>
							<td>
								<input type=text name="sp[decimal_size]" value="3">
							</td>
						</tr>
					{/if}						
					{if $toPrint.unique}
						<tr>
							<td>
								{$STRING.properties.unique} :
							</td>
							<td>
								<input type=checkbox name="sp[unique]" value="1">
							</td>
						</tr>
					{/if}
					{if $toPrint.highlight_url}
						<tr>
							<td>
								{$STRING.properties.highlight_url} :
							</td>
							<td>
								<input type=checkbox name="sp[highlight_url]" value="1">
							</td>
						</tr>
					{/if}
					{if $toPrint.SB_List}
						<tr>
							<td>
								{$STRING.properties.RefSelectBox} :
							</td>
							<td>
								<select name="sp[SB_twin_id]">
									{section name=index loop=$toPrint.SB_List}
										<OPTION value="{$toPrint.SB_List[index].field_conf_id}">
										{$toPrint.SB_List[index].title}
										</OPTION>
									{/section}
								</select>
							</td>
						</tr>
					{/if}
					{if $toPrint.time_type}
						<tr>
							<td>
								{$STRING.properties.time_type} :
							</td>
							<td>
								<select name="sp[time_type]">
								{section name=t_type loop=$toPrint.time_type}
									<OPTION value="{$toPrint.time_type[t_type]}">
											{$toPrint.time_type[t_type]}
									</OPTION>
								{/section}
								</select>
							</td>
						</tr>
					{/if}
					{if $toPrint.read_only}
						<tr>
							<td>
								{$STRING.properties.read_only} :
							</td>
							<td>
								<input type=checkbox name="sp[read_only]" value="1">
							</td>
						</tr>
					{/if}
					<tr>
						<td align=left>
							<input type=submit value="OK">
						</td>
						<td align=right>	
							<INPUT TYPE="Button" Value="{$STRING.PreviousPage}" OnClick="history.go(-1)">
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
</table>
