app/views/casein/admin_users/new.html.erb in casein-5.1.1.5 vs app/views/casein/admin_users/new.html.erb in casein-5.2.0.0

- old
+ new

@@ -2,11 +2,11 @@ <%= form_for @casein_admin_user do |form| %> <div class="row"> <div class="col-lg-6"> - <%= casein_text_field form, @casein_admin_user, :login, {:size => 30, :casein_label => "Username"} %> + <%= casein_text_field form, @casein_admin_user, :login, { size: 30, casein_label: "Username" } %> </div> <div class="col-lg-6"> <%= casein_text_field form, @casein_admin_user, :name %> </div> </div> @@ -21,34 +21,34 @@ </div> <div class="row"> <div class="col-lg-6"> - <%= casein_select form, @casein_admin_user, :access_level, casein_get_access_level_array, {:casein_label => "Role"} %> + <%= casein_select form, @casein_admin_user, :access_level, casein_get_access_level_array, { casein_label: "Role" } %> </div> <div class="col-lg-6"> </div> </div> <div class="row"> <div class="col-lg-6"> - <%= casein_password_field form, @casein_admin_user, :password, {:casein_label => "Password"} %> + <%= casein_password_field form, @casein_admin_user, :password, { casein_label: "Password" } %> </div> <div class="col-lg-6"> - <%= casein_password_field form, @casein_admin_user, :password_confirmation, {:casein_label => "Repeat password"} %> + <%= casein_password_field form, @casein_admin_user, :password_confirmation, { casein_label: "Repeat password" } %> </div> <div class="col-lg-12 password-checkbox"> <div class="checkbox"> <label> - <%= check_box_tag :generate_random_password, "1", false, {:id => 'generate-random-password-checkbox'} %> Generate random password + <%= check_box_tag :generate_random_password, "1", false, { id: 'generate-random-password-checkbox' } %> Generate random password </label> </div> </div> </div> <p class="submits"> - <%= link_to 'Cancel', casein_admin_users_path, :class => 'btn btn-mini btn-danger' %> - <%= form.submit "Add new user", :class => "btn btn-mini btn-primary" %> + <%= link_to 'Cancel', casein_admin_users_path, class: 'btn btn-mini btn-danger' %> + <%= form.submit "Add new user", class: "btn btn-mini btn-primary" %> </p> <% end %> <%= content_for :sidebar do %> \ No newline at end of file