6 attr :field, :label_manifest
8 def initialize field, label_manifest
10 @label_manifest = label_manifest
34 @label_manifest.model_name
38 @label_manifest.column_name
42 self.form.template_dir + 'label/'
45 def template_file_name
46 raise "undefined template_file_name\n"
50 self.template_dir + self.template_file_name
53 def label_row_break_template_dir
54 self.form.template_dir + 'label_row_break/'
57 def label_row_break_template_file_name
58 if @label_manifest.row_break
65 def label_row_break_template_name
66 self.label_row_break_template_dir + self.label_row_break_template_file_name
72 def template_file_name
77 'activerecord.attributes.' + self.model_name + '.' + self.column_name
83 def template_file_name