Skip to content

Commit

Permalink
Use new duplicator markup
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdunn committed Mar 16, 2012
1 parent 26a877f commit d6725e9
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions content/content.sets.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,7 @@ public function __viewEdit() {
$fieldset->appendChild(new XMLElement('legend', __('Parameters')));

$div = new XMLElement('div');
$div->setAttribute('class', 'subsection');
$div->appendChild(new XMLElement('h3', __('Parameters')));

$ol = new XMLElement('ol');
$ol->setAttribute('class', 'filters-duplicator');

Expand All @@ -237,7 +236,8 @@ public function __viewEdit() {
// Add parameter set:
$wrapper = new XMLElement('li');
$wrapper->setAttribute('class', 'template');

$wrapper->setAttribute('data-type', 'definiton');

$this->displayParameter($wrapper, '-1', array(
'type' => __('Parameter definition')
));
Expand Down Expand Up @@ -291,7 +291,9 @@ public function __viewEdit() {
}

protected function displayParameter(&$wrapper, $sortorder, $param) {
$wrapper->appendChild(new XMLElement('h4', ucwords($param['type'])));
$header = new XMLElement('header');
$header->appendChild(new XMLElement('h4', ucwords($param['type'])));
$wrapper->appendChild($header);
$wrapper->appendChild(Widget::Input("params[{$sortorder}][type]", $param['type'], 'hidden'));

if (!empty($param['id'])) {
Expand Down

0 comments on commit d6725e9

Please sign in to comment.