Improvements to new menu product category editing and adding new
This commit is contained in:
@@ -20,7 +20,7 @@ App.ProductCategory = DS.Model.extend
|
||||
active_days = days.filter (day)=>@get("active_on_#{day}")
|
||||
result = ""
|
||||
if active_days.length < 7
|
||||
result += "<span class=\"day-names\">#{active_days.map((day) -> t("date.day_name.#{day}")).join(", ")}</span> "
|
||||
result += "<span class=\"day-names\">#{active_days.map((day) -> tspan("date.day_name.#{day}")).join(", ")}</span> "
|
||||
unless @get('full_day')
|
||||
result += "<span class=\"time-range\">#{day_minutes_to_time @get('start_from')} - #{day_minutes_to_time @get('end_on')}</span>"
|
||||
new Ember.Handlebars.SafeString result
|
||||
|
||||
Reference in New Issue
Block a user