template.document.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <div class="document-container<?php echo isset($embedded)?' embedded':'' ?>"
  2. <?php
  3. if(isset($_['data']) && is_array($_['data'])):
  4. foreach($_['data'] as $key=>$value): ?>
  5. data-<?php echo $key; ?>="<?php echo $value; ?>"
  6. <?php endforeach;
  7. endif; ?>
  8. >
  9. <div class="tree-panel d-none d-md-block">
  10. <ul>
  11. <li class="pointer root-folder"><i class="fas fa-home"></i> <span></span></li>
  12. </ul>
  13. <ul class="tree-folders">
  14. <li class="hidden folder" title="{{childNumber}} fichiers" data-label="{{label}}" data-path="{{path}}"><i class="far fa-folder"></i> <span>{{label}}</span><ul class="folders-container"></ul></li>
  15. </ul>
  16. </div>
  17. <div class="file-panel">
  18. <div class="drag-overlay">
  19. <div class="overlay-text"><i class="far fa-file"></i>&nbsp;&nbsp;Déposez vos fichiers ici.</div>
  20. <div class="overlay-icon"><i class="fas fa-arrow-alt-circle-down"></i></div>
  21. </div>
  22. <div class="breadcrumb-module">
  23. <ul>
  24. <li class="hidden" data-path="{{path}}" title="Cliquer pour naviguer dans le dossier">{{{label}}}</li>
  25. </ul>
  26. </div>
  27. <div class="search-module form-inline">
  28. <div class="doc-search-container">
  29. <input class="form-control form-control-sm label-search" type="text" placeholder="">
  30. <span class="search-clear fas fa-times"></span>
  31. <span class="text-muted btn-search" title="Cliquer pour rechercher dans le dossier courant"><i class="fas fa-search"></i></span>
  32. </div>
  33. <div class="dropdown document-add-element">
  34. <button class="btn btn-small btn-primary" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fas fa-plus"></i> Ajouter</button>
  35. <div class="dropdown-menu document-create-dropdown" aria-labelledby="dropdownMenuButton" style="width: 250px;">
  36. <a class="dropdown-item {{lineClass}} hidden" href="#">
  37. <div class="{{buttonClass}}"><i class='{{icon}}'></i> {{label}}</div>
  38. {{{afterHtml}}}
  39. </a>
  40. </div>
  41. </div>
  42. <ul class="view-module">
  43. <li class="hidden" data-view="{{uid}}"><i title="{{label}}" class="{{icon}} {{class}}"></i></li>
  44. </ul>
  45. </div>
  46. <div class="file-module">
  47. <div class="file-preloader"><i class="fas fa-circle-notch fa-spin"></i></div>
  48. <div class="file-editor hidden">
  49. <div class="file-editor-header"><i class="far fa-file-alt ml-3"></i> <input type="text" class="file-editor-name" value="Nouveau fichier.txt">
  50. <div class="btn btn-primary btn-editor-save"><i class="far fa-check-circle"></i> Enregistrer</div>
  51. <div class="btn btn-light btn-editor-cancel"><i class="fas fa-ban"></i> Annuler</div>
  52. <div class="clear"></div>
  53. </div>
  54. <textarea class="file-editor-input" placeholder="Aucun contenu pour le moment..."></textarea>
  55. </div>
  56. <!-- Vue liste -->
  57. <table class="file-elements-list file-view hidden" data-view="list">
  58. <thead>
  59. <tr>
  60. <th data-sortable="label" class="name-head">Nom</th>
  61. <th data-sortable="creator" class="creator-head">Créateur</th>
  62. <th data-sortable="size" class="size-head">Taille</th>
  63. <th data-sortable="updated" class="updated-head">Modifié le</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. <tr class="hidden file-element" data-path="{{path}}" data-type="{{type}}" data-id="{{id}}" >
  68. <td class="name-cell"><img class="element-thumbnail" data-src="{{icon}}"/>
  69. <span>
  70. <input type="text" class="rename-input hidden" value="">
  71. <span>{{label}}</span>
  72. </span><i title="Renommer" class="fas fa-pencil-alt element-rename"></i>
  73. </td>
  74. <td class="creator-cell">{{creator}}</td>
  75. <td class="size-cell">{{sizeReadable}}</td>
  76. <td class="updated-cell" title="{{updatedRelative}}">{{updatedReadable}}</td>
  77. </tr>
  78. </tbody>
  79. </table>
  80. <!-- Vue grille -->
  81. <ul class="file-elements-grid file-view hidden" data-view="grid">
  82. <li class="file-element hidden element-type-{{extension}}" data-path="{{path}}" data-type="{{type}}" data-id="{{id}}">
  83. <div class="grid-container">
  84. <div class="element-thumbnail" style="background-image:url({{thumbnail}});"></div>
  85. <div class="element-infos">
  86. <div class="name-cell">
  87. <span>
  88. <input type="text" class="rename-input hidden" value="">
  89. <span>{{label}}</span>
  90. </span><i title="Renommer" class="fas fa-pencil-alt element-rename"></i>
  91. </div>
  92. <span class="size-cell">{{#childNumber}}{{childNumber}} éléments{{/childNumber}} {{sizeReadable}}</span> <span class="creator-cell">par {{creator}}</span><br>
  93. <span class="updated-cell" title="{{updatedRelative}}"><i class="far fa-calendar"></i> {{updatedReadable}}</span>
  94. </div>
  95. </div>
  96. </li>
  97. </ul>
  98. </div>
  99. </div>
  100. <div class="detail-panel">
  101. <div class="detail-thumbnail">
  102. <div class="thumbnail-preloader"><i class="fas fa-circle-notch fa-spin"></i></div>
  103. </div>
  104. <h1 class="text-center">Aucun fichier sélectionné</h1>
  105. <small class="informations"><i class="fas fa-star"></i> <span>-</span></small>
  106. <ul class="detail-buttons" class="hidden">
  107. <li class="hidden {{lineClass}}">{{{html}}}{{^html}}<div class="btn {{buttonClass}}"><i class="{{icon}}"></i> {{label}}</div>{{/html}}</li>
  108. </ul>
  109. </div>
  110. <!-- upload Preloader -->
  111. <div class="preloader-upload-container">
  112. <i class="fas fa-times preloader-upload-close"></i>
  113. <div class="preloader-upload">
  114. <div class="preloader-upload-shadow"></div><div class="preloader-upload-box"></div>
  115. <div class="upload-state"><h5>Envois en cours...</h5><span>x/n fichiers</span></div>
  116. <ul class="upload-files">
  117. <li class="hidden" data-sort="{{sort}}">
  118. <div>
  119. <h5>{{label}}</h5> <small>{{size}}</small> <span class="upload-file-state"></span>
  120. </div>
  121. <div class="progress">
  122. <div class="progress-bar" role="progressbar" style="width: 20%;" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100">20%</div>
  123. </div>
  124. </li>
  125. </ul>
  126. </div>
  127. </div>
  128. </div>
  129. <!-- Modal Propriété -->
  130. <div class="modal fade document-properties-modal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  131. <div class="modal-dialog" role="document">
  132. <div class="modal-content">
  133. <div class="modal-header">
  134. <h5 class="modal-title" id="exampleModalLabel">Propriétés</h5>
  135. <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  136. <span aria-hidden="true">&times;</span>
  137. </button>
  138. </div>
  139. <div class="modal-body">
  140. </div>
  141. <div class="hidden modal-body-template">
  142. Libellé : <input class="form-control-plaintext form-control-sm text-info" readonly="readonly" type="text" value="{{label}}">
  143. Chemin relatif : <input class="form-control-plaintext form-control-sm text-info" readonly="readonly" type="text" value="{{path}}">
  144. Date de création : <input class="form-control-plaintext form-control-sm text-info" readonly="readonly" type="text" value="{{createdLabel}}">
  145. Date de modification : <input class="form-control-plaintext form-control-sm text-info" readonly="readonly" type="text" value="{{updatedLabel}}">
  146. Propriétaire : <input class="form-control-plaintext form-control-sm text-info" type="text" readonly="readonly" value="{{creator}}">
  147. Dernier changement par : <input class="form-control-plaintext form-control-sm text-info" readonly="readonly" type="text" value="{{updater}}">
  148. Identifiant du document : <input class="form-control-plaintext form-control-sm text-info" readonly="readonly" type="text" value="#{{id}}">
  149. Adresse racine : <input class="form-control-plaintext form-control-sm text-info" type="text" onclick="$(this).select()" readonly="readonly" value="{{rootUrl}}">
  150. </div>
  151. <div class="modal-footer">
  152. <button type="button" class="btn btn-secondary" data-dismiss="modal">Fermer</button>
  153. </div>
  154. </div>
  155. </div>
  156. </div>