meta/lib/recycledcloud_web/templates/billing/index.html.eex
2021-01-20 17:28:48 +01:00

35 lines
811 B
Elixir

<h1>Billing</h1>
<p>You currently are registered as billing entity #<%= @partner.id %>.</p>
<h2>Billing address</h2>
<%= form_for @partner_changeset, Routes.billing_path(@conn, :update), fn f -> %>
<%= if @partner_changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<%= text_input f, :street, placeholder: "Street" %>
<%= error_tag f, :street %>
<br />
<%= text_input f, :city, placeholder: "City" %>
<%= error_tag f, :city %>
<br />
<%= text_input f, :zip, placeholder: "Zip" %>
<%= error_tag f, :zip %>
<br />
<%= text_input f, :country, placeholder: "Country", readonly: true %>
<%= error_tag f, :country %>
<div>
<%= submit "Change address" %>
</div>
<% end %>