Uploaded image for project: 'CiviHR'
  1. CiviHR
  2. HR-16 CiviHR - Entity - Immigration / Visas
  3. HR-51

hrvisa: override custom-data group "Immigration" to display as table using profile form

    Details

    • Type: Sub-task
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Won't Do
    • Affects Version/s: HR-1.0
    • Fix Version/s: HR-1.0
    • Component/s: None
    • Labels:
      None

      Description

      The hrvisa ext currently defines a custom-data group called "Immigration". We need to update hrvisa and override the tab used by this custom-data group so that it displays as a table. This can be done with a profile form. There are examples from hrident, hrmed, and hrqual. For example:

      https://github.com/civicrm/civihr/commit/4f245af93452ab688e616006d9dec624d047c9b7

      The process still requires a bit of manual work. Specifically –

      (a) install hrvisa to create the CustomGroup,
      (b) create profile form in UI,
      (c) use bin/migrate/export.php to get an XML dump of the profile form,
      (d) copy the relevant XML entries for ProfileGroup, ProfileField, and ProfileJoin to hrvisa/xml/auto_install.xml,
      (e) tweak the internal name of the profile (e.g. instead of "Immigration_123" use "hrvisa_tab"),
      (f) mark the ProfileGroup with <is_reserved>1</is_reserved>
      (g) add the hook
      (h) drop/create site's db. reinstall hrvisa and verify that it works

        Attachments

          Activity

            People

            • Assignee:
              timotten Tim Otten
              Reporter:
              deepak Deepak Srivastava
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 15 minutes
                4h 15m