This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the markup of the form submit button (see #7396)
- Loading branch information
Showing
3 changed files
with
52 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
<?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(); ?> | ||
<?php if ($this->tableless): ?> | ||
|
||
<div class="submit_container<?php if ($this->class) echo ' ' . $this->class; ?>"> | ||
<?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; ?> | ||
</div> | ||
|
||
<?php else: ?> | ||
|
||
<tr class="<?php echo $this->rowClass; ?>"> | ||
<td class="col_0 col_first"> </td> | ||
<td class="col_1 col_last"> | ||
<div class="submit_container"> | ||
<?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; ?> | ||
</div> | ||
</td> | ||
</tr> | ||
|
||
<?php endif; ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
<?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(); ?> | ||
<?php if ($this->tableless): ?> | ||
|
||
<div class="submit_container<?php if ($this->class) echo ' ' . $this->class; ?>"> | ||
<?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; ?> | ||
</div> | ||
|
||
<?php else: ?> | ||
|
||
<tr class="<?php echo $this->rowClass; ?>"> | ||
<td class="col_0 col_first"> </td> | ||
<td class="col_1 col_last"> | ||
<div class="submit_container"> | ||
<?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; ?> | ||
</div> | ||
</td> | ||
</tr> | ||
|
||
<?php endif; ?> |