<!--
field-add-step1.html

Define the field general properties.
-->

<!--
	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_general_field_properties} : </b>
			<hr size="1">
			<form method=post action={$validate_edit_url}>
				<input type=hidden name="do" value="add_field_validate">
				<table>
					<tr>
						<td>
							<!-- Type -->
							{$STRING.FIELD_CONF.Description.type} : 
							<select name="field_type_title">
							{section name=type loop=$available_types}
								<OPTION 
									{if $available_types[type].field_type_title == $new_field.field_type_title} 
										SELECTED
									{/if}
									value="{$available_types[type].field_type_title}" 
									title="{$available_types[type].field_type_description}">
										{$available_types[type].field_type_title}
								</OPTION>
							{/section}
							</select>
						</td>
						<td>
							<!-- Title -->
							{$STRING.FIELD_CONF.Description.title} : 
							<input type=text name="title" value="{$new_field.title}">
						</td>
					</tr>
					<tr>
						<td>
							<hr>
						</td>
						<td>
							<hr>
						</td>
					</tr>
					<tr>
						<td>
							<!-- Description -->
							{$STRING.FIELD_CONF.Description.description} : <br>
							<textarea name="description" cols="24" rows="5" title="{$STRING.warning_no_html}">{$new_field.description}</textarea>
						</td>
						<td valign=top>
							<table>
								<tr>
									<td>
										&nbsp;
									</td>
								</tr>
								<tr>
									<td>
										<!-- Default value -->										
										{$STRING.FIELD_CONF.Description.default_value} :
									</td>
									<td>
										<input type=text name="default_value" value="{$new_field.default_value}">
									</td>
								</tr>
								<tr>
									<td>
										<!-- Edit order -->
										{$STRING.FIELD_CONF.Description.edit_order} :
									</td>
									<td>
										<input type=text name="edit_order" value="{$new_field.edit_order}">
									</td>
								</tr>
								<tr>
									<td>
										<!-- List order -->
										{$STRING.FIELD_CONF.Description.list_order} :
									</td>
									<td>
										<input type=text name="list_order" value="{$new_field.list_order}">
									</td>
								</tr>							
							</table>
						</td>
					</tr>
					<tr>
						<td align=left>
							<input type=submit value="OK">
						</td>
						<td align=right>	
							<INPUT TYPE="Button" Value="{$STRING.cancel}" OnClick="history.go(-1)">
						</td>
					</tr>
				</table>
			</form>
		</td>
	</tr>
</table>
