* more layout changes

* everything in props is now in fieldsets
	* format & details coming soon..
* minor grammar changes
This commit is contained in:
age 2007-01-26 09:44:00 +00:00
parent a8e69cec7c
commit 5da460a7fb
9 changed files with 28 additions and 16 deletions

View file

@ -1,9 +1,13 @@
<?cs # $Id$ ?> <!-- <?cs # $Id$ ?>
<<?cs var:plugin_heading ?>><?cs var:html_escape(Lang.Plugins.volume_automount.Title.AutoMountVolume) ?></<?cs var:plugin_heading ?>> <<?cs var:plugin_heading ?>><?cs var:html_escape(Lang.Plugins.volume_automount.Title.AutoMountVolume) ?></<?cs var:plugin_heading ?>>
-->
<?cs call:handle_messages() ?> <?cs call:handle_messages() ?>
<fieldset>
<legend><?cs var:html_escape(Lang.Plugins.volume_automount.Title.AutoMountVolume) ?> </legend>
<?cs call:show_help(Lang.Plugins.volume_automount.Help.AutoMount) ?> <?cs call:show_help(Lang.Plugins.volume_automount.Help.AutoMount) ?>
<?cs if:!Data.CurrentDisk.encryption ?> <?cs if:!Data.CurrentDisk.encryption ?>
@ -22,4 +26,5 @@
<?cs else ?> <?cs else ?>
<?cs call:hint("Plugins.volume_automount.NoAutoMountForEncryptedVolumes") ?> <?cs call:hint("Plugins.volume_automount.NoAutoMountForEncryptedVolumes") ?>
<?cs /if ?> <?cs /if ?>
</fieldset>

View file

