Section improvements and add exception notifier
This commit is contained in:
@@ -7,7 +7,7 @@ gem 'rack-cors', require: 'rack/cors'
|
|||||||
# gem 'rails', git: 'git://github.com/rails/rails.git'
|
# gem 'rails', git: 'git://github.com/rails/rails.git'
|
||||||
|
|
||||||
# gem 'sqlite3'
|
# gem 'sqlite3'
|
||||||
|
gem 'exception_notification'
|
||||||
gem 'slim-rails'
|
gem 'slim-rails'
|
||||||
|
|
||||||
# Gems used only for assets and not required
|
# Gems used only for assets and not required
|
||||||
@@ -26,7 +26,7 @@ group :assets do
|
|||||||
#gem 'twitter-bootstrap-rails'
|
#gem 'twitter-bootstrap-rails'
|
||||||
# Only for mobile assets precompile, not used in this project
|
# Only for mobile assets precompile, not used in this project
|
||||||
#gem 'bootstrap-sass', '~>2.3'
|
#gem 'bootstrap-sass', '~>2.3'
|
||||||
gem 'bourbon' #, '4.0.2'
|
gem 'bourbon' #, '4.0.2' #animation keyframes
|
||||||
#gem 'compass-rails'
|
#gem 'compass-rails'
|
||||||
gem 'js-routes'
|
gem 'js-routes'
|
||||||
gem "font-awesome-rails"
|
gem "font-awesome-rails"
|
||||||
|
|||||||
@@ -205,6 +205,9 @@ GEM
|
|||||||
railties
|
railties
|
||||||
erubis (2.7.0)
|
erubis (2.7.0)
|
||||||
eventmachine (1.0.8)
|
eventmachine (1.0.8)
|
||||||
|
exception_notification (4.1.1)
|
||||||
|
actionmailer (>= 3.0.4)
|
||||||
|
activesupport (>= 3.0.4)
|
||||||
execjs (2.6.0)
|
execjs (2.6.0)
|
||||||
factory_girl (4.5.0)
|
factory_girl (4.5.0)
|
||||||
activesupport (>= 3.0.0)
|
activesupport (>= 3.0.0)
|
||||||
@@ -500,6 +503,7 @@ DEPENDENCIES
|
|||||||
ember-emblem-template!
|
ember-emblem-template!
|
||||||
ember-rails!
|
ember-rails!
|
||||||
ember-validations-rails
|
ember-validations-rails
|
||||||
|
exception_notification
|
||||||
factory_girl_rails
|
factory_girl_rails
|
||||||
faye
|
faye
|
||||||
font-awesome-rails
|
font-awesome-rails
|
||||||
|
|||||||
@@ -12,21 +12,17 @@ App.SectionController = Ember.Controller.extend
|
|||||||
@get('model.section_areas').filterBy('hasDirtyAttributes').invoke 'save'
|
@get('model.section_areas').filterBy('hasDirtyAttributes').invoke 'save'
|
||||||
rollbackEditable: ->
|
rollbackEditable: ->
|
||||||
@get('model').rollbackAttributes()
|
@get('model').rollbackAttributes()
|
||||||
@get('model.tables').forEach (table) ->
|
tables = @get('model.tables')
|
||||||
if table.get('isNew')
|
tables.filterBy('isNew').invoke 'unloadRecord'
|
||||||
table.deleteRecord()
|
tables.rejectBy('isNew').invoke 'rollbackAttributes'
|
||||||
else
|
|
||||||
table.rollbackAttributes()
|
section_elements = @get('model.section_elements')
|
||||||
@get('model.section_elements').forEach (section_element) ->
|
section_elements.filterBy('isNew').invoke 'unloadRecord'
|
||||||
if section_element.get('isNew')
|
section_elements.rejectBy('isNew').invoke 'rollbackAttributes'
|
||||||
section_element.deleteRecord()
|
|
||||||
else
|
section_areas = @get('model.section_areas')
|
||||||
section_element.rollbackAttributes()
|
section_areas.filterBy('isNew').invoke 'unloadRecord'
|
||||||
@get('model.section_areas').forEach (section_area) ->
|
section_areas.rejectBy('isNew').invoke 'rollbackAttributes'
|
||||||
if section_area.get('isNew')
|
|
||||||
section_area.deleteRecord()
|
|
||||||
else
|
|
||||||
section_area.rollbackAttributes()
|
|
||||||
@set('model.editmode', false)
|
@set('model.editmode', false)
|
||||||
addSection: -> @modal 'add_section', model: @get('model')
|
addSection: -> @modal 'add_section', model: @get('model')
|
||||||
addTables: -> @modal 'section_add_tables', model: @get('model')
|
addTables: -> @modal 'section_add_tables', model: @get('model')
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class Notifier < ActionMailer::Base
|
class Notifier < ActionMailer::Base
|
||||||
default from: "Qwaiter <service@mozo.bar>"
|
default from: "Mozo <service@mozo.bar>"
|
||||||
layout 'mail'
|
layout 'mail'
|
||||||
|
|
||||||
def contact_form(contact_form_id)
|
def contact_form(contact_form_id)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
class SupplierMailer < ActionMailer::Base
|
class SupplierMailer < ActionMailer::Base
|
||||||
default from: "Qwaiter <service@mozo.bar>"
|
default from: "Mozo <service@mozo.bar>"
|
||||||
layout 'mail'
|
layout 'mail'
|
||||||
|
|
||||||
def creation(supplier)
|
def creation(supplier)
|
||||||
|
|||||||
@@ -76,6 +76,12 @@ Qwaiter::Application.configure do
|
|||||||
#password: "BjTKct22",
|
#password: "BjTKct22",
|
||||||
#enable_starttls_auto: true
|
#enable_starttls_auto: true
|
||||||
#}
|
#}
|
||||||
|
config.middleware.use ExceptionNotification::Rack,
|
||||||
|
email: {
|
||||||
|
email_prefix: "[MOZO][EXCEPTION] ",
|
||||||
|
sender_address: %|"notifier" <notifier@mozo.bar>|,
|
||||||
|
exception_recipients: %w[bterkuile@gmail.com]
|
||||||
|
}
|
||||||
|
|
||||||
# Enable threaded mode
|
# Enable threaded mode
|
||||||
# config.threadsafe!
|
# config.threadsafe!
|
||||||
|
|||||||
@@ -9,11 +9,8 @@ Release todos:
|
|||||||
signed in
|
signed in
|
||||||
- Add got it button to bottom of supplier User info modal
|
- Add got it button to bottom of supplier User info modal
|
||||||
- User move table alert flash_message for suppliers
|
- User move table alert flash_message for suppliers
|
||||||
- When an employee schedule is added the color is not immediate taken
|
|
||||||
from the selected employee
|
|
||||||
- User app authorizations
|
- User app authorizations
|
||||||
- identity
|
- identity
|
||||||
- Add exception notifier
|
|
||||||
|
|
||||||
Supplier
|
Supplier
|
||||||
--------
|
--------
|
||||||
@@ -44,6 +41,8 @@ Supplier
|
|||||||
|
|
||||||
User
|
User
|
||||||
----
|
----
|
||||||
|
- BUG when move to another table popup is shown and cancel chosen
|
||||||
|
nothing happens. Should be redirect to active list
|
||||||
- Check test ordering just inactivated product
|
- Check test ordering just inactivated product
|
||||||
- Implement https://github.com/EddyVerbruggen/Custom-URL-scheme with mozo:// scheme
|
- Implement https://github.com/EddyVerbruggen/Custom-URL-scheme with mozo:// scheme
|
||||||
- test met veel producten
|
- test met veel producten
|
||||||
|
|||||||
Reference in New Issue
Block a user