fields = ['id', 'title', 'body', 'link', 'video_url']
values = [
  [
    1,
    'Categories',
    'Categories are groups to contain your transactions, including charges, credits and payments. A subcategory may be used as well to break down a general category into specific areas. For example, the category "Tuition" may have subcategories "High School," "Middle School" and "Elementary". A school can create as many categories and subcategories as needed. At least one category is required before any other data can be added.',
    nil,
    nil
  ],
  [2, 'Bill Templates', '', nil, nil],
  [3, 'Accounts', '', nil, nil],
  [4, 'Transactions', '', nil, nil],
  [5, 'Accounting Tags', '', nil, nil],
  [6, 'Library Locations', '', nil, nil],
  [7, 'Library Item Types', '', nil, nil],
  [
    8,
    'Agreement Settings',
    '<p>Agreements are statements for a family to read and choose to Agree/Not Agree or be required to Agree for each student. Agreements are created here in Application settings and then added to specific application(s).</p>',
    nil,
    nil
  ],
  [
    9,
    'Essay Settings',
    '<p>Essays are questions or statements for a family to read and give a free-form response for each student. Essays are created here in Application settings and then added to specific application(s).</p>',
    nil,
    nil
  ],
  [10, 'Admissions Tags', '', nil, nil],
  [11, 'Item Conditions', '', nil, nil],
  [
    12,
    'Student Lookup',
    'Filter a group of students based on status (current or non-current) and grade level. Those students can then be added to the list for New Charge and/or New Credit.',
    nil,
    nil
  ],
  [
    13,
    'Applicant Documents',
    '<p>Documents the family has uploaded during the application process will appear here.</p>',
    nil,
    nil
  ],
  [
    14,
    'Applicant Essays',
    "<p>Essays assigned to this applicant's application will show here, along with the family response when completed.</p>",
    nil,
    nil
  ],
  [
    15,
    'Applicant Agreements',
    "<p>Agreements assigned to this applicant's application will show here, along with the family response when completed.</p>",
    nil,
    nil
  ],
  [
    16,
    'Invoices',
    'Invoices are a tool to collect a group of charges for a family and apply a due date. When created, invoices are in a draft status. Once the invoice is ready, it can be shared with parents. Once shared, it will be viewable to parents and will have a status of unpaid, overdue, or paid. Aging reports can be run on status of invoices.',
    nil,
    nil
  ],
  [17, 'Invoice Settings', '', nil, nil],
  [18, 'Library Cataloging', '', nil, nil],
  [
    19,
    'Permissions',
    "An employee can be given one of 3 permission levels. Read - This is a read-only permission that doesn't allow the employee to add/delete/update any data. Write - This permission gives access to everything except for settings. Manage - This is a full-access permission.",
    nil,
    nil
  ],
  [20, 'Applications', '<p>Create Applications</p>', nil, nil],
  [21, 'Family Account Statement', '', nil, nil],
  [22, 'Transaction Report', '', nil, nil],
  [23, 'Transaction Aging', '', nil, nil],
  [24, 'Invoice Aging Report', '', nil, nil],
  [25, 'Outgoing Email', '', nil, nil],
  [26, 'Student Account Statement', '', nil, nil],
  [
    27,
    'Checklist Settings',
    '<p>Checklist Items are school defined items to track applicant progress. Checklist items can be set to internal for school viewing only or for the family to also view. Checklist Items are created here in Application settings and then added to specific application(s).</p>',
    nil,
    nil
  ],
  [28, 'Admissions Families', '', nil, nil],
  [
    29,
    'Application Documents',
    'Documents are placeholders for documents the school would like the family to upload. Document placeholders are created in settings and then added to specific application(s) on the Applications tab.',
    nil,
    nil
  ],
  [30, 'Status Settings', '', nil, nil],
  [
    31,
    'Attachment Settings',
    'Attachments are documents the school wishes to provide to the family to download. Attachments are uploaded in settings and then added to specific application(s) on the Applications tab.',
    nil,
    nil
  ],
  [32, 'Registration Settings', '<p>Add text here</p>', nil, nil],
  [33, 'Family Application', '<p>Add text here.</p>', nil, nil],
  [
    34,
    'Applicant General/Medical Info',
    '<p>Student general information and medical information from the application will show here, along with the family response when completed.</p>',
    nil,
    nil
  ],
  [
    35,
    'Applicant Additional Information',
    "<p>Additional fields assigned to this applicant's application will show here, along with the family response when completed.</p>",
    nil,
    nil
  ],
  [
    36,
    'Facility Manager',
    '<p>Locations, Buildings, and Rooms (or equipment) can be defined in Facility Mgr. This data can then be used with the Scheduler and employees will be able to create a calendar event and reserve a facility for that event.  </p><p>Please review the Online Manual and Video to see the changes from Legacy to 3.0.</p>',
    nil,
    nil
  ]
]

Help::Card.destroy_all
values.each do |v|
  r = Help::Card.new
  fields.each_with_index do |f, index|
    r[f] = v[index]
  end
  r.save
end
