My space on the web https://inhji.de
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

30 lines
832 B

<%= f = form_for @changeset, "#",
id: "note-form",
phx_target: @myself,
phx_change: "validate",
phx_submit: "save",
phx_hook: "NoteForm" %>
<fieldset>
<%= text_input f, :title, placeholder: "What is this note about?", class: "title" %>
</fieldset>
<fieldset phx-update="ignore">
<%= hidden_input f, :content, class: "editor-content" %>
<div id="editor"></div>
</fieldset>
<fieldset phx-update="ignore">
<%= text_input f, :topic_string, id: "tags", placeholder: "Tags, comma-separated" %>
<%= hidden_input f, :all_tags, value: @tags, id: "all_tags" %>
<%= error_tag f, :topic_string %>
</fieldset>
<fieldset>
<%= select f, :list_id, @lists, prompt: "Choose a list to publish to" %>
</fieldset>
<div>
<%= submit "Save", phx_disable_with: "Saving..." %>
</div>
</form>