7 attr :field, :label_manifest
9 def initialize field, label_manifest
11 @label_manifest = label_manifest
35 @label_manifest.model_name
39 @label_manifest.column_name
43 self.form.template_dir + 'label/'
46 def template_file_name
47 raise "undefined template_file_name\n"
51 self.template_dir + self.template_file_name
54 def label_row_break_template_dir
55 self.form.template_dir + 'label_row_break/'
58 def label_row_break_template_file_name
59 if @label_manifest.row_break
66 def label_row_break_template_name
67 self.label_row_break_template_dir + self.label_row_break_template_file_name
73 def template_file_name
78 'activerecord.attributes.' + self.model_name + '.' + self.column_name
84 def template_file_name