Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
75daa449c1
@ -2916,14 +2916,9 @@ class Util
|
||||
*/
|
||||
public static function getFKCheckbox()
|
||||
{
|
||||
$checked = self::isForeignKeyCheck();
|
||||
$html = '<input type="hidden" name="fk_checks" value="0" />';
|
||||
$html .= '<input type="checkbox" name="fk_checks"'
|
||||
. ' id="fk_checks" value="1"'
|
||||
. ($checked ? ' checked="checked"' : '') . '/>';
|
||||
$html .= '<label for="fk_checks">' . __('Enable foreign key checks')
|
||||
. '</label>';
|
||||
return $html;
|
||||
return Template::get('fk_checkbox')->render([
|
||||
'checked' => self::isForeignKeyCheck(),
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
4
templates/fk_checkbox.twig
Normal file
4
templates/fk_checkbox.twig
Normal file
@ -0,0 +1,4 @@
|
||||
<input type="hidden" name="fk_checks" value="0">
|
||||
<input type="checkbox" name="fk_checks" id="fk_checks" value="1"
|
||||
{{- checked ? ' checked' }}>
|
||||
<label for="fk_checks">{% trans 'Enable foreign key checks' %}</label>
|
||||
Loading…
Reference in New Issue
Block a user