summaryrefslogtreecommitdiffstats
path: root/views/index.erb
blob: 7d069a1b0b7da1e729d5c333300c38d8c8100ea7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<h1>Norsk Urskog Underground Metal Sampler</h1>

<%=asciidoc :_form_heading, attributes: { "contact_email" => settings.contact_email } %>

<h2>Påmelding:</h2>

<p>Felter merket med <span class="required"></span> er obligatoriske og må fylles ut.</p>
<form id="registration-form" action="<%= url('submit') %>" method="POST" >
    <div id="form-general-info" class="fieldgroup">
        <h3>Generell info:</h3>

        <div class="field text required">
            <label for="band_name">Bandnavn:</label>
            <input type="text" id="band_name" name="band[name]" value="<%= @band.name %>">
        </div>

        <div class="field text optional">
            <label for="band_city">Hjemsted:</label>
            <input type="text" id="band_city" name="band[city]" value="<%= @band.city %>">
        </div>

        <div class="field text optional">
            <label for="band_website">Webside:</label>
            <input type="text" id="band_website" name="band[website]" value="<%= @band.website %>">
        </div>

        <div class="field text optional">
            <label for="band_label">Plateselskap:</label>
            <input type="text" id="band_label" name="band[label]" value="<%= @band.label %>">
        </div>

        <div class="field textarea required">
            <label for="band_shortbio">Kort bio:</label>
            <textarea id="band_shortbio" name="band[shortbio]"><%= @band.short_bio %></textarea>
            <div class="help">
              Kort bio på én til tre linjer til bruk som promo på våre websider om evt andre media.
            </div>
        </div>

        <div class="field textarea">
          <label for="band_members">Medlemmer:</label>
          <textarea id="band_members" name="band[members]"><%= @band.members %></textarea>
          <div class="help">
            Oppgi gjerne alder og hvilke instrument hvert medlem slipper (frivillig.)
          </div>
        </div>
    </div>

    <div id="form-contact-info" class="fieldgroup">
        <h3>Kontaktperson</h3>
        <p>Vi trenger én kontaktperson, som er den vi vil kommunisere med ang alt som har med deres
        deltagelse på Norsk Urskog Metal Sampler å gjøre.</p>
        <div class="field text required">
            <label for="band-contact-name">Navn:</label>
            <input type="text" id="band-contact-name" name="band[contact][name]" value="<%= @band.contact.name %>">
        </div>

        <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 postcode">
            <label for="band-contact-postcode">Postnr:</label>
            <input type="text" id="band-contact-postcode"
              pattern="\d{4}" maxlength="4"
              name="band[contact][postcode]"
              value="<%= @band.contact.postcode %>">
        </div>

        <div class="field text required city">
            <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">
            <label for="band-contact-phone">Tlf:</label>
            <input type="text" id="band-contact-phone" name="band[contact][phone]" value="<%= @band.contact.phone %>">
        </div>

        <div class="field text required">
            <label for="band-contact-email">E-post:</label>
            <input type="text" id="band-contact-email" name="band[contact][email]" value="<%= @band.contact.email %>">
        </div>
    </div>

    <div id="form-songs" class="fieldgroup">
        <h3>Låter</h3>

        <p>Dere kan registrere intill tre låter. Dersom dere vil registrere færre enn
          tre låter, så er det bare å ikke fylle ut de resterene skjemaene. Klikk på
          knappene nedenfor for å legge til informasjon om låtene dere vil ha med.</p>

        <% @band.songs.each_index do |i| %>
          <%= erb :song, layout: false, locals: { song_number: i + 1, song: @band.songs[i] } %>
        <% end %>
    </div>

    <div class="fieldgroup">
      <h3>Innsending</h3>

      <p>Ved å sende inn skjemaet, vil dere bli registrert for deltagelse på Norsk Urskog
        Metal Sampler 2019.  Vi vil sende utfylt skjema og kontrakt som må underskrives og
        sendes tilbake før vi kan ta med låten(e) på selve CDen.</p>
    </div>

    <div id="form-action" class="action">
        <button type="submit">Send skjema</button>
    </div>
</form>