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 e3b07e0 commit e3ecf02
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 @@ -396,7 +396,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 e3ecf02

Please sign in to comment.