mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-09 08:57:41 +08:00
eb619184a5
* 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]
12 lines
291 B
Ruby
12 lines
291 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ZebraLabelTemplate < LabelTemplate
|
|
def self.default
|
|
ZebraLabelTemplate.new(
|
|
name: I18n.t('label_templates.default_zebra_name'),
|
|
width_mm: 25.4,
|
|
height_mm: 12.7,
|
|
content: Extends::DEFAULT_LABEL_TEMPLATE[:zpl]
|
|
)
|
|
end
|
|
end
|