<%- content_for :head do -%>
<%= stylesheet_link_tag ‘prototype-ui’ %>
<%= stylesheet_link_tag ‘actions/project_sheet’ %>
<%= javascript_include_tag ‘vendor/prototype-ui/window’ %>
<%= javascript_include_tag ‘vendor/jquery’ %>
<%= javascript_include_tag ‘vendor/jquery.flot.js’ %>
<%= javascript_include_tag ‘prototype-ui’, :charset => ‘UTF-8’ %>
<%= javascript_include_tag ‘project_lock’, :charset => ‘UTF-8’ %>
<%= javascript_include_tag :project_sheet, :charset => ‘UTF-8’ %>
<%- end -%>
<%=h _('-- è¨å®šãƒ¡ãƒ‹ãƒ¥ãƒ¼ --') %>
<%=h _('Staff') %>
<%=h _('Shift') %>
<%=h WO::Util.tree_child + _('高度ãªè¨å®š')
%>
<%=h WO::Util.tree_child + (_('%sã®ä½œæˆ')
% _('Label')) %>
<%=h WO::Util.tree_last_child +
_('æ¥å‹™ãƒã‚¤ãƒ³ãƒ‰') %>
<%=h _('Location') %>
<%=h _('Role') %>
<%=h _('Skill') %>
<%=h _('Task') %>
<%=h _('t project custom count')
%>
<%=h _('t project config') %>
<%=h _('%sã¸ã®åæ˜ ') % _('Preset')
%>
<%=h _('%sã®ãƒãƒ¼ãƒ‰') % _('Preset')
%>
<%=h _('対象サイト') %> |
<%=h current_project.site.name %> |
<%=h _('TProject|Name') %> |
<%=h current_project.name %> |
<%= print_tab _('t project work sheet'), nil, false, :id =>
'tab_work_sheet' %>
<%= print_tab _('Calendar'), nil, false, :id => 'tab_calendar_sheet'
%>
<%= print_tab _('Staff'), nil, false, :id => 'tab_staff_sheet' %>
<%= print_tab _('Demand'), nil, false, :id => 'tab_demand_sheet' %>
<%= print_tab _('Optimize') + ' >>', { :controller =>
'/project/optimize', :ac => @access_code }, false, :id => 'tab_optimize'
%>
<%= render :partial => 'work_sheet' %>
<%= render :partial => 'calendar_sheet' %>
<%= render :partial => 'staff_sheet' %>
<%= render :partial => 'demand_sheet' %>
<%- if current_account.system? || current_account.enterprise? -%>
<%- end -%>
this is my view page. I tried to add new div and form in it but this
time it gives router error.
resources = {
:custom_count => { :collection => { :sort => :get, :update_sort =>
:put } },
:location => { :collection => { :sort => :get, :update_sort =>
:put } },
:role => { :collection => { :sort => :get, :update_sort =>
:put } },
:rule => { :collection => { :update_assignments => :put },
:member => { :update_label => :put } },
:rule_label => {},
:shift => { :collection => { :sort => :get, :update_sort =>
:put } },
:shift_label => {},
:skill => {},
:staff => { :collection => { :sort => :get, :update_sort =>
:put } },
:task => {},
}
resource = {
:config => {},
:role_shift => {},
:shift_config => {},
}
resources.each do |entity, options|
map.resources entity.to_s.pluralize, {
:controller => “preset_project/#{entity}”,
:name_prefix => ‘t_project_’,
:path_prefix =>
‘/:enterprise_code/:m_hierarchy_id/:t_project_id’,
:requirements => { :m_hierarchy_id => /\d+/, :t_project_id =>
/\d+/ },
}.merge(options)
map.resources entity.to_s.pluralize, {
:controller => "preset_project/#{entity}",
:name_prefix => 't_preset_',
:path_prefix => '/:enterprise_code/:m_hierarchy_id',
:requirements => { :m_hierarchy_id => /\d+/ },
}.merge(options)
end
resource.each do |entity, options|
map.resource entity, {
:controller => “preset_project/#{entity}”,
:name_prefix => ‘t_project_’,
:path_prefix =>
‘/:enterprise_code/:m_hierarchy_id/:t_project_id’,
:requirements => { :m_hierarchy_id => /\d+/, :t_project_id =>
/\d+/ }
}.merge(options)
map.resource entity, {
:controller => "preset_project/#{entity}",
:name_prefix => 't_preset_',
:path_prefix => '/:enterprise_code/:m_hierarchy_id',
:requirements => { :m_hierarchy_id => /\d+/ },
}.merge(options)
end
Project::*
%w( optimize report sheet ).each do |controller|
map.connect
“:enterprise_code/:m_hierarchy_id/:t_project_id/#{controller}/:action/:id”,
:controller => “project/#{controller}”,
:requirements => { :m_hierarchy_id => /\d+/, :t_project_id =>
/\d+/ }
end
Preset::*
map.connect ‘:enterprise_code/:m_hierarchy_id/:controller/:action’,
:requirements => { :m_hierarchy_id => /\d+/,
:controller => %r!preset/top! }
Site::*
%w( demand project schedule ).each do |controller|
map.connect
“:enterprise_code/:m_hierarchy_id/#{controller}/:action/:id”,
:controller => “site/#{controller}”,
:requirements => { :m_hierarchy_id => /\d+/ }
end
Master::*
resources = {
:account => {},
:event => {},
:hierarchy => {},
}
resource = {
:system_constant => {},
}
resources.each do |entity, options|
map.resources entity.to_s.pluralize, {
:controller => “master/#{entity}”,
:name_prefix => ‘m_’,
:path_prefix => ‘/:enterprise_code/:m_hierarchy_id’,
:requirements => { :m_hierarchy_id => /\d+/ },
}.merge(options)
end
resource.each do |entity, options|
map.resource entity, {
:controller => “master/#{entity}”,
:name_prefix => ‘m_’,
:path_prefix => ‘/:enterprise_code/:m_hierarchy_id’,
:requirements => { :m_hierarchy_id => /\d+/ }
}.merge(options)
end
%w( enterprise_config ).each do |controller|
map.connect
“:enterprise_code/:m_hierarchy_id/#{controller}/:action/:id”,
:controller => “master/#{controller}”,
:requirements => { :m_hierarchy_id => /\d+/ }
end
Global::*
%w( password queue ).each do |controller|
map.connect “:enterprise_code/#{controller}/:action/:id”,
:controller => “global/#{controller}”
end
Login
map.connect ‘:enterprise_code/:controller/:action’,
:controller => ‘login’,
:enterprise_code => ‘default’,
:requirements => { :controller => /login/ }
Stylesheets, Javascripts, Monitor
map.connect ‘stylesheets/actions/:action.css’, :controller =>
‘stylesheets’
map.connect ‘stylesheets/:action.css’, :controller =>
‘stylesheets’
map.connect ‘javascripts/:action.js’, :controller =>
‘javascripts’
map.connect ‘monitor/:action’, :controller =>
‘monitor’
end
router settings are quite complex for me, I couldnt understand how to
add button and selection to my page.
I run the plug in without selection on this page but that time I had
tiny problem like, the converter created output file but didnt redirect
to main page and didnt ask me save as option. even it runs the converter
I need to get the parameter from selection…