# css-javascript-toolbox/6.0.15/views/blocks/block/tmpl/edit.html.tmpl

CSS &amp; JavaScript Toolbox, version 6.0.15. 33 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.15/code/views/blocks/block/tmpl/edit.html.tmpl
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.15/raw/views/blocks/block/tmpl/edit.html.tmpl
- Modified: 2013-05-30T23:54:20+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/css-javascript-toolbox/6.0.15/code/views/blocks/block/tmpl/edit.html.tmpl#L10-L20`.

```
<?php
/**
* 
*/

// Disallow direct access.
defined('ABSPATH') or die("Access denied");
?>
		<div class="cjt-toolbox edit-block-name">
			<input type="text" class="block-name" value="">
			<div class="icons-group">
				<a class="cjt-tb-link cancel" title="<?php echo cssJSToolbox::getText('Cancel editing code block title') ?>"></a>
				<a class="cjt-tb-link save" title="<?php echo cssJSToolbox::getText('Save code block title') ?>"></a>
	    </div>
		</div>
<?php echo $this->getTemplate('toolbox', array(), 'tmpl/templates') ?>
		<input type="hidden" name="blocks[]" value="<?php echo $this->block->id ?>" />
<?php
		// Hidden fields.
			$fields = array('name', 'state','location');
			foreach ($fields as $field) :
?>
		<input type="hidden" name="cjtoolbox[<?php echo $this->block->id; ?>][<?php echo $field ?>]" value="<?php echo $this->block->$field ?>" />
<?php endforeach; ?>
		<div class="cjcontainer">
			<div class="cjcodeblock">
				<div class="datablock">
					<textarea class="initCode" style="visibility:hidden"><?php echo htmlentities($this->block->code, null, 'UTF-8') ;?></textarea>
					<div id="editor-<?php echo $this->block->id ?>" class="code-editor">
					</div>					
				</div>
			</div>
		</div>
```
