Commit e049debd authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Merge branch...

Merge branch '6044-orderedarrayattribute-action-images-should-have-formnovalidate-attribute' into '1.4-dev'

Resolve "OrderedArrayAttribute action images should have formnovalidate attribute"

See merge request fusiondirectory/fd!704
Showing with 20 additions and 16 deletions
+20 -16
...@@ -523,10 +523,11 @@ class OrderedArrayAttribute extends SetAttribute ...@@ -523,10 +523,11 @@ class OrderedArrayAttribute extends SetAttribute
$img .= $this->renderInputField( $img .= $this->renderInputField(
'image', $id.'_up_'.$key, 'image', $id.'_up_'.$key,
[ [
'src' => 'geticon.php?context=actions&icon=view-sort-descending&size=16', 'src' => 'geticon.php?context=actions&icon=view-sort-descending&size=16',
'title' => _('Sort up'), 'title' => _('Sort up'),
'alt' => _('Sort up'), 'alt' => _('Sort up'),
'class' => 'center' 'class' => 'center',
'formnovalidate' => 'formnovalidate',
] ]
); );
} else { } else {
...@@ -536,10 +537,11 @@ class OrderedArrayAttribute extends SetAttribute ...@@ -536,10 +537,11 @@ class OrderedArrayAttribute extends SetAttribute
$img .= $this->renderInputField( $img .= $this->renderInputField(
'image', $id.'_down_'.$key, 'image', $id.'_down_'.$key,
[ [
'src' => 'geticon.php?context=actions&icon=view-sort-ascending&size=16', 'src' => 'geticon.php?context=actions&icon=view-sort-ascending&size=16',
'title' => _('Sort down'), 'title' => _('Sort down'),
'alt' => _('Sort down'), 'alt' => _('Sort down'),
'class' => 'center' 'class' => 'center',
'formnovalidate' => 'formnovalidate',
] ]
); );
} else { } else {
...@@ -551,20 +553,22 @@ class OrderedArrayAttribute extends SetAttribute ...@@ -551,20 +553,22 @@ class OrderedArrayAttribute extends SetAttribute
$img .= $this->renderInputField( $img .= $this->renderInputField(
'image', $id.'_edit_'.$key, 'image', $id.'_edit_'.$key,
[ [
'src' => 'geticon.php?context=actions&icon=document-edit&size=16', 'src' => 'geticon.php?context=actions&icon=document-edit&size=16',
'title' => _('Edit'), 'title' => _('Edit'),
'alt' => _('Edit'), 'alt' => _('Edit'),
'class' => 'center' 'class' => 'center',
'formnovalidate' => 'formnovalidate',
] ]
); );
} }
$img .= $this->renderInputField( $img .= $this->renderInputField(
'image', $id.'_del_'.$key, 'image', $id.'_del_'.$key,
[ [
'src' => 'geticon.php?context=actions&icon=edit-delete&size=16', 'src' => 'geticon.php?context=actions&icon=edit-delete&size=16',
'title' => _('Delete'), 'title' => _('Delete'),
'alt' => _('Delete'), 'alt' => _('Delete'),
'class' => 'center' 'class' => 'center',
'formnovalidate' => 'formnovalidate',
] ]
); );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment