提交按钮显示在表单外部

时间:2019-12-02 16:02:34

标签: html twitter-bootstrap cakephp bootstrap-4 frontend

我的显示有一个小问题,我使用Bootstrap,并且有一个面板用于填充字段,其中包含标题,输入字段和验证按钮。问题是验证按钮超出了面板的轮廓,请问您有解决方案吗, 谢谢 !

面板来自这部分代码:

<div id="collapseOne" class="panel-collapse collapse in">
<div class="panel-footer">
<ul class="list-group">
<?php foreach ($header['children'] as $index => $child) : ?>
    <li class="list-group-item list-group-item-info">
        <?php echo $child['Node']['name']; ?>
        <div class="clearfix">
            <div class="btn-toolbar pull-right" role="toolbar">
                <div class="btn-group">

                <?php
                    $edit_form = $this->BsForm->create('Node', array('class' => 'form-vertical'));
                    $edit_form .= $this->BsForm->hidden('id', array('value' => $child['Node']['id']));
                    $edit_form .= $this->BsForm->input('name', array('value' => $child['Node']['name']));
                    $edit_form .= $this->BsForm->input(__('Modifier'), array('type' => 'submit', 'class'=>'btn-default'));
                    $edit_form .= $this->BsForm->end();
                    echo $this->element('btn-tree-edit', array('form' => $edit_form));
                    echo $this->element('btn-remove', array('name' => $child['Node']['name'], 'id' => $child['Node']['id']));
                ?>  
</div></div></div></li></ul></div></div>

0 个答案:

没有答案