/app/views/users/edit.html.erb
https://github.com/zorigoo/alonetone · Ruby HTML · 122 lines · 95 code · 27 blank · 0 comment · 6 complexity · bafe076051d397bfba4d954c9168ab3b MD5 · raw file
- <%= error_messages_for :user %>
- <% render(:layout => 'user') do %>
- <% content_for :left do %>
- <div class="edit_profile box">
- <h2 class="box">Edit your profile</h2>
- <div class="static_content">
- <% form_for @user, :html => { :method => :put } do |f| -%>
- <label for="display_name">The name you want displayed on alonetone</label><br />
- <%= f.text_field :display_name %><br/><br/>
- <label for="user_bio">Tell us about yourself</label><br />
- <%= f.text_area :bio, :class=>'double_trouble',:cols => 40, :rows => 4%><br/><br/>
- <label for="user_bio">What city or town do you live in?</label><br />
- <%= f.text_field :city %><br/><br/>
- <label for="user_bio">What country?</label><br />
- <%= f.country_select :country, ['','United States'], :include => :blank %><br/><br/>
- <label for="user_website">Have a website?</label><br />
- http://<%= f.text_field :website %><br/><br/>
- <label for "user_myspace">Sport a myspace account?</label><br/>
- http://myspace.com/<%= f.text_field :myspace%><br/><br/>
- <label for="user_website">Did you set up your <%= link_to 'alonetone iTunes podcast?', halp_path(:itunes) %></label><br />
- http://<%= f.text_field :itunes %><br/><br/>
- <label for "user_myspace">Trendy (or dorky) enough to be on <%= link_to 'twitter', 'http://twitter.com'%>?</label><br/>
- http://twitter.com/<%= f.text_field :twitter%><br/><br/>
- <%= link_to("Change your login and alonetone address", '#edit_login', :class=>'slide_open_href')%><br/>
- <%= link_to("Change your password",'#edit_password',:class=>'slide_open_href') %>
-
- </div>
-
- <div id="edit_password" class="static_content" style="display:none">
- Enter your desired new password twice, please:<br/>
- <%= f.password_field :password %><br/>
- <%= f.password_field :password_confirmation %>
- </div>
-
- <div id="edit_login" class="static_content" style="display:none">
- Enter your new login. <br/>
- WARNING: Changing this will break any mp3 players
- you or anyone else has put on the web, as well as any links anyone has passed around
- to your music, as well as confuse google about where your music is for a few weeks.<br/>
- Basically, don't do this unless you have to, it makes life hard for folks finding your tunes.<br/>
- http://alonetone.com/<%= f.text_field :login %><br/>
- </div>
-
- <div class="static_content">
- <%= submit_tag "Update Your Profile" %>
- </div>
- <% end -%>
- </div>
- <% end %>
-
- <% content_for :right do %>
- <div class="box">
- <h2 class="box">Change your picture</h2>
- <div class="static_content">
- <%= image_tag @user.avatar(:small)%><br/>
- Upload a new photo. (400px by 400px square for best results)<br/>
- <% form_for :pic, :url => attach_pic_user_path(@user), :html => {:multipart => true, :method => :post} do |f| %>
- <%= f.file_field :uploaded_data %>
- <%= submit_tag "Upload new Pic" %>
- <% end %><br/>
- </div>
- </div>
-
- <h2 class="box">Settings</h2>
- <div class="static_content">
- <% form_for @user, :html => { :method => :put } do |f| -%>
- Display play counts blatently on all tracks? <br/>
- <%= select_tag('user[settings][display_listen_count]',
- options_for_select([['no thanks','false'], ['yes','true']],
- setting(:display_listen_count))) %>
- </div>
-
- <div class="static_content">
- Display most popular tracks on your home page?<br/>
- <%= select_tag('user[settings][most_popular]',
- options_for_select([['nope, stick with just the latest','false'], ['oh, pretty please!','true']],
- setting(:most_popular))) %>
- </div>
-
- <div class="static_content">
- Increase size of ego by 4x?<br/>
- <%= select_tag('user[settings][increase_ego]',
- options_for_select([['uhm, no thanks','false'], ['hell yes!','true']],
- setting(:increase_ego))) %>
-
- </div>
-
- <div class="static_content">
- Should we email you new comments on your tracks?<br/>
- <%= select_tag('user[settings][email_comments]',
- options_for_select([['of course, silly!','true'], ['I do not like email','false']],
- setting(:email_comments))) %>
-
- </div>
- <div class="static_content">
- Email notifications when folks you follow upload tracks?<br/>
- <%= select_tag('user[settings][email_new_tracks]',
- options_for_select([['please! it helps me keep track of the artists i love','true'], ['I told you already, I hate email','false']],
- setting(:email_new_tracks))) %>
-
- </div>
-
-
- <div class="static_content">
- <%= submit_tag "Save your alonetone settings" %>
- </div>
- <% end %>
- <% end %>
- <% end %>