+
Edit Project Mapping
+
We try to autodetect your Git repository, but you can manually specify it if needed.
+
+ <% if flash[:alert] %>
+
+ <%= flash[:alert] %>
+
+ <% end %>
+
+ <%= form_with model: @project_repo_mapping,
+ url: my_project_repo_mapping_path(CGI.escape(@project_repo_mapping.project_name)),
+ method: :patch,
+ local: true,
+ class: "w-full space-y-4" do |f| %>
+
+ <%= f.label :project_name, "Project Name", class: "block text-sm font-semibold text-white" %>
+ <%= f.text_field :project_name,
+ value: @project_repo_mapping.project_name,
+ disabled: true,
+ class: "w-full px-4 py-3 bg-darkless text-secondary border border-darkless rounded-lg cursor-not-allowed" %>
+
Project name cannot be changed.
+
+
+
+ <%= f.label :repo_url, "Repository URL", class: "block text-sm font-semibold text-white" %>
+ <%= f.url_field :repo_url,
+ value: @project_repo_mapping.repo_url,
+ placeholder: "https://github.com/username/repo",
+ class: "w-full px-4 py-3 bg-darkless text-white border border-darkless rounded-lg focus:border-primary focus:outline-none transition-colors" %>
+
+
+
+ <%= link_to "Cancel", my_projects_path, class: "px-4 py-2 border border-gray-600 text-gray-300 hover:bg-darkless rounded-lg transition-colors" %>
+ <%= f.submit "Update Project", class: "px-4 py-2 bg-primary text-white hover:bg-red rounded-lg font-medium cursor-pointer transition-colors" %>
+
+ <% end %>
+