Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
Re-add the surrounding "submit_container" in table forms (see #7396)
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Oct 22, 2014
1 parent 34646bb commit 29822dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contao/templates/forms/form_submit.html5
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<?php $this->extend('form_row'); ?>

<?php $this->block('field'); ?>
<?php if (!$this->tableless): ?>
<div class="submit_container">
<?php endif; ?>
<?php if ($this->src): ?>
<input type="image" src="<?php echo $this->src; ?>" id="ctrl_<?php echo $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>" title="<?php echo specialchars($this->slabel); ?>" alt="<?php echo specialchars($this->slabel); ?>"<?php echo $this->getAttributes(); ?>>
<?php else: ?>
<input type="submit" id="ctrl_<?php echo $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>" value="<?php echo specialchars($this->slabel); ?>"<?php echo $this->getAttributes(); ?>>
<?php endif; ?>
<?php if (!$this->tableless): ?>
</div>
<?php endif; ?>
<?php $this->endblock(); ?>
6 changes: 6 additions & 0 deletions contao/templates/forms/form_submit.xhtml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
<?php $this->extend('form_row'); ?>

<?php $this->block('field'); ?>
<?php if (!$this->tableless): ?>
<div class="submit_container">
<?php endif; ?>
<?php if ($this->src): ?>
<input type="image" src="<?php echo $this->src; ?>" id="ctrl_<?php echo $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>" title="<?php echo specialchars($this->slabel); ?>" alt="<?php echo specialchars($this->slabel); ?>"<?php echo $this->getAttributes(); ?> />
<?php else: ?>
<input type="submit" id="ctrl_<?php echo $this->id; ?>" class="submit<?php if ($this->class) echo ' ' . $this->class; ?>" value="<?php echo specialchars($this->slabel); ?>"<?php echo $this->getAttributes(); ?> />
<?php endif; ?>
<?php if (!$this->tableless): ?>
</div>
<?php endif; ?>
<?php $this->endblock(); ?>

0 comments on commit 29822dd

Please sign in to comment.