widget.configure.php 1.2 KB

12345678910111213141516171819202122
  1. <?php
  2. User::check_access('document','configure');
  3. $treepanel = $widget->data('widget-document-tree');
  4. $treepanel = $treepanel =="" ? 0 : $treepanel ;
  5. $detailpanel = $widget->data('widget-document-detail');
  6. $detailpanel = $detailpanel =="" ? 0 : $detailpanel ;
  7. $searchpanel = $widget->data('widget-document-search');
  8. $searchpanel = $searchpanel =="" ? 0 : $searchpanel ;
  9. ?>
  10. <div id="document-widget-form">
  11. <label><input type="checkbox" data-type="checkbox" <?php echo $treepanel==1 ? 'checked="checked"' : '' ; ?> id="widget-document-tree"> Afficher le panneau arborescence</label><br>
  12. <label><input type="checkbox" data-type="checkbox" <?php echo $detailpanel==1 ? 'checked="checked"' : '' ; ?> id="widget-document-detail"> Afficher le panneau détail</label><br>
  13. <label><input type="checkbox" data-type="checkbox" <?php echo $searchpanel==1? 'checked="checked"' : '' ; ?> id="widget-document-search"> Afficher le panneau recherche</label>
  14. <div>
  15. <label>Afficher le chemin relatif suivant<small class="text-muted">- eg : dossier1/sous dossier</small> :</label>
  16. <input type="text" class="form-control form-control-sm" value="<?php echo $widget->data('widget-document-root'); ?>" id="widget-document-root" placeholder="dossier1/sous dossier">
  17. </div>
  18. </div>