This file contains hidden or 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
development: | |
# Configure available database sessions. (required) | |
sessions: | |
# Defines the default session. (required) | |
default: | |
# Defines the name of the default database that Mongoid can connect to. | |
# (required). | |
database: lifecoachdrive_development | |
# Provides the hosts the default session can connect to. Must be an array | |
# of host:port pairs. (required) |
This file contains hidden or 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
# Modelo base | |
class @Model | |
constructor: (defaults,urls) -> | |
@__defaults = if typeof defaults is "object" then defaults else {} | |
@__urls = if typeof urls is "object" then defaults else {} | |
@set(@__defaults) | |
get: (attr) -> | |
ko.unwrapObservable @[attr] |
This file contains hidden or 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
.holder | |
- @job.job_folders.with_type("folder").each do |job_folder| | |
- @job_folder = job_folder | |
.main{ :id => "folder_#{@job_folder.id}"} | |
.icon | |
%a{"href" => "javascript:toggle_div(#{@job_folder.id});"} | |
= image_tag('plus.jpg', :size => "14x14", :id => "img_#{@job_folder.id}") | |
.icon= current_user.has_role?(:contact) ? image_tag("#{@job_folder.folder_type}.png", :size => "16x16", :alt => "file_folder_#{@job_folder.id}") : link_to_remote_redbox(image_tag("#{@job_folder.folder_type}.png", :size => "16x16", :alt => "file_folder_#{@job_folder.id}"), :url => new_multiple_files_url(:job_folder_id => @job_folder)) | |
.main_name{ "style" => "width: 470px"}= @job_folder.folder_type == "folder" && !current_user.has_role?(:contact) ? in_place_editor_field(:job_folder, 'name', {}, :save_text => "Save") : @job_folder.name | |
.main_number |
This file contains hidden or 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
format.pdf { | |
table_of_content_pages = Hash.new | |
for specification in @job.specifications | |
specification_sections = SpecificationSection.specification_id_eq(specification.id) | |
for specification_section in specification_sections | |
pdf = Prawn::Document.new(:page_size => "LETTER", :top_margin => 0.5.in, :left_margin => 1.3.in, :bottom_margin => 0.in, :right_margin => 0.8.in ) | |
if report_article_number(specification_section.specification.division.short_number) != "00" | |
pdf.bounding_box([0, 700], :width => 460, :height => 610 ) do | |
pdf.text "SECTION #{specification_section.section.report_print_number}", :align => :center, :size => 9, :style => :bold | |
pdf.move_down(5) |
NewerOlder