You are here:
Foswiki
>
System Web
>
NatSkinChangePasswordViewTemplate
Edit
Attach
Tags:
create new tag
,
view all tags
%{<verbatim class="tml">}% %TMPL:INCLUDE{"view"}% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"title"}%%HTMLTITLE{"%MAKETEXT{"Change Password"}%" separator=" %IF{"defined 'HTMLTITLESEP'" then="%HTMLTITLESEP%" else="-"}% "}%%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"DIScontentheader_container"}%%TMPL:END% %TMPL:DEF{"topicactions"}%%TMPL:END% %TMPL:DEF{"revinfo"}%%TMPL:END% %TMPL:DEF{"newtopictitle"}%%URLPARAM{"newtopictitle"}%%TMPL:END% %TMPL:DEF{"newtopic"}%%URLPARAM{"newtopic"}%%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"content"}%%TMPL:P{context="passwords_modifyable" then="changepasswordform" else="nochangepassword"}%%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"sidebar"}%%TMPL:P{"sidebar::usertools"}%%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"nochangepassword"}%<!-- --> <strong>%MAKETEXT{"Sorry, the password system is currently read only, please contact [_1]" args="%WIKIWEBMASTER%"}%</strong> <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"changepasswordform"}%<!-- --> <noautolink> %TMPL:P{"formtitle"}%<!-- --> %TMPL:P{"formstartstep"}%<!-- --> %TMPL:P{"loginstep"}%<!-- --> %TMPL:P{"oldpasswordstep"}%<!-- --> %TMPL:P{"newpasswordstep"}%<!-- --> %TMPL:P{"formbuttons"}%<!-- --> %TMPL:P{"formendstep"}%<!-- --> %TMPL:P{"formvalidation"}%<!-- --> </noautolink> <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"formtitle"}%<!-- --> <h1 >%MAKETEXT{"Change Password"}%</h1> <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"formbuttons"}%<!-- --> <div class="foswikiFormDescription"> %MAKETEXT{"After submitting this form your password will be changed. If you've forgotten use [_1] to create a new one." args="[[%SYSTEMWEB%.ResetPassword]]"}% </div> <div class='foswikiFormStep foswikiFormButtons'> %TMPL:P{"submit"}%%CLEAR% </div> <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"formstartstep"}%<!-- --> %TMPL:P{"formstart"}% <div class="foswikiFormSteps"> <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"formstart"}%<!-- --> <form name="changePasswordForm" id="changePasswordForm" action="%SCRIPTURLPATH{"manage"}%/%SYSTEMWEB%/%HOMETOPIC%" method="post"> <input type="hidden" name="action" value="changePassword" /> <input type="hidden" name="t" value="%GMTIME{"$epoch"}%" /> <input type="hidden" name="TopicName" value="%TOPIC%" /> <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"formendstep"}%</div>%TMPL:P{"formend"}%%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"formend"}%</form> %MAKETEXT{"If you have any questions, please contact [_1]" args="%WIKIWEBMASTER%"}% <div class="foswikiErrorMessage" id="summary" style="display:none"></div> %TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"submit"}%<!-- --> %BUTTON{"%MAKETEXT{"Change password"}%" %IF{"not context passwords_modifyable" then="disabled=\"on\""}% type="submit" icon="key_go" class="jqSimpleModalOK"}% <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"loginstep"}%<!-- --> <div class="foswikiFormStep"> <h3 >%MAKETEXT{"Login"}%:</h3> <input type="text" name="username" id="username" value="%URLPARAM{"username" default="%USERNAME%"}%" size="40" class="foswikiInputField" /> <div class="foswikiFormDescription"> %MAKETEXT{"Your login name. Note, you can't change your login name. Contact the administrator to do this for you."}% </div> </div> <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"oldpasswordstep"}%<!-- --> <div class="foswikiFormStep"> <h3 >%MAKETEXT{"Current password"}%:</h3> <input type="password" name="oldpassword" id="oldpassword" value="%URLPARAM{oldpassword}%" size="40" class="foswikiInputField" /> <div class="foswikiFormDescription"> %MAKETEXT{"Enter the current password for the given !LoginName."}% </div> </div> <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim class="tml">}% %TMPL:DEF{"newpasswordstep"}%<!-- --> <div class="foswikiFormStep"> <h3 >%MAKETEXT{"New password"}%:</h3> <input type="password" name="password" id="password" size="40" class="foswikiInputField" /> <a href="#" class="jqGeneratePassword" data-length="15" data-specials="true" data-target="#password">%JQICON{"key"}% %MAKETEXT{"Random password"}%</a> <div class="foswikiFormDescription"> %MAKETEXT{"Enter a new password. Please don't use a trivial password that could easily be guessed."}% </div> </div> <div class="foswikiFormStep"> <h3 >%MAKETEXT{"Retype new password"}%:</h3> <input type="password" name="passwordA" id="passwordA" size="40" class="foswikiInputField" /> </div> <!-- -->%TMPL:END% %{</verbatim>}% %{<verbatim>}% %TMPL:DEF{"formvalidation"}%<!-- --> %JQREQUIRE{"validate"}%<!-- --> %ADDTOZONE{"script" requires="JQUERYPLUGIN" id="NATSKIN:PASSWORD" text="<script src='%PUBURLPATH%/%SYSTEMWEB%/NatSkin/password.js'></script>" }%<!-- --> <style>.jqGeneratePassword { text-decoration:none; padding-left:1em; }</style> %ADDTOZONE{"script" requires="JQUERYPLUGIN::VALIDATE" text="<literal> <script> jQuery(function($) { var $form = $('#changePasswordForm') .bind('invalid-form.validate', function(e, validator) { var errors = validator.numberOfInvalids(); if (errors) { $('#summary').html('%MAKETEXT{"There was an error. Please, see above."}%').show(); } else { $('#summary').hide(); } }) .validate({ rules: { username: { required: true }, oldpassword: { required: true }, password: { required: true, minlength: 3 /* on foswiki > 1.1 use '%QUERY{"{MinPasswordLength}"}% */ }, passwordA: { required: true, equalTo: '#password' } }, messages: { username: { required: '%MAKETEXT{"Enter a login name"}%' }, oldpassword: { required: '%MAKETEXT{"Provide a password"}%' }, password: { required: '%MAKETEXT{"Provide a new password"}%' }, passwordA: { required: '%MAKETEXT{"Repeat your new password"}%', equalTo: '%MAKETEXT{"Enter the same password as above"}%' } } }); }); </script></literal>" }% <!-- -->%TMPL:END% %{</verbatim>}%
Edit
|
Attach
|
P
rint version
|
H
istory
:
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit WikiText
|
More topic actions...
Topic revision: r1 - 19 Nov 2013,
UnknownUser
System
Log In
or
Register
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Applications
ClassificationApp
Extensions
Main
System
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback