예제 #1
0
 /**
  * Get html for additional delete checkbox field
  *
  * @return string
  */
 protected function _getDeleteCheckbox()
 {
     $html = '';
     if ((string) $this->getValue()) {
         $label = __('Delete File');
         $html .= '<div>' . $this->getValue() . ' ';
         $html .= '<input type="checkbox" name="' . parent::getName() . '[delete]" value="1" class="checkbox" id="' . $this->getHtmlId() . '_delete"' . ($this->getDisabled() ? ' disabled="disabled"' : '') . '/>';
         $html .= '<label for="' . $this->getHtmlId() . '_delete"' . ($this->getDisabled() ? ' class="disabled"' : '') . '> ' . $label . '</label>';
         $html .= '<input type="hidden" name="' . parent::getName() . '[value]" value="' . $this->getValue() . '" />';
         $html .= '</div>';
     }
     return $html;
 }
예제 #2
0
파일: File.php 프로젝트: sz-bill/Magento2.x
 /**
  * @return string
  */
 protected function _getHiddenInput()
 {
     return '<input type="hidden" name="' . parent::getName() . '[value]" value="' . $this->getValue() . '" />';
 }