mix format
This commit is contained in:
		| @@ -7,26 +7,28 @@ | ||||
|     id="context-form" | ||||
|     phx-target={@myself} | ||||
|     phx-change="validate" | ||||
|     phx-submit="save"> | ||||
|    | ||||
|     <%= label f, :title %> | ||||
|     <%= text_input f, :title %> | ||||
|     <%= error_tag f, :title %> | ||||
|    | ||||
|     <%= label f, :content %> | ||||
|     <%= textarea f, :content %> | ||||
|     <%= error_tag f, :content %> | ||||
|    | ||||
|     <%= label f, :tag %> | ||||
|     <%= multiple_select f, :tag, ["Option 1": "option1", "Option 2": "option2"] %> | ||||
|     <%= error_tag f, :tag %> | ||||
|    | ||||
|     <%= label f, :visibility %> | ||||
|     <%= select f, :visibility, Ecto.Enum.values(Memex.Contexts.Context, :visibility), prompt: "Choose a value" %> | ||||
|     <%= error_tag f, :visibility %> | ||||
|    | ||||
|     phx-submit="save" | ||||
|   > | ||||
|     <%= label(f, :title) %> | ||||
|     <%= text_input(f, :title) %> | ||||
|     <%= error_tag(f, :title) %> | ||||
|  | ||||
|     <%= label(f, :content) %> | ||||
|     <%= textarea(f, :content) %> | ||||
|     <%= error_tag(f, :content) %> | ||||
|  | ||||
|     <%= label(f, :tag) %> | ||||
|     <%= multiple_select(f, :tag, "Option 1": "option1", "Option 2": "option2") %> | ||||
|     <%= error_tag(f, :tag) %> | ||||
|  | ||||
|     <%= label(f, :visibility) %> | ||||
|     <%= select(f, :visibility, Ecto.Enum.values(Memex.Contexts.Context, :visibility), | ||||
|       prompt: "Choose a value" | ||||
|     ) %> | ||||
|     <%= error_tag(f, :visibility) %> | ||||
|  | ||||
|     <div> | ||||
|       <%= submit "Save", phx_disable_with: "Saving..." %> | ||||
|       <%= submit("Save", phx_disable_with: "Saving...") %> | ||||
|     </div> | ||||
|   </.form> | ||||
| </div> | ||||
|   | ||||
| @@ -33,13 +33,24 @@ | ||||
|         <td><%= context.visibility %></td> | ||||
|  | ||||
|         <td> | ||||
|           <span><%= live_redirect "Show", to: Routes.context_show_path(@socket, :show, context) %></span> | ||||
|           <span><%= live_patch "Edit", to: Routes.context_index_path(@socket, :edit, context) %></span> | ||||
|           <span><%= link "Delete", to: "#", phx_click: "delete", phx_value_id: context.id, data: [confirm: "Are you sure?"] %></span> | ||||
|           <span> | ||||
|             <%= live_redirect("Show", to: Routes.context_show_path(@socket, :show, context)) %> | ||||
|           </span> | ||||
|           <span> | ||||
|             <%= live_patch("Edit", to: Routes.context_index_path(@socket, :edit, context)) %> | ||||
|           </span> | ||||
|           <span> | ||||
|             <%= link("Delete", | ||||
|               to: "#", | ||||
|               phx_click: "delete", | ||||
|               phx_value_id: context.id, | ||||
|               data: [confirm: "Are you sure?"] | ||||
|             ) %> | ||||
|           </span> | ||||
|         </td> | ||||
|       </tr> | ||||
|     <% end %> | ||||
|   </tbody> | ||||
| </table> | ||||
|  | ||||
| <span><%= live_patch "New Context", to: Routes.context_index_path(@socket, :new) %></span> | ||||
| <span><%= live_patch("New Context", to: Routes.context_index_path(@socket, :new)) %></span> | ||||
|   | ||||
| @@ -14,7 +14,6 @@ | ||||
| <% end %> | ||||
|  | ||||
| <ul> | ||||
|  | ||||
|   <li> | ||||
|     <strong>Title:</strong> | ||||
|     <%= @context.title %> | ||||
| @@ -34,8 +33,9 @@ | ||||
|     <strong>Visibility:</strong> | ||||
|     <%= @context.visibility %> | ||||
|   </li> | ||||
|  | ||||
| </ul> | ||||
|  | ||||
| <span><%= live_patch "Edit", to: Routes.context_show_path(@socket, :edit, @context), class: "button" %></span> | | ||||
| <span><%= live_redirect "Back", to: Routes.context_index_path(@socket, :index) %></span> | ||||
| <span> | ||||
|   <%= live_patch("Edit", to: Routes.context_show_path(@socket, :edit, @context), class: "button") %> | ||||
| </span> | | ||||
| <span><%= live_redirect("Back", to: Routes.context_index_path(@socket, :index)) %></span> | ||||
|   | ||||
| @@ -7,26 +7,28 @@ | ||||
|     id="note-form" | ||||
|     phx-target={@myself} | ||||
|     phx-change="validate" | ||||
|     phx-submit="save"> | ||||
|    | ||||
|     <%= label f, :title %> | ||||
|     <%= text_input f, :title %> | ||||
|     <%= error_tag f, :title %> | ||||
|    | ||||
|     <%= label f, :content %> | ||||
|     <%= textarea f, :content %> | ||||
|     <%= error_tag f, :content %> | ||||
|    | ||||
|     <%= label f, :tag %> | ||||
|     <%= multiple_select f, :tag, ["Option 1": "option1", "Option 2": "option2"] %> | ||||
|     <%= error_tag f, :tag %> | ||||
|    | ||||
|     <%= label f, :visibility %> | ||||
|     <%= select f, :visibility, Ecto.Enum.values(Memex.Notes.Note, :visibility), prompt: "Choose a value" %> | ||||
|     <%= error_tag f, :visibility %> | ||||
|    | ||||
|     phx-submit="save" | ||||
|   > | ||||
|     <%= label(f, :title) %> | ||||
|     <%= text_input(f, :title) %> | ||||
|     <%= error_tag(f, :title) %> | ||||
|  | ||||
|     <%= label(f, :content) %> | ||||
|     <%= textarea(f, :content) %> | ||||
|     <%= error_tag(f, :content) %> | ||||
|  | ||||
|     <%= label(f, :tag) %> | ||||
|     <%= multiple_select(f, :tag, "Option 1": "option1", "Option 2": "option2") %> | ||||
|     <%= error_tag(f, :tag) %> | ||||
|  | ||||
|     <%= label(f, :visibility) %> | ||||
|     <%= select(f, :visibility, Ecto.Enum.values(Memex.Notes.Note, :visibility), | ||||
|       prompt: "Choose a value" | ||||
|     ) %> | ||||
|     <%= error_tag(f, :visibility) %> | ||||
|  | ||||
|     <div> | ||||
|       <%= submit "Save", phx_disable_with: "Saving..." %> | ||||
|       <%= submit("Save", phx_disable_with: "Saving...") %> | ||||
|     </div> | ||||
|   </.form> | ||||
| </div> | ||||
|   | ||||
| @@ -33,13 +33,22 @@ | ||||
|         <td><%= note.visibility %></td> | ||||
|  | ||||
|         <td> | ||||
|           <span><%= live_redirect "Show", to: Routes.note_show_path(@socket, :show, note) %></span> | ||||
|           <span><%= live_patch "Edit", to: Routes.note_index_path(@socket, :edit, note) %></span> | ||||
|           <span><%= link "Delete", to: "#", phx_click: "delete", phx_value_id: note.id, data: [confirm: "Are you sure?"] %></span> | ||||
|           <span> | ||||
|             <%= live_redirect("Show", to: Routes.note_show_path(@socket, :show, note)) %> | ||||
|           </span> | ||||
|           <span><%= live_patch("Edit", to: Routes.note_index_path(@socket, :edit, note)) %></span> | ||||
|           <span> | ||||
|             <%= link("Delete", | ||||
|               to: "#", | ||||
|               phx_click: "delete", | ||||
|               phx_value_id: note.id, | ||||
|               data: [confirm: "Are you sure?"] | ||||
|             ) %> | ||||
|           </span> | ||||
|         </td> | ||||
|       </tr> | ||||
|     <% end %> | ||||
|   </tbody> | ||||
| </table> | ||||
|  | ||||
| <span><%= live_patch "New Note", to: Routes.note_index_path(@socket, :new) %></span> | ||||
| <span><%= live_patch("New Note", to: Routes.note_index_path(@socket, :new)) %></span> | ||||
|   | ||||
| @@ -14,7 +14,6 @@ | ||||
| <% end %> | ||||
|  | ||||
| <ul> | ||||
|  | ||||
|   <li> | ||||
|     <strong>Title:</strong> | ||||
|     <%= @note.title %> | ||||
| @@ -34,8 +33,8 @@ | ||||
|     <strong>Visibility:</strong> | ||||
|     <%= @note.visibility %> | ||||
|   </li> | ||||
|  | ||||
| </ul> | ||||
|  | ||||
| <span><%= live_patch "Edit", to: Routes.note_show_path(@socket, :edit, @note), class: "button" %></span> | | ||||
| <span><%= live_redirect "Back", to: Routes.note_index_path(@socket, :index) %></span> | ||||
| <span> | ||||
|   <%= live_patch("Edit", to: Routes.note_show_path(@socket, :edit, @note), class: "button") %> | ||||
| </span> | <span><%= live_redirect("Back", to: Routes.note_index_path(@socket, :index)) %></span> | ||||
|   | ||||
| @@ -7,22 +7,24 @@ | ||||
|     id="pipeline-form" | ||||
|     phx-target={@myself} | ||||
|     phx-change="validate" | ||||
|     phx-submit="save"> | ||||
|    | ||||
|     <%= label f, :title %> | ||||
|     <%= text_input f, :title %> | ||||
|     <%= error_tag f, :title %> | ||||
|    | ||||
|     <%= label f, :description %> | ||||
|     <%= textarea f, :description %> | ||||
|     <%= error_tag f, :description %> | ||||
|    | ||||
|     <%= label f, :visibility %> | ||||
|     <%= select f, :visibility, Ecto.Enum.values(Memex.Pipelines.Pipeline, :visibility), prompt: "Choose a value" %> | ||||
|     <%= error_tag f, :visibility %> | ||||
|    | ||||
|     phx-submit="save" | ||||
|   > | ||||
|     <%= label(f, :title) %> | ||||
|     <%= text_input(f, :title) %> | ||||
|     <%= error_tag(f, :title) %> | ||||
|  | ||||
|     <%= label(f, :description) %> | ||||
|     <%= textarea(f, :description) %> | ||||
|     <%= error_tag(f, :description) %> | ||||
|  | ||||
|     <%= label(f, :visibility) %> | ||||
|     <%= select(f, :visibility, Ecto.Enum.values(Memex.Pipelines.Pipeline, :visibility), | ||||
|       prompt: "Choose a value" | ||||
|     ) %> | ||||
|     <%= error_tag(f, :visibility) %> | ||||
|  | ||||
|     <div> | ||||
|       <%= submit "Save", phx_disable_with: "Saving..." %> | ||||
|       <%= submit("Save", phx_disable_with: "Saving...") %> | ||||
|     </div> | ||||
|   </.form> | ||||
| </div> | ||||
|   | ||||
| @@ -31,13 +31,24 @@ | ||||
|         <td><%= pipeline.visibility %></td> | ||||
|  | ||||
|         <td> | ||||
|           <span><%= live_redirect "Show", to: Routes.pipeline_show_path(@socket, :show, pipeline) %></span> | ||||
|           <span><%= live_patch "Edit", to: Routes.pipeline_index_path(@socket, :edit, pipeline) %></span> | ||||
|           <span><%= link "Delete", to: "#", phx_click: "delete", phx_value_id: pipeline.id, data: [confirm: "Are you sure?"] %></span> | ||||
|           <span> | ||||
|             <%= live_redirect("Show", to: Routes.pipeline_show_path(@socket, :show, pipeline)) %> | ||||
|           </span> | ||||
|           <span> | ||||
|             <%= live_patch("Edit", to: Routes.pipeline_index_path(@socket, :edit, pipeline)) %> | ||||
|           </span> | ||||
|           <span> | ||||
|             <%= link("Delete", | ||||
|               to: "#", | ||||
|               phx_click: "delete", | ||||
|               phx_value_id: pipeline.id, | ||||
|               data: [confirm: "Are you sure?"] | ||||
|             ) %> | ||||
|           </span> | ||||
|         </td> | ||||
|       </tr> | ||||
|     <% end %> | ||||
|   </tbody> | ||||
| </table> | ||||
|  | ||||
| <span><%= live_patch "New Pipeline", to: Routes.pipeline_index_path(@socket, :new) %></span> | ||||
| <span><%= live_patch("New Pipeline", to: Routes.pipeline_index_path(@socket, :new)) %></span> | ||||
|   | ||||
| @@ -14,7 +14,6 @@ | ||||
| <% end %> | ||||
|  | ||||
| <ul> | ||||
|  | ||||
|   <li> | ||||
|     <strong>Title:</strong> | ||||
|     <%= @pipeline.title %> | ||||
| @@ -29,8 +28,9 @@ | ||||
|     <strong>Visibility:</strong> | ||||
|     <%= @pipeline.visibility %> | ||||
|   </li> | ||||
|  | ||||
| </ul> | ||||
|  | ||||
| <span><%= live_patch "Edit", to: Routes.pipeline_show_path(@socket, :edit, @pipeline), class: "button" %></span> | | ||||
| <span><%= live_redirect "Back", to: Routes.pipeline_index_path(@socket, :index) %></span> | ||||
| <span> | ||||
|   <%= live_patch("Edit", to: Routes.pipeline_show_path(@socket, :edit, @pipeline), class: "button") %> | ||||
| </span> | | ||||
| <span><%= live_redirect("Back", to: Routes.pipeline_index_path(@socket, :index)) %></span> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user