* HTML Variant admin dashboard * Tweaks to actions & spec fixes * Update app/controllers/admin/html_variants_controller.rb Co-authored-by: Michael Kohl <citizen428@dev.to> * Removes old html_variants dashboards * Removes old lingering spec Co-authored-by: Michael Kohl <citizen428@dev.to>
9 lines
528 B
Text
9 lines
528 B
Text
<h2 class="fs-2xl s:fs-3xl mb-6">Edit HTML Variant:</h2>
|
|
<div class="crayons-card p-6">
|
|
<%= form_for([:admin, @html_variant], method: :patch) do %>
|
|
<%= render "form" %>
|
|
<%= submit_tag "Update HTML Variant", class: "crayons-btn" %>
|
|
<%= link_to "Preview", admin_html_variant_path(@html_variant), class: "crayons-btn crayons-btn--outlined float-right mx-2" %>
|
|
<%= link_to "Fork", new_admin_html_variant_path(fork_id: @html_variant.id), class: "crayons-btn crayons-btn--outlined float-right" %>
|
|
<% end %>
|
|
</div>
|