mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 00:09:06 +01:00
LSrelation: fix new button opening in LSsmoothbox
This commit is contained in:
parent
351b18827d
commit
8e2c521d18
2 changed files with 5 additions and 3 deletions
|
@ -259,14 +259,16 @@ class LSrelation {
|
|||
$return['actions'][] = array(
|
||||
'label' => _('Modify'),
|
||||
'url' => 'object/'.$relationConf['LSobject'].'/select?multiple=1'.($relation -> getRelatedEditableAttribute()?'&editableAttr='.$relation -> getRelatedEditableAttribute():''),
|
||||
'action' => 'modify'
|
||||
'action' => 'modify',
|
||||
'class' => 'LSrelation_modify',
|
||||
);
|
||||
}
|
||||
if ($relation -> canCreate()) {
|
||||
$return['actions'][] = array(
|
||||
'label' => _('New'),
|
||||
'url' => 'object/'.$relationConf['LSobject'].'/create?LSrelation='.$relationName.'&relatedLSobject='.$object->getType().'&relatedLSobjectDN='.urlencode($object -> getValue('dn')),
|
||||
'action' => 'create'
|
||||
'action' => 'create',
|
||||
'class' => null,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
{if $item.actions!=''}
|
||||
<ul class='LSview-actions'>
|
||||
{foreach from=$item.actions item=action}
|
||||
<li class='LSview-actions'><a href='{$action.url}' class='LSview-actions LSrelation_modify' id='{$item.id|escape:"quotes"}'><img src='{img name=$action.action}' alt='{$action.label|escape:"htmlall"}' title='{$action.label|escape:"htmlall"}' /> {$action.label|escape:"htmlall"}</a></li>
|
||||
<li class='LSview-actions'><a href='{$action.url}' class='LSview-actions{if $action.class} {$action.class}{/if}' id='{$item.id|escape:"quotes"}'><img src='{img name=$action.action}' alt='{$action.label|escape:"htmlall"}' title='{$action.label|escape:"htmlall"}' /> {$action.label|escape:"htmlall"}</a></li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in a new issue