Skip to content

Commit

Permalink
Add id as title attribute
Browse files Browse the repository at this point in the history
This makes it easier for developers to know the fields id
  • Loading branch information
nitriques committed Aug 7, 2017
1 parent 1050ac1 commit 81508c0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion symphony/lib/toolkit/class.field.php
Expand Up @@ -475,7 +475,11 @@ public function displaySettingsPanel(XMLElement &$wrapper, $errors = null)
{
// Create header
$location = ($this->get('location') ? $this->get('location') : 'main');
$header = new XMLElement('header', null, array('class' => 'frame-header ' . $location, 'data-name' => $this->name()));
$header = new XMLElement('header', null, array(
'class' => 'frame-header ' . $location,
'data-name' => $this->name(),
'title' => $this->get('id'),
));
$label = (($this->get('label')) ? $this->get('label') : __('New Field'));
$header->appendChild(new XMLElement('h4', '<strong>' . $label . '</strong> <span class="type">' . $this->name() . '</span>'));
$wrapper->appendChild($header);
Expand Down

0 comments on commit 81508c0

Please sign in to comment.