cirandas.net

ref: master

plugins/push_notification/views/push_notification_plugin_myprofile/index.html.erb


<%= t("push_notification_plugin.controllers.myprofile.my_devices") %>

<% if @devices.blank? %>
<%= t("push_notification_plugin.controllers.myprofile.no_devices")%>
<% else %> <% @devices.each do |d| %> <% end %>
<%= t("push_notification_plugin.lib.plugin.device")%> <%= t("push_notification_plugin.lib.plugin.actions") %>
<%= d.device_name %> <%= button_without_text(:delete, t('push_notification_plugin.controllers.myprofile.delete_device'), {:controller => "push_notification_plugin_myprofile", :action => "delete_device", :params => {:device => d}}, method: :delete, id: "delete_device_#{d.id}") %>
<% end %> <%= form_for(:settings, :url => {:controller => "push_notification_plugin_myprofile", :action => "update_settings"}) do |f| %>

<%= t('push_notification_plugin.lib.plugin.enabled_notifications') %>

<%= render partial: "notification_events_form", locals: {f: f, settings: @settings} %> <%= button_bar do %> <%= submit_button(:save, _('Save')) %> <%= button(:back, _('Back to control panel'), :controller => (profile.nil? ? 'admin_panel': 'profile_editor')) %> <% end %> <% end %>