mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
fix repo mapping css
This commit is contained in:
@@ -1,20 +1,31 @@
|
||||
<div class="container">
|
||||
<h1>Edit Repository Mapping</h1>
|
||||
|
||||
<%= form_with(model: @project_repo_mapping, url: my_project_repo_mapping_path(@project_repo_mapping.project_name), method: :patch, local: true) do |f| %>
|
||||
<div class="field">
|
||||
<%= f.label :project_name %>
|
||||
<%= f.text_field :project_name, value: @project_repo_mapping.project_name, disabled: true %>
|
||||
<div class="min-h-screen bg-darker text-white">
|
||||
<div class="max-w-4xl mx-auto px-6 py-8">
|
||||
<div class="mb-8">
|
||||
<h1 class="text-3xl font-bold text-primary mb-2">Edit Repository Mapping</h1>
|
||||
<p class="text-secondary">Connect your project to its GitHub repository</p>
|
||||
</div>
|
||||
|
||||
<div class="field">
|
||||
<%= f.label :repo_url %>
|
||||
<%= f.url_field :repo_url, placeholder: "https://github.com/username/repo" %>
|
||||
</div>
|
||||
<div class="bg-dark rounded-lg p-6">
|
||||
<%= form_with(model: @project_repo_mapping, url: my_project_repo_mapping_path(@project_repo_mapping.project_name), method: :patch, local: true, class: "space-y-6") do |f| %>
|
||||
<div class="space-y-2">
|
||||
<%= 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" %>
|
||||
<p class="text-xs text-secondary">Project name cannot be changed</p>
|
||||
</div>
|
||||
|
||||
<div class="actions">
|
||||
<%= f.submit "Update Mapping" %>
|
||||
<%= link_to "Cancel", root_path, class: "button" %>
|
||||
<div class="space-y-2">
|
||||
<%= f.label :repo_url, "Repository URL", class: "block text-sm font-semibold text-white" %>
|
||||
<%= f.url_field :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" %>
|
||||
<p class="text-xs text-secondary">Enter the full GitHub repository URL</p>
|
||||
</div>
|
||||
|
||||
<div class="flex gap-4 pt-4">
|
||||
<%= f.submit "Update Mapping", class: "bg-primary hover:bg-red text-white px-6 py-3 rounded-lg font-semibold transition-colors cursor-pointer" %>
|
||||
<%= link_to "Cancel", root_path, class: "bg-secondary hover:bg-darkless text-white px-6 py-3 rounded-lg font-semibold transition-colors cursor-pointer" %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user