fixed: change-password form was visible for plaintext volumes

This commit is contained in:
lars 2006-10-28 17:01:56 +00:00
parent b39f5ad7f8
commit 1f265c78c0
1 changed files with 29 additions and 26 deletions

View File

@ -29,32 +29,35 @@
<tr><td></td><td></td><td></td></tr> <tr><td></td><td></td><td></td></tr>
<?cs # password change is only possible if the volume is not mounted ?> <?cs # show password change form only for encrypted volumes ?>
<tr><td colspan="3"> <?cs if:Data.CurrentDisk.encryption ?>
<h3><?cs var:html_escape(Lang.Plugins.volume_props.Title.ChangePassword) ?></h3> <?cs # password change is only possible if the volume is not mounted ?>
</td></tr> <tr><td colspan="3">
<?cs call:print_form_header("set_password", "plugins/volume_props") ?> <h3><?cs var:html_escape(Lang.Plugins.volume_props.Title.ChangePassword) ?></h3>
<tr> </td></tr>
<td align="right"><label for="old_pw"><?cs var:html_escape(Lang.Text.EnterCurrentPassword) ?>: </label></td> <?cs call:print_form_header("set_password", "plugins/volume_props") ?>
<td><input type="password" name="old_pw" tabindex="20" size="15" id="old_pw" /></td> <tr>
<td></td> <td align="right"><label for="old_pw"><?cs var:html_escape(Lang.Text.EnterCurrentPassword) ?>: </label></td>
</tr> <td><input type="password" name="old_pw" tabindex="20" size="15" id="old_pw" /></td>
<tr> <td></td>
<td align="right"><label for="new_pw"><?cs var:html_escape(Lang.Text.EnterNewPassword) ?>: </label></td> </tr>
<td><input type="password" name="new_pw" tabindex="21" size="15" id="new_pw" /></td> <tr>
<td></td> <td align="right"><label for="new_pw"><?cs var:html_escape(Lang.Text.EnterNewPassword) ?>: </label></td>
</tr> <td><input type="password" name="new_pw" tabindex="21" size="15" id="new_pw" /></td>
<tr> <td></td>
<td align="right"><label for="new_pw2"><?cs var:html_escape(Lang.Text.EnterSamePassword) ?>: </label></td> </tr>
<td><input type="password" name="new_pw2" tabindex="22" size="15" id="new_pw2" /></td> <tr>
<td align="right"> <td align="right"><label for="new_pw2"><?cs var:html_escape(Lang.Text.EnterSamePassword) ?>: </label></td>
<input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" /> <td><input type="password" name="new_pw2" tabindex="22" size="15" id="new_pw2" /></td>
<input type="hidden" name="store" value="change_pw" /> <td align="right">
<button type="submit" tabindex="23"><?cs var:html_escape(Lang.Plugins.volume_props.Button.ChangePassword) ?></button></p> <input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" />
</td> <input type="hidden" name="store" value="change_pw" />
</tr> <button type="submit" tabindex="23"><?cs var:html_escape(Lang.Plugins.volume_props.Button.ChangePassword) ?></button></p>
</form> </td>
<tr><td></td><td></td><td></td></tr> </tr>
</form>
<tr><td></td><td></td><td></td></tr>
<?cs /if ?>
</table> </table>