-
Notifications
You must be signed in to change notification settings - Fork 0
/
brouillon.txt
60 lines (41 loc) · 1.77 KB
/
brouillon.txt
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
<h4><%= t("wedding.guest_list.edit")%></h4>
<!-- <p>Edition as the wedder</p> -->
<%= simple_form_for([@wedding, @registry]) do |f| %>
<%= f.input :email, required: true %>
<%= f.input :group_name %>
<%= f.simple_fields_for :guests do |guest_f| %>
<div class="nested-fields">
<div class="row">
<div class="col-xs-8">
<div class="form-inline">
<%= guest_f.input :name, label: false %>
</div>
</div>
<div class="col-xs-4">
<div class="form-inline">
<%= guest_f.input :presence %>
</div>
</div>
</div>
</div>
<% end %>
<div class="links">
<%= link_to_add_association f, :guests do %>
<%= icon('plus-circle') %> <%= t("wedding.guest.add_guest") %>
<% end %>
</div>
<div class="form-actions">
<%= f.button :submit, "Done !" %>
</div>
<% end %>
<%= link_to "Back", wedding_registry_path(@wedding, @registry) %>
</div>
Liste guest for registry
<% current_user.registries.last.guests.where(child: false).where(presence: true).each do |g| %>
<li><%= g.name %> </li>
<% end %>
bloc map
<div id="map" style="height: 250px;"></div>
<%= avatar_for current_user, width: 45, height: 45, crop: :thumb, gravity: :face, class: "avatar dropdown-toggle", id: "navbar-wagon-menu", "data-toggle" => "dropdown" %>
last push was rejected by heroku at 1 am
in order to update every registration's score, type on console : heroku run rails update_registries:score_registry