tagtemplates.js 1.1 KB

123456789101112131415161718192021
  1. const { Text, Integer, Checkbox } = require('@keystonejs/fields');
  2. const { AutoIncrement } = require('@keystonejs/fields-auto-increment');
  3. module.exports = {
  4. fields: {
  5. tagtemplates_id: { type: AutoIncrement, many: true, isRequired: true, label: 'tagtemplates' },
  6. name: { type: Text, label: 'Nazwa' },
  7. width: { type: Integer, label: 'Szerokosc' },
  8. height: { type: Integer, label: 'Wysokosc' },
  9. size_type: { type: Text, label: 'size_type' },
  10. type: { type: Integer, label: 'Typ' },
  11. border: { type: Integer, label: 'Kraweds' },
  12. digits_under_barcode: { type: Checkbox, label: 'digits_under_barcode' },
  13. margin_top: { type: Integer, label: 'Margines Gorny' },
  14. margin_bottom: { type: Integer, label: 'Margines Dolny' },
  15. margin_left: { type: Integer, label: 'Margines Lewy' },
  16. margin_right: { type: Integer, label: 'Margines Prawy' },
  17. space_vertical: { type: Integer, label: 'Odstep w pionie' },
  18. space_horizontal: { type: Integer, label: 'Odstep w poziomie' },
  19. }, label: 'Tagtemplate'//, plural: 'Tagtemplatess'
  20. };