add confirm prompt for template upload via URL

This commit is contained in:
Alex Turchyn
2026-05-29 09:29:21 +03:00
committed by GitHub
parent 58fd180ae0
commit f65b6e2d76
6 changed files with 121 additions and 17 deletions
@@ -5,7 +5,9 @@ class TemplatesUploadsController < ApplicationController
layout 'plain'
def show; end
def show
redirect_to root_path if params[:url].blank?
end
def create
url_params = create_file_params_from_url if params[:url].present?