Flash messages

This commit is contained in:
Andrew Radev 2015-04-29 11:52:58 +02:00
parent c9179922d7
commit 4ffbe5e68f
3 changed files with 12 additions and 1 deletions

View File

@ -15,7 +15,8 @@ html
= stylesheet_link_tag "management/application"
= csrf_meta_tags
body
= render partial: 'layouts/management/navigation'
= render 'layouts/management/navigation'
main
= render 'layouts/management/flash'
== yield
= javascript_include_tag "management/application"

View File

@ -0,0 +1,9 @@
.row
.col-lg-12
- if flash[:notice]
.alert.alert-success
= flash[:notice]
- if flash[:alert]
.alert.alert-error
= flash[:alert]

View File

@ -1,6 +1,7 @@
- content_for :title
=> t 'actions.edit.title', model: Conference.model_name.human
= @conference.title
.row
.col-lg-12
= render partial: 'form'