2018-03-05 17:45:36 +00:00
|
|
|
|
2013-07-09 16:32:13 +00:00
|
|
|
|
2018-03-05 17:43:11 +00:00
|
|
|
|
|
|
|
|
2014-08-12 15:09:53 +00:00
|
|
|
<div id="yield">
|
2018-03-05 17:33:16 +00:00
|
|
|
{ form_for @user, url: user_url, :html =>{ :multipart => true, :className => "edit_user centerGreyForm"} do |form| }
|
2017-03-08 18:50:39 +00:00
|
|
|
<h3>Edit Settings</h3>
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="userImage">
|
|
|
|
<div className="userImageDiv" onclick="Metamaps.Account.toggleChangePicture()">
|
2018-03-04 02:25:42 +00:00
|
|
|
{ image_tag @user.image.url(:ninetysix), :size => "84x84" }
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="editPhoto"></div>
|
2014-10-22 00:31:59 +00:00
|
|
|
</div>
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="userImageMenu">
|
|
|
|
<div className="userMenuArrow"></div>
|
2014-10-22 00:31:59 +00:00
|
|
|
<ul>
|
2018-03-05 17:33:16 +00:00
|
|
|
<li className="upload">
|
2014-10-22 00:31:59 +00:00
|
|
|
Upload Photo
|
2018-03-04 02:25:42 +00:00
|
|
|
{ hidden_field_tag "remove_image", "0" }
|
|
|
|
{ form.file_field :image }
|
|
|
|
{ form.label :image }
|
2014-10-22 00:31:59 +00:00
|
|
|
</li>
|
2018-03-05 17:33:16 +00:00
|
|
|
<li className="remove" onclick="Metamaps.Account.removePicture()">Remove</li>
|
|
|
|
<li className="cancel" onclick="Metamaps.Account.closeChangePicture()">Cancel</li>
|
2014-10-22 00:31:59 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2014-09-25 17:41:37 +00:00
|
|
|
</div>
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="accountName" onclick="Metamaps.Account.changeName()">
|
|
|
|
<div className="nameEdit">{ @user.name }</div>
|
2014-09-27 02:31:06 +00:00
|
|
|
</div>
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="changeName">
|
|
|
|
{ form.label :name, "Name:", className: 'firstFieldText' }
|
2018-03-04 02:25:42 +00:00
|
|
|
{ form.text_field :name }
|
2016-11-01 03:18:27 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2018-03-05 17:33:16 +00:00
|
|
|
{ form.label :email, "Email:", className: 'firstFieldText' }
|
2018-03-04 02:25:42 +00:00
|
|
|
{ form.email_field :email }
|
2016-11-01 03:18:27 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2018-03-05 17:33:16 +00:00
|
|
|
{ form.label :emails_allowed, className: 'firstFieldText' do }
|
|
|
|
{ form.check_box :emails_allowed, className: 'inline' }
|
2016-11-01 03:18:27 +00:00
|
|
|
Send Metamaps notifications to my email.
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|
|
|
|
{ fields_for :settings, @user.settings do |settings| }
|
2018-03-05 17:33:16 +00:00
|
|
|
{ settings.label :follow_topic_on_created, className: 'firstFieldText' do }
|
|
|
|
{ settings.check_box :follow_topic_on_created, className: 'inline' }
|
2017-09-03 13:07:29 +00:00
|
|
|
Auto-follow topics you create.
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|
2018-03-05 17:33:16 +00:00
|
|
|
{ settings.label :follow_topic_on_contributed, className: 'firstFieldText' do }
|
|
|
|
{ settings.check_box :follow_topic_on_contributed, className: 'inline' }
|
2017-09-18 20:59:52 +00:00
|
|
|
Auto-follow topics you edit.
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|
2018-03-05 17:33:16 +00:00
|
|
|
{ settings.label :follow_map_on_created, className: 'firstFieldText' do }
|
|
|
|
{ settings.check_box :follow_map_on_created, className: 'inline' }
|
2017-09-03 13:07:29 +00:00
|
|
|
Auto-follow maps you create.
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|
2018-03-05 17:33:16 +00:00
|
|
|
{ settings.label :follow_map_on_contributed, className: 'firstFieldText' do }
|
|
|
|
{ settings.check_box :follow_map_on_contributed, className: 'inline' }
|
2017-09-03 13:07:29 +00:00
|
|
|
Auto-follow maps you edit.
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|
|
|
|
{ end }
|
2014-09-29 14:45:08 +00:00
|
|
|
</div>
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="changePass" onclick="Metamaps.Account.showPass()">Change Password</div>
|
|
|
|
<div className="toHide">
|
2016-11-01 03:18:27 +00:00
|
|
|
<div>
|
2018-03-05 17:33:16 +00:00
|
|
|
{ form.label :current_password, "Current Password:", :className => "firstFieldText" }
|
2018-03-04 02:25:42 +00:00
|
|
|
{ password_field_tag :current_password, params[:current_password] }
|
2016-11-01 03:18:27 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2018-03-05 17:33:16 +00:00
|
|
|
{ form.label :password, "New Password:", :className => "firstFieldText" }
|
2018-03-04 02:25:42 +00:00
|
|
|
{ form.password_field :password, :autocomplete => :off}
|
2016-11-01 03:18:27 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
2018-03-05 17:33:16 +00:00
|
|
|
{ form.label :password_confirmation, "Confirm New Password:", :className => "firstFieldText" }
|
2018-03-04 02:25:42 +00:00
|
|
|
{ form.password_field :password_confirmation, :autocomplete => :off}
|
2016-11-01 03:18:27 +00:00
|
|
|
</div>
|
2018-03-05 17:33:16 +00:00
|
|
|
<div className="noChangePass" onclick="Metamaps.Account.hidePass()">Oops, don't change password</div>
|
2014-09-27 02:31:06 +00:00
|
|
|
</div>
|
2014-11-04 02:59:15 +00:00
|
|
|
<div id="accountPageLoading"></div>
|
2018-03-05 17:33:16 +00:00
|
|
|
{ form.submit "Update", className: "update", onclick: "Metamaps.Account.showLoading()" }
|
|
|
|
<div className="clearfloat"></div>
|
2018-03-04 02:25:42 +00:00
|
|
|
{ end }
|
2014-08-12 15:09:53 +00:00
|
|
|
</div>
|