tools-direct-install.html.twig 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <h1>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_TITLE"|t }}</h1>
  2. <div class="direct-install-content">
  3. <h2>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_UPLOAD_TITLE"|t }}</h2>
  4. <p>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_UPLOAD_DESC"|t|raw }}</p>
  5. <form action="{{ admin_route('/tools/direct-install') }}" 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"|t }}" 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"|t }}</h2>
  12. <p>{{ "PLUGIN_ADMIN.TOOLS_DIRECT_INSTALL_URL_DESC"|t|raw }}</p>
  13. <form action="{{ admin_route('/tools/direct-install') }}" method="post">
  14. <input type="text" name="file_path" class="large" required />
  15. <input type="submit" value="{{ "PLUGIN_ADMIN.INSTALL"|t }}" name="submit" class="button">
  16. <input type="hidden" name="task" value="directInstall" />
  17. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  18. </form>
  19. </div>