do not hide unavailable options, just disable them so people can see what is actually possible but just not available due to webserver-usage or other settings
Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
2
templates/Sparkle/formfields/bool.tpl
vendored
2
templates/Sparkle/formfields/bool.tpl
vendored
@@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<td>{$label}</td>
|
||||
<td><input type="checkbox" name="{$fieldname}" value="1" <if( $fielddata['value'] == '1' )>checked="checked"</if> /></td>
|
||||
<td><input <if $do_show == 0>disabled="disabled"</if> type="checkbox" name="{$fieldname}" value="1" <if( $fielddata['value'] == '1' )>checked="checked"</if> /></td>
|
||||
</tr>
|
||||
|
||||
2
templates/Sparkle/formfields/file.tpl
vendored
2
templates/Sparkle/formfields/file.tpl
vendored
@@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<td>{$label}</td>
|
||||
<td><input type="file" class="file" name="{$fieldname}" /></td>
|
||||
<td><input <if $do_show == 0>disabled="disabled"</if> type="file" class="file" name="{$fieldname}" /></td>
|
||||
</tr>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<td>{$label}</td>
|
||||
<td><input type="password" class="text" name="{$fieldname}" value="{$value}" /></td>
|
||||
<td><input <if $do_show == 0>disabled="disabled"</if> type="password" class="text" name="{$fieldname}" value="{$value}" /></td>
|
||||
</tr>
|
||||
2
templates/Sparkle/formfields/option.tpl
vendored
2
templates/Sparkle/formfields/option.tpl
vendored
@@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<td>{$label}</td>
|
||||
<td><select name="{$fieldname}<if $multiple == true>[]</if>"<if $multiple == true> multiple="multiple"</if>>{$options}</select></td>
|
||||
<td><select <if $do_show == 0>disabled="disabled"</if> name="{$fieldname}<if $multiple == true>[]</if>"<if $multiple == true> multiple="multiple"</if>>{$options}</select></td>
|
||||
</tr>
|
||||
|
||||
2
templates/Sparkle/formfields/string.tpl
vendored
2
templates/Sparkle/formfields/string.tpl
vendored
@@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<td>{$label}</td>
|
||||
<td><input type="text" class="text" name="{$fieldname}" value="{$value}" /></td>
|
||||
<td><input <if $do_show == 0>disabled="disabled"</if> type="text" class="text" name="{$fieldname}" value="{$value}" /></td>
|
||||
</tr>
|
||||
|
||||
2
templates/Sparkle/formfields/text.tpl
vendored
2
templates/Sparkle/formfields/text.tpl
vendored
@@ -1,4 +1,4 @@
|
||||
<tr>
|
||||
<td>{$label}</td>
|
||||
<td><textarea rows="12" cols="40" name="{$fieldname}">{$value}</textarea></td>
|
||||
<td><textarea <if $do_show == 0>disabled="disabled"</if> rows="12" cols="40" name="{$fieldname}">{$value}</textarea></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user