Skip to content

Commit

Permalink
feat(section): make section title required
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 23, 2020
1 parent 92c656f commit 6b90673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/section.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public function showForm($ID, $options = []) {
echo '<tr>';
echo '<td width="20%">'.__('Title').' <span style="color:red;">*</span></td>';
echo '<td colspan="3">';
echo Html::input('name', ['style' => 'width: calc(100% - 20px)', 'value' => $this->fields['name']]);
echo Html::input('name', ['style' => 'width: calc(100% - 20px)', 'required' => 'required', 'value' => $this->fields['name']]);
echo '</td>';
echo '</tr>';

Expand Down

0 comments on commit 6b90673

Please sign in to comment.