[pLog-svn] r5080 - plugins/branches/lifetype-1.2/authimage/templates

Reto Hugi plog at hugi.to
Tue Mar 13 10:40:02 EDT 2007


I've notice this bug the other day too. I don't think this is how we 
should fix it. readonly="readonly" is the correct xhtml syntax. 
"readonly" is not an option for us as long as we deliver xhtml.

a work around could be to add the following to each plugin config 
view/template (in addition to the already implemented readonly="readonly"):

{user_cannot_override key=plugin_authimage_length}
<input type="hidden" name="lengh" value="{$length}" />
{/user_cannot_override}

jondaley at devel.lifetype.net wrote:
> Author: jondaley
> Date: 2007-03-13 10:29:59 -0400 (Tue, 13 Mar 2007)
> New Revision: 5080
> 
> Modified:
>    plugins/branches/lifetype-1.2/authimage/templates/authimage.template
> Log:
> setting override settings to disabled makes (some browsers at least) not send the value, where a read-only value will get sent.
> 
> Modified: plugins/branches/lifetype-1.2/authimage/templates/authimage.template
> ===================================================================
> --- plugins/branches/lifetype-1.2/authimage/templates/authimage.template	2007-03-13 10:32:05 UTC (rev 5079)
> +++ plugins/branches/lifetype-1.2/authimage/templates/authimage.template	2007-03-13 14:29:59 UTC (rev 5080)
> @@ -9,7 +9,7 @@
>    <div class="field">
>     <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
>     <div class="formHelp">
> -     <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled}checked="checked"{/if} value="1" {user_cannot_override key=plugin_authimage_enabled}disabled="disabled"{/user_cannot_override} />{$locale->tr("authimage_plugin_enabled")}
> +     <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled}checked="checked"{/if} value="1" {user_cannot_override key=plugin_authimage_enabled}readonly{/user_cannot_override} />{$locale->tr("authimage_plugin_enabled")}
>     </div>
>    </div> 
>  
> @@ -17,21 +17,21 @@
>     <label for="length">{$locale->tr("label_length")}</label>
>     <span class="required">*</span>
>     <div class="formHelp">{$locale->tr("authimage_length")}</div>
> -   <input class="text" type="text" name="length" id="length" value="{$length}" {user_cannot_override key=plugin_authimage_length}disabled="disabled"{/user_cannot_override} />
> +   <input class="text" type="text" name="length" id="length" value="{$length}" {user_cannot_override key=plugin_authimage_length}readonly{/user_cannot_override} />
>    </div>
>    
>    <div class="field">
>     <label for="key">{$locale->tr("label_key")}</label>
>     <span class="required">*</span>
>     <div class="formHelp">{$locale->tr("authimage_key")}</div>
> -   <input class="text" type="text" name="key" id="key" value="{$key}" {user_cannot_override key=plugin_authimage_key}disabled="disabled"{/user_cannot_override} />
> +   <input class="text" type="text" name="key" id="key" value="{$key}" {user_cannot_override key=plugin_authimage_key}readonly{/user_cannot_override} />
>    </div>
>  
>    <div class="field">
>     <label for="expiredTime">{$locale->tr("label_expiredtime")}</label>
>     <span class="required">*</span>
>     <div class="formHelp">{$locale->tr("authimage_expiredtime")}</div>
> -   <input class="text" type="text" name="expiredTime" id="expiredTime" value="{$expiredTime}" {user_cannot_override key=plugin_authimage_expiredtime}disabled="disabled"{/user_cannot_override} />
> +   <input class="text" type="text" name="expiredTime" id="expiredTime" value="{$expiredTime}" {user_cannot_override key=plugin_authimage_expiredtime}readonly{/user_cannot_override} />
>    </div>   
>  
>    <div class="field">
> @@ -49,7 +49,7 @@
>       {foreach from=$backgrounds item=background}
>       <tr>
>        <td>
> -       <input class="radio" type="radio" name="default" id="default" value="{$background}" {if $default==$background} checked="checked" {/if} {user_cannot_override key=plugin_authimage_default}disabled="disabled"{/user_cannot_override} />
> +       <input class="radio" type="radio" name="default" id="default" value="{$background}" {if $default==$background} checked="checked" {/if} {user_cannot_override key=plugin_authimage_default}readonly{/user_cannot_override} />
>        </td>
>        <td>
>         {$background}
> 
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn



More information about the pLog-svn mailing list