notification scaffold
This commit is contained in:
parent
5f14a6bcf8
commit
d55ade1686
10 changed files with 119 additions and 7 deletions
|
@ -11,6 +11,8 @@
|
|||
%i.icon-home
|
||||
= nav_link(path: 'profiles#account') do
|
||||
= link_to "Account", account_profile_path
|
||||
= nav_link(controller: :notifications) do
|
||||
= link_to "Notifications", profile_notifications_path
|
||||
= nav_link(controller: :keys) do
|
||||
= link_to keys_path do
|
||||
SSH Keys
|
||||
|
|
26
app/views/notifications/show.html.haml
Normal file
26
app/views/notifications/show.html.haml
Normal file
|
@ -0,0 +1,26 @@
|
|||
%h3.page_title Setup your notification level
|
||||
%hr
|
||||
|
||||
|
||||
= form_tag profile_notifications_path do
|
||||
|
||||
%ul.unstyled
|
||||
%li
|
||||
.row
|
||||
.span3
|
||||
%h5 Global
|
||||
.span9
|
||||
= label_tag do
|
||||
= radio_button_tag :notification_level, Notification::N_DISABLED, @notification.disabled?
|
||||
%span Disabled
|
||||
|
||||
= label_tag do
|
||||
= radio_button_tag :notification_level, Notification::N_PARTICIPATING, @notification.participating?
|
||||
%span Participating
|
||||
|
||||
= label_tag do
|
||||
= radio_button_tag :notification_level, Notification::N_WATCH, @notification.watch?
|
||||
%span Watch
|
||||
|
||||
.form-actions
|
||||
= submit_tag 'Save', class: 'btn btn-save'
|
Loading…
Add table
Add a link
Reference in a new issue