tools-direct-install.html.twig 1.2 KB

123456789101112131415161718192021222324252627282930
  1. <h1>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_TITLE"|tu }}</h1>
  2. <div class="direct-install-content">
  3. <h2>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_UPLOAD_TITLE"|tu }}</h2>
  4. <p>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_UPLOAD_DESC"|tu|raw }}</p>
  5. <form action="{{ base_url_relative }}/tools/task:directInstall" method="post" enctype="multipart/form-data">
  6. <input type="file" name="uploaded_file" id="uploaded_file" required accept="application/zip, application/octet-stream">
  7. <input type="submit" value="{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_UPLOAD_BUTTON"|tu }}" name="submit" class="button">
  8. <input type="hidden" name="task" value="directInstall" />
  9. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  10. </form>
  11. <h2>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_URL_TITLE"|tu }}</h2>
  12. <p>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_URL_DESC"|tu|raw }}</p>
  13. <form action="{{ base_url_relative }}/tools/task:directInstall" method="post">
  14. <input type="text" name="file_path" class="large" required />
  15. <input type="submit" value="{{ "PLUGIN_ADMIN.INSTALL"|tu }}" name="submit" class="button">
  16. <input type="hidden" name="task" value="directInstall" />
  17. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  18. </form>
  19. </div>