/** * */ public function modalCreateProfile() { $modalId = Zo2Factory::getRandomId(); $modal = new Zo2HtmlModal($modalId, 'Save as Copy', '<div class="input-prepend"> <span class="add-on">Profile name</span> <input id="prependedInput" name="zo2[newProfile]" type="text" placeholder="Enter new profile name"> </div>'); $modal->addButton(array('class' => 'btn', 'data-dismiss' => 'modal', 'aria-hidden' => 'hidden', 'text' => 'Close')); $modal->addButton(array('class' => 'btn btn-primary', 'text' => 'Save', 'onClick' => 'zo2.admin.profile.saveAs(); return false;')); $this->_ajax->appendHtml($modal->render(), '#zo2-framework'); $this->_ajax->addExecute('jQuery(\'#' . $modalId . '\').modal({})'); $this->_ajax->response(); }