Commit 17b902bd authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:sparkles: feat(management) Hide scope checkbox when basemode is off

issue #5135
Showing with 9 additions and 0 deletions
+9 -0
...@@ -28,12 +28,15 @@ ...@@ -28,12 +28,15 @@
{/foreach} {/foreach}
<hr/> <hr/>
{if $BASEMODE}
<label for="SCOPE"> <label for="SCOPE">
<input type="checkbox" id="SCOPE" name="SCOPE" value="1" <input type="checkbox" id="SCOPE" name="SCOPE" value="1"
{if ($SCOPE == 'sub')}checked="checked"{/if}/> {if ($SCOPE == 'sub')}checked="checked"{/if}/>
&nbsp;{t}Search in subtrees{/t} &nbsp;{t}Search in subtrees{/t}
</label> </label>
<hr/> <hr/>
{/if}
<label for="SEARCH" title="{$SEARCHDESC|escape}"><img src="geticon.php?context=actions&amp;icon=system-search&amp;size=16" alt="Search"/> <label for="SEARCH" title="{$SEARCHDESC|escape}"><img src="geticon.php?context=actions&amp;icon=system-search&amp;size=16" alt="Search"/>
<input class="filter_textfield" id="SEARCH" name="SEARCH" type="search" value="{$SEARCH}"/> <input class="filter_textfield" id="SEARCH" name="SEARCH" type="search" value="{$SEARCH}"/>
......
...@@ -122,6 +122,7 @@ class managementFilter ...@@ -122,6 +122,7 @@ class managementFilter
$smarty = get_smarty(); $smarty = get_smarty();
$smarty->assign('SCOPE', $this->scope); $smarty->assign('SCOPE', $this->scope);
$smarty->assign('BASEMODE', $this->parent->listing->getBaseMode());
$smarty->assign('FILTER_PID', $this->pid); $smarty->assign('FILTER_PID', $this->pid);
$smarty->assign('SEARCH', $this->search); $smarty->assign('SEARCH', $this->search);
$smarty->assign('TYPES', $this->types); $smarty->assign('TYPES', $this->types);
......
...@@ -85,6 +85,11 @@ class managementListing ...@@ -85,6 +85,11 @@ class managementListing
$this->reloadColumns(); $this->reloadColumns();
} }
function getBaseMode()
{
return $this->baseMode;
}
function reloadColumns() function reloadColumns()
{ {
$columnInfos = $this->parent->getColumnConfiguration(); $columnInfos = $this->parent->getColumnConfiguration();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment