]> git.openstreetmap.org Git - rails.git/blob - app/views/profiles/links/show.html.erb
Remove translations using mediawiki magic words
[rails.git] / app / views / profiles / links / show.html.erb
1 <% content_for :head do %>
2   <%= javascript_include_tag "user" %>
3 <% end %>
4
5 <% content_for :heading_class, "pb-0" %>
6
7 <% content_for :heading do %>
8   <h1><%= t ".title" %></h1>
9   <%= render :partial => "navigation" %>
10 <% end %>
11
12 <%= bootstrap_form_for current_user, :url => { :action => :update } do |f| %>
13   <fieldset class="mb-3">
14     <%= f.label t(".social_links.title"), :class => "form-label" %>
15     <div id="social_links">
16       <template>
17         <div class="social-link-added-fields row mb-3">
18           <div class="col-sm-8">
19             <input class="form-control" type="text" autocomplete="off">
20           </div>
21           <button type="button" class="btn btn-outline-primary col-sm-2 align-self-start"><%= t(".social_links.remove") %></button>
22         </div>
23       </template>
24       <%= f.fields_for :social_links do |social_link_form| %>
25         <div class="social-link-fields row mb-3">
26           <%= social_link_form.text_field :url, :skip_label => true, :wrapper_class => "col-sm-8" %>
27           <%= social_link_form.check_box :_destroy, :wrapper_class => "d-none social_link_destroy" %>
28           <button type="button" class="btn btn-outline-primary col-sm-2 align-self-start"><%= t(".social_links.remove") %></button>
29         </div>
30       <% end %>
31     </div>
32
33     <button id="add-social-link" type="button" class="btn btn-outline-primary"><%= t ".social_links.add" %></button>
34   </fieldset>
35
36   <%= f.primary t(".save") %>
37   <%= link_to t(".cancel"), current_user, :class => "btn btn-link" %>
38 <% end %>