<% settings.each do |event, checked|%> <% end %>
<%= t("push_notification_plugin.controllers.myprofile.event") %> <%= t("push_notification_plugin.controllers.myprofile.enabled") %>
<%= t("push_notification_plugin.events.#{event}") %> <%= hidden_field_tag "settings[#{event}]", "0" %> <%= check_box_tag "settings[#{event}]", "1", (checked == "1" || checked == true) %>