metamaps--metamaps/views/users/passwords/edit.html.erb

31 lines
785 B
Text
Raw Normal View History

2018-03-05 17:43:11 +00:00
2013-07-10 18:02:38 +00:00
2018-03-05 18:18:51 +00:00
import React, { Component } from react
class MyComponent extends Component {
render = () => {
return (
2014-08-12 15:09:53 +00:00
<div id="yield">
2018-03-05 17:33:16 +00:00
{ form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :put, :className => "forgotPassword centerGreyForm forgotPasswordReset" }) do |f| }
2018-03-04 02:25:42 +00:00
{ f.hidden_field :reset_password_token }
2013-07-10 18:02:38 +00:00
2014-10-27 22:24:30 +00:00
<h3>Change password</h3>
2013-07-10 18:02:38 +00:00
2018-03-05 17:33:16 +00:00
<div>{ f.label :password, "New password", :className => "firstFieldText" }
2018-03-04 02:25:42 +00:00
{ f.password_field :password, :autofocus => true }</div>
2013-07-10 18:02:38 +00:00
2018-03-05 17:33:16 +00:00
<div>{ f.label :password_confirmation, "Confirm new password", :className => "firstFieldText" }
2018-03-04 02:25:42 +00:00
{ f.password_field :password_confirmation }</div>
2013-07-10 18:02:38 +00:00
2018-03-04 02:25:42 +00:00
<div>{ f.submit "Change my password" }</div>
2013-07-10 18:02:38 +00:00
2018-03-04 02:25:42 +00:00
{ end }
2014-08-12 15:09:53 +00:00
</div>
2018-03-05 18:18:51 +00:00
)
}
}
export default MyComponent
2013-07-10 18:02:38 +00:00