pluginsadmin.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. {include="includes"}
  5. </head>
  6. <body>
  7. {include="page.header"}
  8. <noscript>
  9. <div class="pure-g new-version-message pure-alert pure-alert-warning">
  10. <div class="pure-u-2-24"></div>
  11. <div class="pure-u-20-24">
  12. {'You need to enable Javascript to change plugin loading order.'|t}
  13. </div>
  14. </div>
  15. <div class="clear"></div>
  16. </noscript>
  17. <form method="POST" action="?do=save_pluginadmin" name="pluginform" id="pluginform" class="pluginform-container">
  18. <div class="pure-g">
  19. <div class="pure-u-lg-1-8 pure-u-1-24"></div>
  20. <div class="pure-u-lg-3-4 pure-u-22-24 page-form page-form-complete">
  21. <h2 class="window-title">{'Plugin administration'|t}</h2>
  22. <section id="enabled_plugins">
  23. <h3 class="window-subtitle">{'Enabled Plugins'|t}</h3>
  24. <div>
  25. {if="count($enabledPlugins)==0"}
  26. <p class="center">{'No plugin enabled.'|t}</p>
  27. {else}
  28. <table id="plugin_table">
  29. <thead>
  30. <tr>
  31. <th class="center">{'Disable'|t}</th>
  32. <th>{'Name'|t}</th>
  33. <th><div class="pure-u-0 pure-u-lg-visible">{'Description'|t}</div></th>
  34. <th class="center">{'Order'|t}</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. {loop="$enabledPlugins"}
  39. <tr data-line="{$key}" data-order="{$counter}" class="main-row">
  40. <td class="center"><input type="checkbox" name="{$key}" id="{$key}" checked="checked"></td>
  41. <td class="center">
  42. <label for="{$key}"><strong>{function="str_replace('_', ' ', $key)"}</strong></label>
  43. </td>
  44. <td><div class="pure-u-0 pure-u-lg-visible"><label for="{$key}">{$value.description}</label></div></td>
  45. <td class="center">
  46. {if="count($enabledPlugins)>1"}
  47. <a href="#" class="order order-up">▲</a>
  48. <a href="#" class="order order-down">▼</a>
  49. {/if}
  50. <input type="hidden" name="order_{$key}" value="{$counter}">
  51. </td>
  52. </tr>
  53. <tr data-line="{$key}" data-order="{$counter}" class="pure-u-lg-0 mobile-row">
  54. <td colspan="4"><label for="{$key}">{$value.description}</label></td>
  55. </tr>
  56. {/loop}
  57. </tbody>
  58. <tfoot>
  59. <tr>
  60. <th class="center">{'Disable'|t}</th>
  61. <th>{'Name'|t}</th>
  62. <th><div class="pure-u-0 pure-u-lg-visible">{'Description'|t}</div></th>
  63. <th class="center">{'Order'|t}</th>
  64. </tr>
  65. </tfoot>
  66. </table>
  67. {/if}
  68. </div>
  69. </section>
  70. <section id="disabled_plugins">
  71. <h3 class="window-subtitle">{'Disabled Plugins'|t}</h3>
  72. <div>
  73. {if="count($disabledPlugins)==0"}
  74. <p class="center">{'No plugin disabled.'|t}</p>
  75. {else}
  76. <table>
  77. <thead>
  78. <tr>
  79. <th class="center">{'Enable'|t}</th>
  80. <th>{'Name'|t}</th>
  81. <th><div class="pure-u-0 pure-u-lg-visible">{'Description'|t}</div></th>
  82. </tr>
  83. </thead>
  84. <tbody>
  85. {loop="$disabledPlugins"}
  86. <tr class="main-row">
  87. <td class="center"><input type="checkbox" name="{$key}" id="{$key}"></td>
  88. <td class="center">
  89. <label for="{$key}"><strong>{function="str_replace('_', ' ', $key)"}</strong></label>
  90. </td>
  91. <td><div class="pure-u-0 pure-u-lg-visible">
  92. <label for="{$key}">{$value.description}</label>
  93. </div></td>
  94. </tr>
  95. <tr class="pure-u-lg-0 mobile-row">
  96. <td colspan="3"><label for="{$key}">{$value.description}</label></td>
  97. </tr>
  98. {/loop}
  99. </tbody>
  100. <tfoot>
  101. <tr>
  102. <th class="center">{'Enable'|t}</th>
  103. <th>{'Name'|t}</th>
  104. <th><div class="pure-u-0 pure-u-lg-visible">{'Description'|t}</div></th>
  105. </tr>
  106. </tfoot>
  107. </table>
  108. {/if}
  109. </div>
  110. </section>
  111. <div class="center more">
  112. {"More plugins available"|t}
  113. <a href="doc/html/Community-&-Related-software/#third-party-plugins">{"in the documentation"|t}</a>.
  114. </div>
  115. <div class="center">
  116. <input type="submit" value="{'Save'|t}" name="save">
  117. </div>
  118. </div>
  119. </div>
  120. <input type="hidden" name="token" value="{$token}">
  121. </form>
  122. <form action="?do=save_pluginadmin" method="POST">
  123. <div class="pure-g">
  124. <div class="pure-u-lg-1-8 pure-u-1-24"></div>
  125. <div class="pure-u-lg-3-4 pure-u-22-24 page-form page-form-light">
  126. <h2 class="window-title">{'Plugin configuration'|t}</h2>
  127. <section id="plugin_parameters">
  128. <div>
  129. {if="count($enabledPlugins)==0"}
  130. <p class="center">{'No plugin enabled.'|t}</p>
  131. {else}
  132. {$nbParameters=0}
  133. {loop="$enabledPlugins"}
  134. {$nbParameters=$nbParameters+count($value.parameters)}
  135. {if="count($value.parameters) > 0"}
  136. <div class="plugin_parameters">
  137. <h3 class="window-subtitle">{function="str_replace('_', ' ', $key)"}</h3>
  138. {loop="$value.parameters"}
  139. <div class="plugin_parameter">
  140. <p class="float_label">
  141. <label for="{$key}">
  142. <code>{$key}</code>
  143. {if="isset($value.desc)"}
  144. &middot; {$value.desc}
  145. {/if}
  146. </label>
  147. </p>
  148. <div class="float_input">
  149. <input name="{$key}" value="{$value.value}" id="{$key}" type="text" />
  150. </div>
  151. </div>
  152. {/loop}
  153. </div>
  154. {/if}
  155. {/loop}
  156. {if="$nbParameters===0"}
  157. <p class="center">{'No parameter available.'|t}</p>
  158. {else}
  159. <div class="center">
  160. <input type="submit" name="parameters_form" value="{'Save'|t}"/>
  161. </div>
  162. {/if}
  163. {/if}
  164. </div>
  165. </section>
  166. </div>
  167. </div>
  168. </form>
  169. {include="page.footer"}
  170. <script src="js/pluginsadmin.min.js?v={$version_hash}"></script>
  171. </body>
  172. </html>