Conflicts: app/views/layouts/base.rhtmlpull/41/head
commit
095ca5aec5
@ -0,0 +1,8 @@ |
||||
<% form_tag({:controller => 'my', :action => "first_login", :back_url => @back_url }, {:method => :put}) do %> |
||||
<h3><%=l(:field_impaired_settings)%></h3> |
||||
<div class="box tabular"> |
||||
<%= render :partial => "users/impaired_settings" %> |
||||
</div> |
||||
|
||||
<%= submit_tag l(:button_save) %> |
||||
<% end %> |
@ -0,0 +1,3 @@ |
||||
<% fields_for :pref, @user.pref, :builder => TabularFormBuilder, :lang => current_language do |pref_fields| %> |
||||
<p><%= pref_fields.check_box :impaired %></p> |
||||
<% end %> |
@ -0,0 +1,11 @@ |
||||
class AddUserFirstLoggedInAndImpairedFields < ActiveRecord::Migration |
||||
def self.up |
||||
add_column :users, :first_login, :boolean, :null => false, :default => true |
||||
add_column :user_preferences, :impaired, :boolean, :default => false |
||||
end |
||||
|
||||
def self.down |
||||
remove_column :users, :first_login |
||||
remove_column :user_preferences, :impaired |
||||
end |
||||
end |
Loading…
Reference in new issue