public
Description: The open source social networking platform in Ruby on Rails from the author of RailsSpace
Homepage: http://insoshi.com
Clone URL: git://github.com/insoshi/insoshi.git
Search Repo:
Michael Hartl (author)
Fri May 09 10:42:46 -0700 2008
commit  3044ee9172c5fa0402d97bda8a09d39223378402
tree    7b6df12845477ec807fd4799dea81f4b9f976ef3
parent  ca931746525b469a2384bb1414adc6a0186ab9bc
insoshi / app / views / admin / preferences / edit.html.erb
100644 71 lines (55 sloc) 1.924 kb
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
<%- column_div :type => :primary do -%>
  <h2>Editing preferences</h2>
 
  <%= error_messages_for :preferences %>
 
  <% form_for :preferences,
              :url => admin_preference_path(@preferences),
              :html => { :method => :put } do |f| %>
              
    <div class="form_row">
      <label for="app_name">Application name</label>
      <%= f.text_field :app_name %>
    </div>
    
    <div class="form_row">
      <label for="domain">Email domain</label>
      <%= f.text_field :domain %>
    </div>
 
    <div class="form_row">
      <label for="server_name">Server name</label>
      <%= f.text_field :server_name %>
    </div>
 
    <div class="form_row">
      <label for="smtp_server">Smtp server</label>
      <%= f.text_field :smtp_server %>
    </div>
 
    <p>Send email when messages, connection requests, etc., are sent</p>
    <div class="form_row">
      <label for="email_notifications"
             class="checkbox">Email notifications</label>
      <%= f.check_box :email_notifications %>
    </div>
 
    <br />
 
    <p>Verify email for new registrations using an activation code</p>
    <div class="form_row">
      <label for="email_verifications"
             class="checkbox">Email verifications</label>
      <%= f.check_box :email_verifications %>
    </div>
 
    <br />
 
    <div class="form_row">
      <label for="about">About</label>
      <br />
      <p><%= formatting_note %></p>
 
      <%= f.text_area :about, :rows => 10 %>
    </div>
    
    <br />
 
    <div class="form_row">
      <label for="analytics">Analytics (will be inserted
         just before the <%= h("</body>") %> tag)</label>
      <%= f.text_area :analytics, :rows => 10 %>
    </div>
 
    <div class="form_row">
      <%= f.submit "Update", :class => "button" %>
    </div>
      or <%= link_to "Cancel", admin_preferences_path %>
  <% end %>
 
  <%= link_to 'Back', admin_preferences_path %>
<%- end -%>