Skip to content

Commit

Permalink
feat(form_validator):enhance presentation
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Apr 1, 2021
1 parent c209561 commit 2cb3f4e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion inc/form_validator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ public function showForForm(PluginFormcreatorForm $item, $options = []) {
// Global validation settings
echo "<form method='post' action='".self::getFormURL()."'>";
echo "<div class='spaced'><table class='tab_cadre_fixe'>";
echo "<tr class='tab_bg_1'><th colspan='3'>";
echo "<tr class='tab_bg_1'><th colspan='3' class='center'>";
echo __('General settings', 'formcreator');
echo "</th>";
echo "<tr><td width='20%'>";
Expand Down Expand Up @@ -184,6 +184,16 @@ class='submit'>";
// Show current validators
$formFk = PluginFormcreatorForm::getForeignKeyField();
$rows = $this->find([$formFk => $formId], ['level ASC']);
echo '<table class="tab_cadre_fixe">';
echo '<tr class="tab_bg_1"><th class="center">';
echo self::getTypeName(Session::getPluralNumber());
echo '</th>';
echo '</tr>';
echo '</table>';
if (count($rows) < 1) {
// No valdiatorr to show
return;
}

$rand = mt_rand();
Html::openMassiveActionsForm('mass'.__CLASS__.$rand);
Expand Down

0 comments on commit 2cb3f4e

Please sign in to comment.