four.html.eex 441 B

123456789101112131415161718
  1. <h1>hey <%= @fourletters %></h1>
  2. <a href="/">go home</a><br><br>
  3. <form action="" method="post">
  4. <label for="message">message:</label><br>
  5. <input type=”text” id="message" name="message"><br><br>
  6. <input type="submit" value="Submit">
  7. </form>
  8. <form action="/api/clear/<%= @fourletters %>" method="post">
  9. <input type="submit" value="Clear">
  10. </form>
  11. <ul>
  12. <%= for message <- @messages do %>
  13. <li>
  14. <%= message %>
  15. </li>
  16. <% end %>
  17. </ul>