menu export ui update
This commit is contained in:
@@ -62,7 +62,7 @@ class Settings::MenusController < ApplicationController
|
|||||||
def destroy
|
def destroy
|
||||||
# @settings_menu.destroy
|
# @settings_menu.destroy
|
||||||
abc = Menu.destroyMenu(@settings_menu)
|
abc = Menu.destroyMenu(@settings_menu)
|
||||||
|
|
||||||
# @settings_menu_item_set.destroy
|
# @settings_menu_item_set.destroy
|
||||||
flash[:notice] = 'Menu was successfully destroyed.'
|
flash[:notice] = 'Menu was successfully destroyed.'
|
||||||
render :json => {:status=> "Success", :url => settings_menus_path }.to_json
|
render :json => {:status=> "Success", :url => settings_menus_path }.to_json
|
||||||
@@ -80,11 +80,13 @@ class Settings::MenusController < ApplicationController
|
|||||||
wb = p.workbook
|
wb = p.workbook
|
||||||
wb.styles do |s|
|
wb.styles do |s|
|
||||||
time_format = wb.styles.add_style :format_code => 'hh:mm:ss'
|
time_format = wb.styles.add_style :format_code => 'hh:mm:ss'
|
||||||
title = s.add_style :fg_color => "004586"
|
title = s.add_style :fg_color => "004586",
|
||||||
|
:b => true,
|
||||||
|
:sz => 12
|
||||||
wrap_text = s.add_style :sz => 11,
|
wrap_text = s.add_style :sz => 11,
|
||||||
:alignment => { :horizontal => :left,:vertical => :center ,
|
:alignment => { :horizontal => :left,:vertical => :center ,
|
||||||
:wrap_text => true}
|
:wrap_text => true}
|
||||||
header_text = s.add_style :fg_color=> "a7a7a7",
|
header_text = s.add_style :fg_color=> "090909",
|
||||||
:b => true,
|
:b => true,
|
||||||
:sz => 12,
|
:sz => 12,
|
||||||
:border => { :style => :thin, :color => "00" },
|
:border => { :style => :thin, :color => "00" },
|
||||||
|
|||||||
Reference in New Issue
Block a user