mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
Add 'All users' option to allowed users in definition list popup
This commit is contained in:
parent
85950517a1
commit
343deeab7c
@ -127,9 +127,9 @@ class importexport_definitions_ui
|
|||||||
// Action has an additional parameter
|
// Action has an additional parameter
|
||||||
if(in_array($content['nm']['action'], array('owner', 'allowed')))
|
if(in_array($content['nm']['action'], array('owner', 'allowed')))
|
||||||
{
|
{
|
||||||
if($content['nm']['action'] == 'allowed' && $content['allowed_private'])
|
if($content['nm']['action'] == 'allowed')
|
||||||
{
|
{
|
||||||
$content['allowed'] = null;
|
$content['allowed'] = $content['allowed_private'] ? null : ($content['all_users'] ? 'all' : implode(',',$content['allowed']));
|
||||||
}
|
}
|
||||||
if(is_array($content[$content['nm']['action']]))
|
if(is_array($content[$content['nm']['action']]))
|
||||||
{
|
{
|
||||||
|
File diff suppressed because one or more lines are too long
@ -87,6 +87,7 @@
|
|||||||
<description value="Change allowed users" class="promptheader"/>
|
<description value="Change allowed users" class="promptheader"/>
|
||||||
<description value="Select groups"/>
|
<description value="Select groups"/>
|
||||||
<checkbox label="%s Just me" id="allowed_private"/>
|
<checkbox label="%s Just me" id="allowed_private"/>
|
||||||
|
<checkbox label="%s All users" id="all_users"/>
|
||||||
<listbox type="select-account" id="allowed" rows="5" options="groups" class="action_popup-content"/>
|
<listbox type="select-account" id="allowed" rows="5" options="groups" class="action_popup-content"/>
|
||||||
<hbox>
|
<hbox>
|
||||||
<button label="Save" onclick="nm_submit_popup(this); return false;"/>
|
<button label="Save" onclick="nm_submit_popup(this); return false;"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user