Links, mainly...
This commit is contained in:
parent
fd42a3f173
commit
21ab02d647
69 changed files with 2258 additions and 155 deletions
12
app/views/links/_form.html.erb
Normal file
12
app/views/links/_form.html.erb
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<%= bootstrap_form_with(model: link) do |form| %>
|
||||
|
||||
<div data-controller="check-link">
|
||||
<%= form.text_field :url, placeholder: "https://wikipedia.org", data: { "check-link-target": "input" } %>
|
||||
<%= link_to(link.url, link.url, target: "_blank", class: "mb-2", data: { "check-link-target": "button" }) %>
|
||||
</div>
|
||||
|
||||
<%= form.collection_select :link_category_id, LinkCategory.all.order(:name), :id, :name, include_blank: !link.persisted? %>
|
||||
<%= form.text_field :text %>
|
||||
<%= form.rich_text_area :description %>
|
||||
<%= form.submit %>
|
||||
<% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue