summaryrefslogtreecommitdiff
path: root/app/views/admin/users/_edit_modal.html.erb
blob: 1cc8fc306af64a2a8bbdc57ec022d96a3228299c (plain)
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
<div id="edit-user-modal-<%= user.id %>" class="modal">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
    <%= form_for user, url: admin_user_path(user), method: :put, html: { class: 'form-horizontal' } do |f| %>
      <div class="modal-header">
        <h5 class="modal-title">Edit <%= user.name %></h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <div class="form-group">
          <%= f.label :name %>
          <%= f.text_field :name, class: 'form-control' %>
          <span class="help-inline"></span>
        </div>
        <div class="form-group">
          <%= f.label :email %>
          <%= f.email_field :email, class: 'form-control' %>
          <span class="help-inline"></span>
        </div>
        <div class="form-group">
          <%= f.label :full_address %>
          <%= f.text_field :full_address, class: 'form-control' %>
          <span class="help-inline"></span>
        </div>
        <div class="form-group">
          <%= f.label :city %>
          <%= f.text_field :city, class: 'form-control' %>
          <span class="help-inline"></span>
        </div>
        <div class="form-group">
          <%= f.label :website %>
          <%= f.url_field :website, class: 'form-control' %>
          <span class="help-inline"></span>
        </div>
        <div class="form-group">
          <%= f.label :twitter %>
          <%= f.text_field :twitter, class: 'form-control' %>
          <span class="help-inline"></span>
        </div>
        <div class="form-group">
          <%= f.label :facebook %>
          <%= f.url_field :facebook, class: 'form-control' %>
          <span class="help-inline"></span>
        </div>
      </div>
      <div class="modal-footer">
        <%= f.submit "Save Changes", class: 'btn btn-primary', disable_with: "Saving..." %>
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
      </div>
    <% end %>
    </div>
  </div>
</div>