63 lines
2.5 KiB
C#
63 lines
2.5 KiB
C#
<?cs # $Id$ ?>
|
|
|
|
<?cs include:Settings.TemplateDir + "/show_volume_header.cs" ?>
|
|
|
|
<h2><?cs var:html_escape(Lang.Plugins.volume_props.Title.Properties) ?></h2>
|
|
|
|
<?cs if:Data.CurrentDisk.active ?>
|
|
|
|
<div class="unavailable_action">
|
|
<?cs var:html_escape(Lang.Plugins.volume_props.Text.UmountBeforeProps) ?>
|
|
</div>
|
|
|
|
<?cs else ?>
|
|
<table>
|
|
|
|
<?cs # name change is only possible if the volume is not mounted ?>
|
|
<tr><td colspan="3">
|
|
<h3><?cs var:html_escape(Lang.Plugins.volume_props.Title.ChangeVolumeName) ?></h3>
|
|
</td></tr>
|
|
<?cs call:print_form_header("plugins/volume_props") ?><tr>
|
|
<td align="right"><label for="vol_name"><?cs var:html_escape(Lang.Text.ContainerName) ?>: </label></td>
|
|
<td><input type="text" name="vol_name" tabindex="10" size="15" id="vol_name" value="<?cs var:html_escape(Data.CurrentDisk.name) ?>" /></td>
|
|
<td align="right">
|
|
<input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" />
|
|
<input type="hidden" name="store" value="set_name" />
|
|
<button type="submit" tabindex="11"><?cs var:html_escape(Lang.Plugins.volume_props.Button.ContainerNameSet) ?></button>
|
|
</td>
|
|
</tr></form>
|
|
<tr><td></td><td></td><td></td></tr>
|
|
|
|
|
|
<?cs # password change is only possible if the volume is not mounted ?>
|
|
<tr><td colspan="3">
|
|
<h3><?cs var:html_escape(Lang.Plugins.volume_props.Title.ChangePassword) ?></h3>
|
|
</td></tr>
|
|
<?cs call:print_form_header("plugins/volume_props") ?>
|
|
<tr>
|
|
<td align="right"><label for="old_pw"><?cs var:html_escape(Lang.Text.EnterCurrentPassword) ?>: </label></td>
|
|
<td><input type="password" name="old_pw" tabindex="20" size="15" id="old_pw" /></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right"><label for="new_pw"><?cs var:html_escape(Lang.Text.EnterNewPassword) ?>: </label></td>
|
|
<td><input type="password" name="new_pw" tabindex="21" size="15" id="new_pw" /></td>
|
|
<td></td>
|
|
</tr>
|
|
<tr>
|
|
<td align="right"><label for="new_pw2"><?cs var:html_escape(Lang.Text.EnterSamePassword) ?>: </label></td>
|
|
<td><input type="password" name="new_pw2" tabindex="22" size="15" id="new_pw2" /></td>
|
|
<td align="right">
|
|
<input type="hidden" name="device" value="<?cs var:html_escape(Data.CurrentDisk.device) ?>" />
|
|
<input type="hidden" name="store" value="change_pw" />
|
|
<button type="submit" tabindex="23"><?cs var:html_escape(Lang.Plugins.volume_props.Button.ChangePassword) ?></button></p>
|
|
</td>
|
|
</tr>
|
|
</form>
|
|
<tr><td></td><td></td><td></td></tr>
|
|
|
|
</table>
|
|
|
|
<?cs /if ?>
|
|
|
|
<?cs include:Settings.TemplateDir + "/show_volume_footer.cs" ?>
|