Moved the common Monitors add and edit nav code to an element.

This commit is contained in:
Kyle Johnson 2013-09-24 20:43:48 -04:00
parent 3957b709bb
commit f3c235544d
3 changed files with 10 additions and 16 deletions

View File

@ -0,0 +1,8 @@
<ul class="nav nav-tabs">
<li><a data-toggle="tab" href="#general">General</a></li>
<li><a data-toggle="tab" href="#source">Source</a></li>
<li><a data-toggle="tab" href="#timestamp">Timestamp</a></li>
<li><a data-toggle="tab" href="#buffers">Buffers</a></li>
<li><a data-toggle="tab" href="#control">Control</a></li>
<li><a data-toggle="tab" href="#misc">Misc</a></li>
</ul>

View File

@ -1,11 +1,4 @@
<ul class="nav nav-tabs">
<li><a data-toggle="tab" href="#general">General</a></li>
<li><a data-toggle="tab" href="#source">Source</a></li>
<li><a data-toggle="tab" href="#timestamp">Timestamp</a></li>
<li><a data-toggle="tab" href="#buffers">Buffers</a></li>
<li><a data-toggle="tab" href="#control">Control</a></li>
<li><a data-toggle="tab" href="#misc">Misc</a></li>
</ul>
<?php echo $this->element('tabs-nav'); ?>
<?php echo $this->Form->create('Monitor', array( 'inputDefaults' => array( 'legend' => false, 'fieldset' => false))); ?>
<?php echo $this->Form->input('Id', array('type' => 'hidden')); ?>

View File

@ -1,11 +1,4 @@
<ul class="nav nav-tabs">
<li><a data-toggle="tab" href="#general">General</a></li>
<li><a data-toggle="tab" href="#source">Source</a></li>
<li><a data-toggle="tab" href="#timestamp">Timestamp</a></li>
<li><a data-toggle="tab" href="#buffers">Buffers</a></li>
<li><a data-toggle="tab" href="#control">Control</a></li>
<li><a data-toggle="tab" href="#misc">Misc</a></li>
</ul>
<?php echo $this->element('tabs-nav'); ?>
<?php echo $this->Form->create('Monitor', array( 'inputDefaults' => array( 'legend' => false, 'fieldset' => false))); ?>
<?php echo $this->Form->input('Id', array('type' => 'hidden')); ?>