summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2017-09-09 16:54:50 +0200
committerHarald Eilertsen <haraldei@anduin.net>2017-09-09 16:56:06 +0200
commit032d46f65ac3bbfe5c05f96e6b68d0dfe2a4aa3d (patch)
tree3c9d5c6ee730730c8e281def9582974c1ec134de /views
parenta147a9a6c761d5d867c24bbea09f4d558591e07c (diff)
downloadnorsk-urskog-registrations-032d46f65ac3bbfe5c05f96e6b68d0dfe2a4aa3d.tar.gz
norsk-urskog-registrations-032d46f65ac3bbfe5c05f96e6b68d0dfe2a4aa3d.tar.bz2
norsk-urskog-registrations-032d46f65ac3bbfe5c05f96e6b68d0dfe2a4aa3d.zip
Split contact address into street, postcode and city.
Diffstat (limited to 'views')
-rw-r--r--views/index.erb22
1 files changed, 19 insertions, 3 deletions
diff --git a/views/index.erb b/views/index.erb
index d38d5a6..fceb73b 100644
--- a/views/index.erb
+++ b/views/index.erb
@@ -53,9 +53,25 @@
<input type="text" id="band-contact-name" name="band[contact][name]" value="<%= @band.contact.name %>">
</div>
- <div class="field textarea required">
- <label for="band-contact-addr">Postadresse:</label>
- <textarea id="band-contact-addr" name="band[contact][addr]"><%= @band.contact.addr %></textarea>
+ <div class="field text">
+ <label for="band-contact-street">Adresse:</label>
+ <input type="text" id="band-contact-street"
+ name="band[contact][street]"
+ value="<%= @band.contact.street %>">
+ </div>
+
+ <div class="field text required">
+ <label for="band-contact-postcode">Postnr:</label>
+ <input type="text" id="band-contact-postcode"
+ name="band[contact][postcode]"
+ value="<%= @band.contact.postcode %>">
+ </div>
+
+ <div class="field text required">
+ <label for="band-contact-city">Sted:</label>
+ <input type="text" id="band-contact-city"
+ name="band[contact][city]"
+ value="<%= @band.contact.city %>">
</div>
<div class="field text required">