Add icons for mass-actions on folders
This commit is contained in:
parent
a72a0ca097
commit
89de2f226e
8 changed files with 9 additions and 8 deletions
|
@ -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);
|
||||
|
|
|
@ -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';
|
||||
|
|
BIN
plugins/kolab_delegation/skins/classic/read.png
Normal file
BIN
plugins/kolab_delegation/skins/classic/read.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 908 B |
|
@ -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">
|
||||
|
|
BIN
plugins/kolab_delegation/skins/classic/write.png
Normal file
BIN
plugins/kolab_delegation/skins/classic/write.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 699 B |
BIN
plugins/kolab_delegation/skins/larry/read.png
Normal file
BIN
plugins/kolab_delegation/skins/larry/read.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 691 B |
|
@ -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>
|
||||
|
||||
|
|
BIN
plugins/kolab_delegation/skins/larry/write.png
Normal file
BIN
plugins/kolab_delegation/skins/larry/write.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 517 B |
Loading…
Add table
Reference in a new issue