unclesp1d3r/CipherSwarm

View on GitHub
app/views/attacks/edit.html.erb

Summary

Maintainability
Test Coverage
<%= render Railsboot::HeaderComponent.new do |header| %>
  <% header.with_heading do %>
    <%= title "Edit #{@attack.name}" %>
  <% end %>
  <% header.with_breadcrumb.with_items([
       { text: "Dashboard", href: root_path },
       { text: "Activity", href: campaigns_path },
       { text: @attack.campaign.name, href: @attack.campaign },
       { text: @attack.name, href: [@attack.campaign, @attack] },
       { text: "Edit", active: true }
     ]) %>
<% end %>

<%= render "form", attack: @attack %>