tools-direct-install.html.twig 976 B

123456789101112131415161718192021222324252627282930
  1. <h1>
  2. Direct install of packages
  3. </h1>
  4. <div class="direct-install-content">
  5. <h2>Install a zip package by uploading it</h2>
  6. <form action="{{ base_url_relative }}/tools/task:directInstall" method="post" enctype="multipart/form-data">
  7. <input type="file" name="uploaded_file" id="uploaded_file" required accept="application/zip, application/octet-stream">
  8. <input type="submit" value="Upload and install" name="submit" class="button">
  9. <input type="hidden" name="task" value="directInstall" />
  10. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  11. </form>
  12. <h2>Install a zip package from a remote location</h2>
  13. <form action="{{ base_url_relative }}/tools/task:directInstall" method="post">
  14. <input type="text" name="file_path" required />
  15. <input type="submit" value="Install" name="submit" class="button">
  16. <input type="hidden" name="task" value="directInstall" />
  17. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  18. </form>
  19. </div>