| @@ 362-370 (lines=9) @@ | ||
| 359 | $this->_elements["s_exist_{$identifier}_br"] = $this->_form->createElement('static', "s_exist_{$identifier}_upload", '', "<br/>"); |
|
| 360 | $this->_elements["e_exist_{$identifier}_upload"] = $this->_form->createElement('submit', "{$this->name}_e_exist_{$identifier}_upload", $this->_l10n->get('replace file'), $attributes); |
|
| 361 | } |
|
| 362 | if ($this->_type->attachments[$identifier]->can_do('midgard:delete')) |
|
| 363 | { |
|
| 364 | $attributes = Array |
|
| 365 | ( |
|
| 366 | 'class' => 'submit exist delete', |
|
| 367 | 'id' => "{$this->_namespace}{$this->name}_e_exist_{$identifier}_delete", |
|
| 368 | ); |
|
| 369 | $this->_elements["e_exist_{$identifier}_delete"] = $this->_form->createElement('submit', "{$this->name}_e_exist_{$identifier}_delete", $this->_l10n->get('delete file'), $attributes); |
|
| 370 | } |
|
| 371 | ||
| 372 | if ($this->show_progressbar) |
|
| 373 | { |
|
| @@ 455-463 (lines=9) @@ | ||
| 452 | ); |
|
| 453 | $this->_elements["e_exist_{$identifier}_upload"] = $this->_form->createElement('submit', "{$this->name}_e_exist_{$identifier}_upload", $this->_l10n->get('replace file'), $attributes); |
|
| 454 | } |
|
| 455 | if ($info['object']->can_do('midgard:delete')) |
|
| 456 | { |
|
| 457 | $attributes = Array |
|
| 458 | ( |
|
| 459 | 'class' => 'exist delete', |
|
| 460 | 'id' => "{$this->_namespace}{$this->name}_e_exist_{$identifier}_delete", |
|
| 461 | ); |
|
| 462 | $this->_elements["e_exist_{$identifier}_delete"] = $this->_form->createElement('submit', "{$this->name}_e_exist_{$identifier}_delete", $this->_l10n->get('delete file'), $attributes); |
|
| 463 | } |
|
| 464 | // WTF, the identifiers look wonky here |
|
| 465 | $html = sprintf("<span id=\"e_exist_{$identifier}_delete\" style=\"display:none;color:red\">%s</span>", |
|
| 466 | $this->_l10n_midcom->get('You can only upload images here. This file will not be saved.')); |
|