Add icons for mass-actions on folders

This commit is contained in:
Aleksander Machniak 2012-12-10 09:13:02 +01:00
parent a72a0ca097
commit 89de2f226e
8 changed files with 9 additions and 8 deletions

View file

@ -53,8 +53,8 @@ class kolab_delegation extends rcube_plugin
if ($this->rc->action == 'plugin.delegation' || empty($_REQUEST['_framed'])) {
$this->add_texts('localization/', array('tabtitle', 'deleteconfirm', 'savingdata', 'yes', 'no'));
$this->include_script('kolab_delegation.js');
$skin_path = $this->local_skin_path();
$this->include_stylesheet("$skin_path/style.css");
$this->skin_path = $this->local_skin_path();
$this->include_stylesheet($this->skin_path . '/style.css');
}
}
}
@ -400,8 +400,9 @@ class kolab_delegation extends rcube_plugin
*/
private function delegate_folders_block($a_folders, $attrib, $rights)
{
$read_ico = $attrib['readicon'] ? html::img(array('src' => $this->skin_path . $attrib['readicon'], 'title' => $this->gettext('read'))) : '';
$write_ico = $attrib['writeicon'] ? html::img(array('src' => $this->skin_path . $attrib['writeicon'], 'title' => $this->gettext('write'))) : '';
$path = 'plugins/kolab_delegation/' . $this->skin_path . '/';
$read_ico = $attrib['readicon'] ? html::img(array('src' => $path . $attrib['readicon'], 'title' => $this->gettext('read'))) : '';
$write_ico = $attrib['writeicon'] ? html::img(array('src' => $path . $attrib['writeicon'], 'title' => $this->gettext('write'))) : '';
$table = new html_table(array('cellspacing' => 0));
$table->add_header('read', $read_ico);

View file

@ -12,10 +12,10 @@ $labels['task'] = 'Tasks';
$labels['note'] = 'Notes';
$labels['yes'] = 'Yes';
$labels['no'] = 'No';
$labels['read'] = 'Read-only';
$labels['write'] = 'Write';
$labels['adddelegate'] = 'Add delegate';
$labels['deletedelegate'] = 'Delete delegate';
$labels['savingdata'] = 'Saving data...';
$labels['delegatedeleteconfirm'] = 'Do you really want to delete this delegate?';
$labels['delegateremoveacl'] = 'remove access rights on folders assigned to this user';

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 B

View file

@ -11,7 +11,7 @@
<div id="prefs-details" class="boxcontent">
<form action="#" method="post" id="delegateform">
<roundcube:object name="plugin.delegateform" form="delegateform" class="propform" />
<roundcube:object name="plugin.delegatefolders" form="delegateform" id="delegatefolders" readicon="" writeicon="" />
<roundcube:object name="plugin.delegatefolders" form="delegateform" id="delegatefolders" readicon="read.png" writeicon="write.png" />
</form>
<div id="formfooter">
<div class="footerleft">

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

View file

@ -11,7 +11,7 @@
<div id="preferences-details" class="boxcontent">
<form action="#" method="post" id="delegateform">
<roundcube:object name="plugin.delegateform" form="delegateform" class="propform" />
<roundcube:object name="plugin.delegatefolders" form="delegateform" id="delegatefolders" readicon="" writeicon="" />
<roundcube:object name="plugin.delegatefolders" form="delegateform" id="delegatefolders" readicon="read.png" writeicon="write.png" />
</form>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B