20 lines
438 B
Plaintext
20 lines
438 B
Plaintext
<%= form_for @changeset, @action, fn f -> %>
|
|
<%= if @changeset.action do %>
|
|
<div class="alert alert-danger">
|
|
<p>Oops, something went wrong! Please check the errors below.</p>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= label f, :is_url %>
|
|
<%= checkbox f, :is_url %>
|
|
<%= error_tag f, :is_url %>
|
|
|
|
<%= label f, :content %>
|
|
<%= textarea f, :content %>
|
|
<%= error_tag f, :content %>
|
|
|
|
<div>
|
|
<%= submit "Save" %>
|
|
</div>
|
|
<% end %>
|