Commit b9f6edb3 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Feature: Upload Button - wrapped with Bootstrap Button - enabled again to merge with button-upload

parent 9eb45f4f
......@@ -2825,16 +2825,16 @@ abstract class AbstractBuildForm {
$attribute .= $this->getAttributeFeMode($formElement[FE_MODE]);
$attribute .= Support::doAttribute('class', $uploadClass, true);
$htmlInputFile = '<input ' . $attribute . '>' . $this->getHelpBlock();
// $htmlInputFile = '<input ' . $attribute . '>' . $this->getHelpBlock();
// <input type="file"> with BS3: https://stackoverflow.com/questions/11235206/twitter-bootstrap-form-file-element-upload-button/25053973#25053973
// $attribute .= Support::doAttribute('style', "display:none;");
// $htmlInputFile = '<input ' . $attribute . '>';
// $attributeFileLabel = Support::doAttribute('for', $formElement[FE_HTML_ID]);
// $attributeFileLabel .= Support::doAttribute('class', 'btn btn-default');
//
// Support::setIfNotSet($formElement, FE_FILE_BUTTON_TEXT, FE_FILE_BUTTON_TEXT_DEFAULT);
// $htmlInputFile = Support::wrapTag("<label $attributeFileLabel>", $htmlInputFile . $formElement[FE_FILE_BUTTON_TEXT]);
$attribute .= Support::doAttribute('style', "display:none;");
$htmlInputFile = '<input ' . $attribute . '>';
$attributeFileLabel = Support::doAttribute('for', $formElement[FE_HTML_ID]);
$attributeFileLabel .= Support::doAttribute('class', 'btn btn-default ' . $uploadClass);
Support::setIfNotSet($formElement, FE_FILE_BUTTON_TEXT, FE_FILE_BUTTON_TEXT_DEFAULT);
$htmlInputFile = Support::wrapTag("<label $attributeFileLabel>", $htmlInputFile . $formElement[FE_FILE_BUTTON_TEXT]);
$deleteButton = Support::wrapTag("<button type='button' class='delete-file' data-sip='$sipUpload' name='delete-$htmlFormElementName'>", $this->symbol[SYMBOL_DELETE]);
......
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