|
@@ -894,9 +894,10 @@ function template_show_settings()
|
|
{
|
|
{
|
|
// Figure out the exact type - use "number" for "float" and "int".
|
|
// Figure out the exact type - use "number" for "float" and "int".
|
|
$type = in_array($config_var['type'], $text_types) ? $config_var['type'] : ($config_var['type'] == 'int' || $config_var['type'] == 'float' ? 'number' : 'text');
|
|
$type = in_array($config_var['type'], $text_types) ? $config_var['type'] : ($config_var['type'] == 'int' || $config_var['type'] == 'float' ? 'number' : 'text');
|
|
|
|
+ $step = $config_var['type'] == 'float' ? ' step="0.1"' : '';
|
|
|
|
|
|
echo '
|
|
echo '
|
|
- <input type="', $type ,'"', $javascript, $disabled, ' name="', $config_var['name'], '" id="', $config_var['name'], '" value="', $config_var['value'], '"', ($config_var['size'] ? ' size="' . $config_var['size'] . '"' : ''), ' class="input_text">';
|
|
|
|
|
|
+ <input type="', $type ,'"', $javascript, $disabled, ' name="', $config_var['name'], '" id="', $config_var['name'], '" value="', $config_var['value'], '"', ($config_var['size'] ? ' size="' . $config_var['size'] . '"' : ''), ' class="input_text"', $step, '>';
|
|
}
|
|
}
|
|
|
|
|
|
echo isset($config_var['postinput']) ? '
|
|
echo isset($config_var['postinput']) ? '
|