<ul class="breadcrumb">
    <li>
        <a href="<?php echo Tart::uri('{{controller}}') ?>">{{controllerTitle}}</a>
        <span class="divider">/</span>
    </li>
    <li class="active">
        Edit {{model}} <strong><?php echo $item->name() ?></strong>
    </li>
</ul>
<?php echo Form::open(Tart::uri($item{{extraController}}), array(
    'class' => 'form-horizontal',
    'enctype' => 'multipart/form-data'
)) ?>
    <?php echo View::factory('{{viewsPath}}/form', array(
        'item' => $item
    )) ?>
    <div class="form-actions">
        <?php echo Tart_Html::anchor(Tart::uri('{{controller}}'), 'Cancel', array(
            'class' => 'btn btn-link'
        )); ?>
        <button type="submit" class="btn btn-primary">Save changes</button>

        <?php echo Tart_Html::anchor(Tart::uri($item, {{extraController_delete}}), 'Delete {{model}}', array(
            'class' => 'btn btn-danger pull-right',
            'data-confirm' => 'Are you sure you want to delete this {{model}}?'
        )); ?>
    </div>
<?php echo Form::close() ?>

<ul class="breadcrumb">
    <li>
        <a href="<?php echo Tart::uri('{{controller}}') ?>">{{controllerTitle}}</a>
        <span class="divider">/</span>
    </li>
    <li class="active">
        Edit {{model}} <strong><?php echo $item->name() ?></strong>
    </li>
</ul>
<?php echo Form::open(Tart::uri($item{{extraController}}), array(
    'class' => 'form-horizontal',
    'enctype' => 'multipart/form-data'
)) ?>
    <?php echo View::factory('{{viewsPath}}/form', array(
        'item' => $item
    )) ?>
    <div class="form-actions">
        <?php echo Tart_Html::anchor(Tart::uri('{{controller}}'), 'Cancel', array(
            'class' => 'btn btn-link'
        )); ?>
        <button type="submit" class="btn btn-primary">Save changes</button>

        <?php echo Tart_Html::anchor(Tart::uri($item, {{extraControllerDelete}}), 'Delete {{model}}', array(
            'class' => 'btn btn-danger pull-right',
            'data-confirm' => 'Are you sure you want to delete this {{model}}?'
        )); ?>
    </div>
<?php echo Form::close() ?>

Fix replacement in edit view template
Fix replacement in edit view template
