示例#1
0
 /**
  * Sets the dropdown for the mass action
  *
  * @param \SpoonFormDropdown $actionDropDown A dropdown-instance.
  */
 public function setMassAction(\SpoonFormDropdown $actionDropDown)
 {
     // build HTML
     $HTML = '<label for="' . $actionDropDown->getAttribute('id') . '">' . \SpoonFilter::ucfirst(BackendLanguage::lbl('WithSelected')) . '</label>' . $actionDropDown->parse() . '<button type="button" class="btn btn-default jsMassActionSubmit">' . '   <span>' . \SpoonFilter::ucfirst(BackendLanguage::lbl('Execute')) . '</span>' . '</button>';
     // assign parsed html
     $this->tpl->assign('massAction', $HTML);
 }
示例#2
0
    /**
     * Sets the dropdown for the mass action
     *
     * @param SpoonFormDropdown $actionDropDown A dropdown-instance.
     */
    public function setMassAction(SpoonFormDropdown $actionDropDown)
    {
        // buid HTML
        $HTML = '<p><label for="' . $actionDropDown->getAttribute('id') . '">' . SpoonFilter::ucfirst(BL::lbl('WithSelected')) . '</label></p>
				<p>
					' . $actionDropDown->parse() . '
				</p>
				<div class="buttonHolder">
					<a href="#" class="submitButton button">
						<span>' . SpoonFilter::ucfirst(BL::lbl('Execute')) . '</span>
					</a>
				</div>';
        // assign parsed html
        $this->tpl->assign('massAction', $HTML);
    }