@ -11,7 +11,7 @@ Button {
} }
Help.Password = You can change the password of an encrypted volume easily. Just enter the current password and type the new password twice. No data will get lost. Help.Password = You can easily change the password of an encrypted volume. Just enter the current password and type your new password twice. No data will get lost.
AdviceMessage { AdviceMessage {

View file

@ -1,9 +1,12 @@
<?cs # $Id$ ?> <?cs # $Id$ ?>
<<?cs var:plugin_heading ?>><?cs var:html_escape(Lang.Plugins.volume_chpasswd.Title.ChangePassword) ?></<?cs var:plugin_heading ?>> <!-- <<?cs var:plugin_heading ?>><?cs var:html_escape(Lang.Plugins.volume_chpasswd.Title.ChangePassword) ?></<?cs var:plugin_heading ?>> -->
<?cs call:handle_messages() ?> <?cs call:handle_messages() ?>
<fieldset>
<legend><?cs var:html_escape(Lang.Plugins.volume_chpasswd.Title.ChangePassword) ?> </legend>
<?cs call:show_help(Lang.Plugins.volume_chpasswd.Help.Password) ?> <?cs call:show_help(Lang.Plugins.volume_chpasswd.Help.Password) ?>
<?cs # show password change form only for encrypted volumes ?> <?cs # show password change form only for encrypted volumes ?>
@ -34,4 +37,5 @@
<?cs else ?> <?cs else ?>
<?cs call:hint("Plugins.volume_chpasswd.FormatForEncryptionSupport") ?> <?cs call:hint("Plugins.volume_chpasswd.FormatForEncryptionSupport") ?>
<?cs /if ?> <?cs /if ?>
</fieldset>

View file

@ -4,12 +4,12 @@
<?cs call:handle_messages() ?> <?cs call:handle_messages() ?>
<?cs call:show_help(Lang.Plugins.volume_mount.Help.Open) ?>
<fieldset> <fieldset>
<legend><?cs var:html_escape(Lang.Plugins.volume_mount.Title.Mount) ?> <legend><?cs var:html_escape(Lang.Plugins.volume_mount.Title.Mount) ?> </legend>
<?cs call:show_help(Lang.Plugins.volume_mount.Help.Open) ?>
</legend>
<?cs call:print_form_header("mount", "volume_mount") ?><p> <?cs call:print_form_header("mount", "volume_mount") ?><p>
<table> <table>
<tr> <tr>
@ -34,4 +34,5 @@
</tr> </tr>
</table> </table>
</p></form> </p></form>
</fieldset>

View file

@ -1,11 +1,10 @@
<!-- <<?cs var:plugin_heading ?>><?cs var:html_escape(Lang.Plugins.volume_mount.Title.Umount) ?></<?cs var:plugin_heading ?>> --> <!-- <<?cs var:plugin_heading ?>><?cs var:html_escape(Lang.Plugins.volume_mount.Title.Umount) ?></<?cs var:plugin_heading ?>> -->
<fieldset>
<legend><?cs var:html_escape(Lang.Plugins.volume_mount.Title.Umount) ?>
</legend>
<?cs call:handle_messages() ?> <?cs call:handle_messages() ?>
<fieldset>
<legend><?cs var:html_escape(Lang.Plugins.volume_mount.Title.Umount) ?> </legend>
<?cs call:show_help(Lang.Plugins.volume_mount.Help.Close) ?> <?cs call:show_help(Lang.Plugins.volume_mount.Help.Close) ?>
<?cs call:print_form_header("umount", "volume_mount") ?> <?cs call:print_form_header("umount", "volume_mount") ?>

View file

@ -1,6 +1,6 @@
<?cs # $Id$ ?> <?cs # $Id$ ?>
<h2><?cs var:html_escape(Lang.Plugins.volume_props.Title.Properties) ?></h2> <!-- <h2><?cs var:html_escape(Lang.Plugins.volume_props.Title.Properties) ?></h2> -->
<?cs call:handle_messages() ?> <?cs call:handle_messages() ?>

View file

@ -53,7 +53,8 @@ class volume_props(cryptobox.plugins.base.CryptoBoxPlugin):
p.device = self.device p.device = self.device
plfname = os.path.join(p.plugin_dir, str(p.do_action(**args)) + ".cs") plfname = os.path.join(p.plugin_dir, str(p.do_action(**args)) + ".cs")
#load_string += "<fieldset><legend><?cs var:html_escape(Lang.Plugins.%s.Link) ?></legend><?cs include:'%s' ?></fieldset>" \ #load_string += "<fieldset><legend><?cs var:html_escape(Lang.Plugins.%s.Link) ?></legend><?cs include:'%s' ?></fieldset>" \
load_string += "<fieldset><?cs include:'%s' ?></fieldset>" \ #load_string += "<fieldset><?cs include:'%s' ?></fieldset>" \
load_string += "<?cs include:'%s' ?>" \
% plfname % plfname
## this is a little bit ugly: as it is not possible, to load cs files via ## this is a little bit ugly: as it is not possible, to load cs files via
## 'linclude' (see clearsilver doc) if they use previously defined macros ## 'linclude' (see clearsilver doc) if they use previously defined macros

View file

@ -2,7 +2,7 @@ Name = Rename volume
Link = Rename Link = Rename
Title { Title {
ChangeVolumeName = Change the name of this volume ChangeVolumeName = Rename
} }

View file

@ -1,9 +1,10 @@
<?cs # $Id$ ?> <!-- <?cs # $Id$ ?> <<?cs var:plugin_heading ?>><?cs var:html_escape(Lang.Plugins.volume_rename.Title.ChangeVolumeName) ?></<?cs var:plugin_heading ?>> -->
<<?cs var:plugin_heading ?>><?cs var:html_escape(Lang.Plugins.volume_rename.Title.ChangeVolumeName) ?></<?cs var:plugin_heading ?>>
<?cs call:handle_messages() ?> <?cs call:handle_messages() ?>
<fieldset>
<legend><?cs var:html_escape(Lang.Plugins.volume_rename.Title.ChangeVolumeName) ?> </legend>
<?cs call:show_help(Lang.Plugins.volume_rename.Help.Rename) ?> <?cs call:show_help(Lang.Plugins.volume_rename.Help.Rename) ?>
<?cs if:Data.CurrentDisk.active ?> <?cs if:Data.CurrentDisk.active ?>
@ -27,4 +28,5 @@
</table> </table>
</form> </form>
<?cs /if ?> <?cs /if ?>
</fieldset>