Skip to content

Commit

Permalink
Add origin host in topics views (mercadona#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanntt authored Feb 12, 2020
1 parent 25cfbb0 commit 4f0e455
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/postoffice_web/templates/topic/index.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
<tr>
<th scope="col">#</th>
<th scope="col">Name</th>
<th scope="col">Origin Host</th>
</tr>
</thead>
<tbody>
<%= for topic <- @topics do %>
<tr>
<td><%= topic.id %></td>
<td><%= topic.name %></td>
<td><%= topic.origin_host %></td>
</tr>
<% end %>
</div>
Expand Down
5 changes: 5 additions & 0 deletions lib/postoffice_web/templates/topic/new.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
<%= text_input f, :name, class: "form-control" %>
</div>

<div class="form-group">
<label>Origin Host</label>
<%= text_input f, :origin_host, class: "form-control" %>
</div>

<div class="form-group">
<%= submit "Submit", class: "btn btn-primary" %>
</div>
Expand Down

0 comments on commit 4f0e455

Please sign in to comment.