Skip to content

Commit

Permalink
Feature Request #1511 Highlight empty form fields in database operation
Browse files Browse the repository at this point in the history
Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
  • Loading branch information
chirayuchiripal committed Mar 6, 2014
1 parent 5c066b6 commit 12e8e87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/display_create_table.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function PMA_getHtmlForCreateTable($db)
$html .= ' </div>';
$html .= ' <div class="formelement">';
$html .= __('Number of columns') . ":";
$html .= ' <input type="number" min="1" name="num_fields" size="2" value="4" />';
$html .= ' <input type="number" min="1" name="num_fields" size="2" value="4" required />';
$html .= ' </div>';
$html .= ' <div class="clearfloat"></div>';
$html .= '</fieldset>';
Expand Down
4 changes: 2 additions & 2 deletions libraries/operations.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function PMA_getHtmlForRenameDatabase($db)
. '</legend>';

$html_output .= '<input id="new_db_name" type="text" name="newname" '
. 'size="30" class="textfield" value="" />'
. 'size="30" class="textfield" value="" required />'
. '</fieldset>'
. '<fieldset class="tblFooters">'
. '<input id="rename_db_input" type="submit" value="' . __('Go') . '" />'
Expand Down Expand Up @@ -175,7 +175,7 @@ function PMA_getHtmlForCopyDatabase($db)
$html_output .= __('Copy database to:')
. '</legend>'
. '<input type="text" name="newname" size="30" '
. 'class="textfield" value="" /><br />'
. 'class="textfield" value="" required /><br />'
. PMA_Util::getRadioFields(
'what', $choices, 'data', true
);
Expand Down

0 comments on commit 12e8e87

Please sign in to comment.