forked from Antiarchitect/taurus
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
444 changed files
with
5,093 additions
and
28,033 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
# Add your own tasks in files placed in lib/tasks ending in .rake, | ||
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. | ||
|
||
require(File.join(File.dirname(__FILE__), 'config', 'boot')) | ||
|
||
require File.expand_path('../config/application', __FILE__) | ||
require 'rake' | ||
require 'rake/testtask' | ||
require 'rake/rdoctask' | ||
|
||
require 'tasks/rails' | ||
Taurus::Application.load_tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
class Editor::Reference::DepartmentsController < Editor::BaseController | ||
active_scaffold do |config| | ||
config.actions = [:list, :nested] | ||
config.columns = [:name, :short_name] | ||
active_scaffold :departments do |config| | ||
config.actions = [:list, :search, :nested] | ||
config.list.columns = [:name, :short_name] | ||
config.list.sorting = { :name => :asc } | ||
config.nested.add_link('Дисциплины', [:disciplines]) | ||
config.nested.add_link('Преподаватели', [:teaching_places]) | ||
config.nested.add_link :disciplines | ||
config.nested.add_link :teaching_places | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
class Editor::Reference::DisciplinesController < Editor::BaseController | ||
record_select :search_on => :name, :order_by => :name | ||
active_scaffold do |config| | ||
config.actions = [:list, :nested] | ||
config.columns = [:short_name, :name] | ||
active_scaffold :disciplines do |config| | ||
config.actions = [:list, :search, :nested] | ||
config.list.columns = [:short_name, :name] | ||
config.list.sorting = { :name => :asc } | ||
config.nested.add_link 'Карты распределения нагрузки', [:charge_cards] | ||
config.nested.add_link :charge_cards | ||
end | ||
end |
11 changes: 6 additions & 5 deletions
11
app/controllers/editor/reference/teaching_places_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
class Editor::Reference::TeachingPlacesController < Editor::BaseController | ||
active_scaffold do |config| | ||
config.actions = [:list, :nested] | ||
config.columns = [:position, :lecturer, :whish] | ||
active_scaffold :teaching_places do |config| | ||
config.actions = [:list, :search, :nested] | ||
config.list.columns = [:position, :lecturer, :whish] | ||
config.columns[:lecturer].clear_link | ||
config.columns[:lecturer].sort_by :sql => 'lecturers.name' | ||
config.list.sorting = { :lecturer => :asc } | ||
config.nested.add_link('Карты распределения нагрузки', [:charge_cards]) | ||
config.columns[:lecturer].search_sql = 'lecturers.name' | ||
config.search.columns << :lecturer | ||
config.nested.add_link :charge_cards | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.