skyrun
Active Member
updated from f3.2 (about 6 mo old version) to f3.3 using svn and the buttons in my custom template stopped working. they're there, but nothing happens (including no js errors) when they are pressed now.
here is the code from the template:
here is the code from the template:
PHP:
....
// add html for 2 new buttons
$form->submitnoassignbutton = "<input type=\"submit\" id=\"fabrikSubmitnoassign\" class=\"btn btn-primary button\" name=\"Submitnoassign\" value=\"Save, Do Not Assign\" />";
$form->submitnosave = "<input type=\"submit\" id=\"fabrikSubmitnosave\" class=\"btn btn-fail button\" name=\"Submitnosave\" value=\"Cancel: Release Lock, But Do Not Save Changes\" />";
if ($this->hasActions) : ?>
<div class="fabrikActions form-actions">
<div class="row-fluid">
<div class="span4 btn-group">
<?php
echo $form->submitButton. ' ';
// place 2 new buttons vvvv
echo $form->submitnoassignbutton. ' ';
echo $form->submitnosave. ' ';
// place 2 new buttons ^^^^
echo $form->applyButton . ' ';
echo $form->copyButton;
?>
</div>
<?php if ($form->gobackButton . $form->resetButton . $form->deleteButton !== '') : ?>
....