{% extends 'template.html' %}
{% block content %}
		<b>View Generator</b><br/>
		You can generate view with ease using this generator. <br/>
		
		<div class="info">
			This generator will create a directory in /views directory. <br/>
			This directory contain 4 files: list.html, view.html, new.html, edit.html.<hr/>
			WARNING: EXISTING FILE WILL BE OVERWRITTEN.
		</div>
		
		<form method="post">
			<br/>
			<table>
				<tr valign="top">
					<td>
						<b>Name</b><br/>
						<input type="text" name="name" style="width:300px;" tabindex="1"><br/>
						<small>Use lowercase with underscore, eg: posts</small>
						<br/><br/><br/>
						<b>Fields</b><br/>
						<small>For field name use lowercase with underscore, eg: post_name</small>
					</td>
				</tr>
				<tr>
					<td colspan="2">					
						<table class="fields" cellpadding="3" cellspacing="0" border="0" style="font-size:13px">
							<tr>
								<td></td>
								<td>Field Name</td>
								<td>Type</td>
								<td><!--Validation--></td>
							</tr>
							<tr class="field">
								<td><a href="#" style="visibility:hidden;" class="del">&#215;</a></td>
								<td><input type="text" name="fields[]" tabindex="2"/></td>
								<td>
									<select name="types[]" class="type">
									  <option value="string">String</option>
									 <!-- <option value="date">Date</option>-->
									</select>
								</td>
								<td>
									<!--<label>
										<input type="checkbox" name="validation[]" value="required" class="required"/>
										Required
									</label>-->
								</td>
							</tr>
							<tr class="addField"><td></td><td colspan="3"><a href="#" id="add">Add Field</a> <span style="color:#666">(Ctrl-M)<br/>
							<small>Press backspace on field name to delete field.<br/>Press up/down to navigate between fields<br/></small>
							</span></td></tr>
						</table>	
					</td>
				</tr>
			</table><hr/>
			<input type="submit" value="Submit" />
		</form>
{% endblock %}
