[pLog-svn] r596 - plog/trunk/templates/wizard
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Wed Dec 29 13:14:21 GMT 2004
Author: oscar
Date: 2004-12-29 13:14:21 +0000 (Wed, 29 Dec 2004)
New Revision: 596
Modified:
plog/trunk/templates/wizard/intro.template
plog/trunk/templates/wizard/step1.template
plog/trunk/templates/wizard/step3.template
plog/trunk/templates/wizard/step4.template
plog/trunk/templates/wizard/update1.template
Log:
added an "id" attribute to all <input> fields so that the <label> field actually works (I had only used the "name" attribute and I thought it was enough... but it isn't)
Modified: plog/trunk/templates/wizard/intro.template
===================================================================
--- plog/trunk/templates/wizard/intro.template 2004-12-29 12:46:23 UTC (rev 595)
+++ plog/trunk/templates/wizard/intro.template 2004-12-29 13:14:21 UTC (rev 596)
@@ -26,7 +26,7 @@
<label for="dbServer">Database server</label>
<span class="required">*</span>
<div class="formHelp">This is the host where your database server is running.</div>
- <input style="width:100%" type="text" name="dbServer" value="{$dbServer}"/>
+ <input style="width:100%" type="text" id="dbServer" name="dbServer" value="{$dbServer}"/>
{include file="wizard/validate.template" field=dbServer message="Database server is missing or incorrect"}
</div>
@@ -34,7 +34,7 @@
<label for="dbUser">Database user</label>
<span class="required">*</span>
<div class="formHelp">User that will be used to access the database.</div>
- <input style="width:100%" type="text" name="dbUser" value="{$dbUser}"/>
+ <input style="width:100%" type="text" id="dbUser" name="dbUser" value="{$dbUser}"/>
{include file="wizard/validate.template" field=dbUser message="Database user is missing or incorrect"}
</div>
@@ -42,13 +42,13 @@
<label for="dbPassword">Database password</label>
<span class="required">*</span>
<div class="formHelp">Password for the user given above.</div>
- <input style="width:100%" type="password" name="dbPassword" value="{$dbPassword}"/>
+ <input style="width:100%" type="password" id="dbPasswowrd" name="dbPassword" value="{$dbPassword}"/>
</div>
<div class="field">
<label for="dbName">Database name</label>
<span class="required">*</span>
- <input style="width:100%" type="text" name="dbName" value=""/>
+ <input style="width:100%" type="text" id="dbName" name="dbName" value=""/>
<div class="formHelp">Name of the database where tables will be created</div>
{include file="wizard/validate.template" field=dbName message="Database name is missing or incorrect"}
</div>
@@ -57,7 +57,7 @@
<label for="dbPrefix">Database prefix</label>
<span class="required">*</span>
<div class="formHelp">If needed, multiple instances of plog can run in the same database with different passwords, but the default is usually fine.</div>
- <input style="width:100%" type="text" name="dbPrefix" value="plog_"/>
+ <input style="width:100%" type="text" id="dbPrefix" name="dbPrefix" value="plog_"/>
</div>
</fieldset>
Modified: plog/trunk/templates/wizard/step1.template
===================================================================
--- plog/trunk/templates/wizard/step1.template 2004-12-29 12:46:23 UTC (rev 595)
+++ plog/trunk/templates/wizard/step1.template 2004-12-29 13:14:21 UTC (rev 596)
@@ -17,33 +17,33 @@
<div class="field">
<label for="dbServer">Database server</label>
<div class="fieldHelp"></div>
- {$dbServer}<br/>
+ <span id="dbServer">{$dbServer}</span><br/>
</div>
<div class="field">
<label for="dbUser">Database User</label>
<div class="fieldHelp"></div>
- {$dbUser}<br/>
+ <span id="dbServer">{$dbUser}</span><br/>
</div>
<div class="field">
<label for="dbPassword">Database password</label>
<div class="fieldHelp"></div>
- {$dbPassword}<br/>
+ <span id="dbPassword">{$dbPassword}</span><br/>
</div>
<div class="field">
<label for="dbName">Database table</label>
<div class="fieldHelp"></div>
- {$dbName}<br/>
+ <span idb="dbName">{$dbName}</span><br/>
</div>
<div class="field">
<label for="dbPrefix">Database prefix</label>
<div class="fieldHelp"></div>
- {$dbPrefix}<br/>
+ <span id="dbPrerix">{$dbPrefix}</span><br/>
</div>
<div class="field">
<label for="createDatabase">Create database</label>
<div class="fieldHelp"></div>
<span class="required"></span>
- <div class="fieldHelp"><input type="checkbox" name="createDatabase" class="checkbox" value="1" />Please check this if you want the installer to create the database.</div>
+ <div class="fieldHelp"><input type="checkbox" name="createDatabase" id="createDatabase" class="checkbox" value="1" />Please check this if you want the installer to create the database.</div>
</div>
</fieldset>
<div class="buttons">
Modified: plog/trunk/templates/wizard/step3.template
===================================================================
--- plog/trunk/templates/wizard/step3.template 2004-12-29 12:46:23 UTC (rev 595)
+++ plog/trunk/templates/wizard/step3.template 2004-12-29 13:14:21 UTC (rev 596)
@@ -19,31 +19,31 @@
<label for="userName">User name</label>
<span class="required">*</span>
<div class="fieldHelp">Name of the first default user that will be created. This user will be given administrator privileges</div>
- <input type="text" name="userName" value="{$userName}"/>
+ <input type="text" id="userName" name="userName" value="{$userName}"/>
{include file="wizard/validate.template" field=userName message="User name is missing or incorrect"}
</div>
<div class="field">
<label for="userFullName">Full name</label>
<span class="required"></span>
<div class="fieldHelp">Full name of the user</div>
- <input type="text" name="userFullName" value="{$userFullName}"/>
+ <input type="text" name="userFullName" id="userFullName" value="{$userFullName}"/>
</div>
<div class="field">
<label for="userPassword">Password</label>
<span class="required">*</span>
<div class="fieldHelp">Password assigned to this user</div>
- <input type="password" name="userPassword" value=""/>
+ <input type="password" name="userPassword" id="userPassword" value=""/>
{include file="wizard/validate.template" field=userPassword message="Password is missing or too short"}
<br/>
<div class="fieldHelp">Please confirm the password</div>
- <input type="password" name="userPasswordCheck" value=""/>
+ <input type="password" name="userPasswordCheck" id="userPasswordCheck" value=""/>
{include file="wizard/validate.template" field=userPasswordCheck message="Passwords do not match"}
</div>
<div class="field">
<label for="userEmail">Email address</label>
<span class="required">*</span>
<div class="fieldHelp">Email address where notifications will be sent</div>
- <input type="text" name="userEmail" value="{$userEmail}" />
+ <input type="text" name="userEmail" id="userEmail" value="{$userEmail}" />
{include file="wizard/validate.template" field=userEmail message="The email address is missing or incorrect"}
</div>
</fieldset>
Modified: plog/trunk/templates/wizard/step4.template
===================================================================
--- plog/trunk/templates/wizard/step4.template 2004-12-29 12:46:23 UTC (rev 595)
+++ plog/trunk/templates/wizard/step4.template 2004-12-29 13:14:21 UTC (rev 596)
@@ -19,14 +19,14 @@
<label for="blogName">Blog name</label>
<span class="required">*</span>
<div class="fieldHelp">Short but descriptive name for the new blog</div>
- <input type="text" style="width:100%" name="blogName" value="{$blogName}"/>
+ <input type="text" style="width:100%" name="blogName" id="blogName" value="{$blogName}"/>
{include file="wizard/validate.template" field=blogName message="Blog name is missing or incorrect"}
</div>
<div class="field">
<label for="blogLocale">Language</label>
<span class="required">*</span>
<div class="fieldHelp">Select the default language that will be used throughout your site</div>
- <select name="blogLocale">
+ <select name="blogLocale" id="blogLocale">
{foreach from=$siteLocales item=locale}
<option value="{$locale->getLocaleCode()}" {if $blogLocale==$locale->getLocaleCode()}selected="selected"{/if}>{$locale->getDescription()}</option>
{/foreach}
@@ -38,7 +38,7 @@
<div class="fieldHelp">Default template that will be used throughout your site</div>
{foreach from=$siteTemplates item=template}
<img height="150" width="150" src="{$template->getScreenshotUrl()}" alt="{$template->getName()}" /><br/>
- <input type="radio" class="radio" name="blogTemplate" value="{$template->getName()}" {if $blogTemplate==$template->getName()}checked="checked"{/if} /> {$template->getName()}<br/>
+ <input type="radio" class="radio" id="blogTemplate" name="blogTemplate" value="{$template->getName()}" {if $blogTemplate==$template->getName()}checked="checked"{/if} /> {$template->getName()}<br/>
{/foreach}
{include file="wizard/validate.template" field=blogTemplate message="Please select a template for the blog"}
</div>
Modified: plog/trunk/templates/wizard/update1.template
===================================================================
--- plog/trunk/templates/wizard/update1.template 2004-12-29 12:46:23 UTC (rev 595)
+++ plog/trunk/templates/wizard/update1.template 2004-12-29 13:14:21 UTC (rev 596)
@@ -21,27 +21,27 @@
<div class="field">
<label for="dbServer">Database server</label>
<div class="fieldHelp"></div>
- {$dbServer}<br/>
+ <span id="dbServer">{$dbServer}</span><br/>
</div>
<div class="field">
<label for="dbUser">Database User</label>
<div class="fieldHelp"></div>
- {$dbUser}<br/>
+ <span id="dbServer">{$dbUser}</span><br/>
</div>
<div class="field">
<label for="dbPassword">Database password</label>
<div class="fieldHelp"></div>
- {$dbPassword}<br/>
+ <span id="dbPassword">{$dbPassword}</span><br/>
</div>
<div class="field">
<label for="dbName">Database table</label>
<div class="fieldHelp"></div>
- {$dbName}<br/>
+ <span idb="dbName">{$dbName}</span><br/>
</div>
<div class="field">
<label for="dbPrefix">Database prefix</label>
<div class="fieldHelp"></div>
- {$dbPrefix}<br/>
+ <span id="dbPrerix">{$dbPrefix}</span><br/>
</div>
</fieldset>
<div class="buttons">
More information about the pLog-svn
mailing list