complete renaming and moving account.xsl to settings.xsl

git-svn-id: http://yolanda.mister-muffin.de/svn@213 7eef14d0-6ed0-489d-bf55-20463b2d70db
This commit is contained in:
josch 2007-12-19 23:18:26 +00:00
parent b918e1eef4
commit fee846b3c1
3 changed files with 17 additions and 18 deletions

View file

@ -21,7 +21,6 @@ if($userinfo->{'username'})
if($userinfo->{'username'}) if($userinfo->{'username'})
{ {
$page->{'settings'}->{'show'} = 'settings';
$page->{'settings'}->{'locale'} = $userinfo->{'locale'}; $page->{'settings'}->{'locale'} = $userinfo->{'locale'};
$page->{'settings'}->{'pagesize'} = $userinfo->{'pagesize'}; $page->{'settings'}->{'pagesize'} = $userinfo->{'pagesize'};
$page->{'settings'}->{'cortado'} = $userinfo->{'cortado'} $page->{'settings'}->{'cortado'} = $userinfo->{'cortado'}

View file

@ -8,7 +8,7 @@
<string id="site_motto">WebTV free as in Speech</string> <string id="site_motto">WebTV free as in Speech</string>
<!-- invisible --> <!-- invisible -->
<string id="page_account">/settings.pl</string> <string id="page_settings">/settings.pl</string>
<string id="page_login">/login.pl</string> <string id="page_login">/login.pl</string>
<string id="page_login-openid">/login.pl?action=openid</string> <string id="page_login-openid">/login.pl?action=openid</string>
<string id="page_logout">/login.pl?action=logout</string> <string id="page_logout">/login.pl?action=logout</string>

View file

@ -8,18 +8,18 @@
> >
<xsl:template name="settings"> <xsl:template name="settings">
<h2><xsl:value-of select="$locale_strings[@id='account_settings']" /></h2> <h2><xsl:value-of select="$locale_strings[@id='settings_settings']" /></h2>
<form method="POST"> <form method="POST">
<xsl:attribute name="action"> <xsl:attribute name="action">
<xsl:value-of select="$site_strings[@id='page_account']" /> <xsl:value-of select="$site_strings[@id='page_settings']" />
</xsl:attribute> </xsl:attribute>
<input type="hidden" name="show" value="settings" /> <input type="hidden" name="show" value="settings" />
<div> <div>
<h3><xsl:value-of select="$locale_strings[@id='account_locale']" /></h3> <h3><xsl:value-of select="$locale_strings[@id='settings_locale']" /></h3>
<br /> <br />
<select name="locale" size="2"> <select name="locale" size="2">
<option value="en-us"> <option value="en-us">
<xsl:if test="//account/@locale='en-us'"> <xsl:if test="//settings/@locale='en-us'">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
selected selected
</xsl:attribute> </xsl:attribute>
@ -27,7 +27,7 @@
<xsl:value-of select="$locale_strings[@id='language_en-us']" /> <xsl:value-of select="$locale_strings[@id='language_en-us']" />
</option> </option>
<option value="de-de"> <option value="de-de">
<xsl:if test="//account/@locale='de-de'"> <xsl:if test="//settings/@locale='de-de'">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
selected selected
</xsl:attribute> </xsl:attribute>
@ -37,11 +37,11 @@
</select> </select>
</div> </div>
<div> <div>
<h3><xsl:value-of select="$locale_strings[@id='account_pagesize']" /></h3> <h3><xsl:value-of select="$locale_strings[@id='settings_pagesize']" /></h3>
<br /> <br />
<select name="pagesize" size="7"> <select name="pagesize" size="7">
<option> <option>
<xsl:if test="//account/@pagesize=1"> <xsl:if test="//settings/@pagesize=1">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
selected selected
</xsl:attribute> </xsl:attribute>
@ -49,7 +49,7 @@
1 1
</option> </option>
<option> <option>
<xsl:if test="//account/@pagesize=2"> <xsl:if test="//settings/@pagesize=2">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
selected selected
</xsl:attribute> </xsl:attribute>
@ -57,7 +57,7 @@
2 2
</option> </option>
<option> <option>
<xsl:if test="//account/@pagesize=5"> <xsl:if test="//settings/@pagesize=5">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
selected selected
</xsl:attribute> </xsl:attribute>
@ -65,7 +65,7 @@
5 5
</option> </option>
<option> <option>
<xsl:if test="//account/@pagesize=10"> <xsl:if test="//settings/@pagesize=10">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
selected selected
</xsl:attribute> </xsl:attribute>
@ -73,7 +73,7 @@
10 10
</option> </option>
<option> <option>
<xsl:if test="//account/@pagesize=20"> <xsl:if test="//settings/@pagesize=20">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
selected selected
</xsl:attribute> </xsl:attribute>
@ -81,7 +81,7 @@
20 20
</option> </option>
<option> <option>
<xsl:if test="//account/@pagesize=50"> <xsl:if test="//settings/@pagesize=50">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
selected selected
</xsl:attribute> </xsl:attribute>
@ -89,7 +89,7 @@
50 50
</option> </option>
<option> <option>
<xsl:if test="//account/@pagesize=100"> <xsl:if test="//settings/@pagesize=100">
<xsl:attribute name="selected"> <xsl:attribute name="selected">
selected selected
</xsl:attribute> </xsl:attribute>
@ -99,9 +99,9 @@
</select> </select>
</div> </div>
<div> <div>
<h3><xsl:value-of select="$locale_strings[@id='account_cortado']" /></h3> <h3><xsl:value-of select="$locale_strings[@id='settings_cortado']" /></h3>
<input type="radio" name="cortado" value="1"> <input type="radio" name="cortado" value="1">
<xsl:if test="//account/@cortado=1"> <xsl:if test="//settings/@cortado=1">
<xsl:attribute name="checked"> <xsl:attribute name="checked">
checked checked
</xsl:attribute> </xsl:attribute>
@ -110,7 +110,7 @@
<xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" /> <xsl:value-of select="$locale_strings[@id='watch_cortadoapplet']" />
<br /> <br />
<input type="radio" name="cortado" value="0"> <input type="radio" name="cortado" value="0">
<xsl:if test="//account/@cortado=0"> <xsl:if test="//settings/@cortado=0">
<xsl:attribute name="checked"> <xsl:attribute name="checked">
checked checked
</xsl:attribute> </xsl:attribute>