1 <% content_for :head do %>
2 <%= javascript_include_tag "user" %>
5 <% content_for :heading_class, "pb-0" %>
7 <% content_for :heading do %>
8 <h1><%= t ".title" %></h1>
9 <%= render :partial => "navigation" %>
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">
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">
21 <button type="button" class="btn btn-outline-primary col-sm-2 align-self-start"><%= t(".social_links.remove") %></button>
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>
33 <button id="add-social-link" type="button" class="btn btn-outline-primary"><%= t ".social_links.add" %></button>
36 <%= f.primary t(".save") %>
37 <%= link_to t(".cancel"), current_user, :class => "btn btn-link" %>