add add top-menu-apps option in the personal settings
This commit is contained in:
@@ -322,8 +322,6 @@ $choicesSizes = [
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<p><em>Selected apps will be displayed in the <code>big menu</code> display and in the top menu.</em></p>
|
||||
|
||||
<div class="side-menu-setting" data-name="top-menu-apps" data-checkbox>
|
||||
<?php foreach ($_['apps'] as $app): ?>
|
||||
<div>
|
||||
|
||||
@@ -53,6 +53,42 @@ $choicesYesNo = [
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>
|
||||
<?php p($l->t('Top menu')); ?>
|
||||
</h2>
|
||||
<div>
|
||||
<label for="side-menu-top-menu-apps">
|
||||
<?php p($l->t('Apps that not must be moved in the side menu')); ?>
|
||||
<small><span class="warning">Experimental</span></small>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
<em>
|
||||
If there is no selection then the global configuration is applied.
|
||||
</em>
|
||||
</p>
|
||||
|
||||
<div class="side-menu-setting" data-name="top-menu-apps" data-checkbox data-personal>
|
||||
<?php foreach ($_['apps'] as $app): ?>
|
||||
<div>
|
||||
<input
|
||||
type="checkbox"
|
||||
name="top-menu-apps[]"
|
||||
value="<?php echo $app['id'] ?>"
|
||||
id="top-menu-app-<?php echo $app['id'] ?>"
|
||||
<?php if (in_array($app['id'], $_['top-menu-apps'])): ?>checked<?php endif; ?>
|
||||
/>
|
||||
|
||||
<label for="top-menu-app-<?php echo $app['id'] ?>">
|
||||
<?php echo $app['name'] ?>
|
||||
</label>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<button id="side-menu-save" class="btn btn-primary"><?php p($l->t('Save')); ?></button>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user