diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/user/profile_photo.rhtml | 28 | ||||
-rw-r--r-- | app/views/user/show.rhtml | 1 |
2 files changed, 29 insertions, 0 deletions
diff --git a/app/views/user/profile_photo.rhtml b/app/views/user/profile_photo.rhtml new file mode 100644 index 000000000..5b0eb5b56 --- /dev/null +++ b/app/views/user/profile_photo.rhtml @@ -0,0 +1,28 @@ +<% @title = "Change profile photo" %> + +<pre><%= params.to_yaml %></pre> + +<% raise "internal error" if not @user %> + +<h2>Change your profile photo</h2> + +<div id="profile_photo"> + +<% form_tag '', :html => { :id => 'profile_photo_form' }, :multipart => true do %> + <p> + <label class="form_label" for="file_1">Photo of you:</label> + <%= file_field_tag :file, :size => 35 %> + </p> + + <p><strong>Privacy note:</strong> Your photo will be shown in public on the Internet, + everywhere you do something on WhatDoTheyKnow. + + <p> + <%= hidden_field_tag 'submitted_profile_photo', 1 %> + <%= submit_tag "Change profile photo" %> + </p> + +<% end %> + + +</div> diff --git a/app/views/user/show.rhtml b/app/views/user/show.rhtml index 902de1004..59a9cfcd4 100644 --- a/app/views/user/show.rhtml +++ b/app/views/user/show.rhtml @@ -51,6 +51,7 @@ <% if @is_you %> (just to see how it works) <br><%= link_to "Change your password", signchange_url() %> + <br><%= link_to "Set profile photo", profile_photo_url() %> <% end %> </p> |