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

CSS &amp; JavaScript Toolbox, version 7.1.2. 29 lines.

- Page: https://pluginprobe.com/plugins/css-javascript-toolbox/7.1.2/code/views/blocks/block/tmpl/edit.html.tmpl
- Raw: https://pluginprobe.com/plugins/css-javascript-toolbox/7.1.2/raw/views/blocks/block/tmpl/edit.html.tmpl
- Modified: 2014-05-06T16:47:26+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/7.1.2/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="" maxlength="50">
			<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; ?>
<?php	
	if (!$this->isClosed) {
		echo $this->getTemplate('content');
	}	
?>
```
