scinote-web/app/models/fluics_label_template.rb
artoscinote eb619184a5
Implement typed label templates [SCI-7046] (#4316)
* Implement typed label templates [SCI-7046]

* Add structure.sql, fix migration [SCI-7046]

* Fix method name [SCI-7046]

* Add dependent option to team - label_template relation [SCI-7046]

* Migration code style, add input sanitization [SCI-7046]

* Fix new label creation [SCI-7046]
2022-08-08 10:06:00 +02:00

33 lines
487 B
Ruby

# frozen_string_literal: true
class FluicsLabelTemplate < LabelTemplate
def self.default
FluicsLabelTemplate.new(
name: I18n.t('label_templates.default_fluics_name'),
width_mm: 25.4,
height_mm: 12.7,
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl]
)
end
def label_format
'Fluics'
end
def created_by_user
'Fluics GmbH'
end
def modified_by
'Fluics GmbH'
end
def icon
'fluics'
end
def read_only?
true
end
end