I tried that rout first.  It kept wanting to put a label in the wrong spot.
 The problem is I'm taking the text area and turning it into a code mirror
div and then putting it inside an accordion.  The code mirror stuff adds
divs that I had to specifically place in other divs in order to get the
accordion working.


On Wed, Aug 7, 2013 at 11:15 AM, Rasmus Berg Palm
<notifications@github.com>wrote:

> In app/View/Dashboards/edit.ctp:
>
> > @@ -5,6 +5,64 @@
> >      <h4>Change name</h4>
> >      <?php echo $this->Form->create('Dashboard');?>
> >      <?php echo $this->Form->input('name'); ?>
> > +    <div id="accordion">
> > +        <div class="acc-panel">CSS</div>
> > +        <div class="input textarea">
> > +            <div id="dashboard-css-data">
> > +                <textarea id='DashboardCss' name='data[Dashboard][css]'><?php echo $this->request->data['Dashboard']['css'] ?></textarea>
> > +            </div>
> > +        </div>
> > +        <div class="acc-panel">Javascript</div>
> > +        <div class="input textarea">
> > +            <div id="dashboard-javascript-data">
> > +                <textarea id='DashboardJavascript' name='data[Dashboard][javascript]'><?php echo $this->request->data['Dashboard']['javascript'] ?></textarea>
> > +            </div>
> > +        </div>
> > +    </div>
>
> Don't fight the framework.. use it. $this->Form->input() has alot of
> options
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/rasmusbergpalm/jslate/pull/36/files#r5637205>
> .
>