<div>
	<!-- editor -->
	<div>
		<div class="toolbar">
			<a href="/administrator/blog/delete/{{id}}">
				<span class="icon icon-32-delete"></span>Delete
			</a>
			<a href="/administrator/blog">
				<span class="icon icon-32-cancel"></span>Cancel
			</a>
			<a href="#" id="save-button">
				<span class="icon icon-32-save"></span>Save
			</a>
		</div>
		<form action = "" method = "post" id="blog-form">
			<dl>
				<dt>
					<label>
						Name
					</label>
				</dt>
				<dd>
					<input type="text" name="node_core_name" value="{{node.name}}"/>
				</dd>
				<dt>
					<label>
						Sub Title
					</label>
				</dt>
				<dd>
					<input type="text" name="node_options_code" value="{{node.options.code}}"/>
				</dd>
				<dt>
					<label>
						Text
					</label>
				</dt>
				<dd>
					<textarea id="markItUp" cols="80" rows="20" name="node_blogpost_text">
						{{text}}
					</textarea>
				</dd>
				<dt>
					<label>
						Author
					</label>
				</dt>
				<dd>
					<input type="text" name="node_options_author" value="{{node.options.author}}"/>
				</dd>
				<dt>
					<label>
						Status
					</label>
				</dt>
				<dd>
					<select name="node_core_status">
						{{#statuses}}
							<option value="{{value}}" {{#selected}}{{selected}}{{/selected}}>
								{{value}}
							</option>
						{{/statuses}}
					</select>
				</dd>
			</dl>
		</form>
	</div>
</div>

<script type="text/javascript">
    

$(function() {
	// Add markItUp! to your textarea in one line
	// $('textarea').markItUp( { Settings }, { OptionalExtraSettings } );
	$('#markItUp').markItUp(mySettings);



	// You can add content from anywhere in your page
	// $.markItUp( { Settings } );	
	$('.add').click(function() {
 		$('#markItUp').markItUp('insert',
			{ 	openWith:'<opening tag>',
				closeWith:'<\/closing tag>',
				placeHolder:"New content"
			}
		);
 		return false;
	});
	
	// And you can add/remove markItUp! whenever you want
	// $(textarea).markItUpRemove();
	$('.toggle').click(function() {
		if ($("#markItUp.markItUpEditor").length === 1) {
 			$("#markItUp").markItUp('remove');
			$("span", this).text("get markItUp! back");
		} else {
			$('#markItUp').markItUp(mySettings);
			$("span", this).text("remove markItUp!");
		}
 		return false;
	});
});
</script>
