Skip to content

Commit

Permalink
fix(form): reimplement submit button conditions
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Jan 20, 2021
1 parent cb9b4c7 commit 363141e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions inc/question.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,24 @@ public static function showForForm(CommonDBTM $item, $withtemplate = '') {

echo '</ol>';
echo '</div>';

echo '<form name="form" method="post" action="'.PluginFormcreatorForm::getFormURL().'" data-itemtype="' . PluginFormcreatorForm::class . '">';
echo '<table>';

echo '<tr>';
echo '<th colspan="4">';
echo __('Show submit button', 'formcreator');
echo '</th>';
echo '</tr>';
$condition = new PluginFormcreatorCondition();
$condition->showConditionsForItem($item);

echo '</table>';

$item->showFormButtons([
'candel' => false
]);
Html::closeForm();
}

/**
Expand Down

0 comments on commit 363141e

Please sign in to comment.