Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-9797 Usability improvement, survey & profile
  3. CRM-9792

Add a new generic tool to ajax add a template (AHAH-Asynchronous HTML and HTTP)

    Details

    • Type: Sub-task
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.2.0
    • Component/s: None
    • Labels:
      None

      Description

      Add a new menu /civicrm/inline

      When called /civicrm/inline/

      {entity}

      /

      {template}

      ?param1=bbb&param2=ccc
      eg: http://trunk.crm/civicrm/inline/uf/edit_fields?id=1

      1) it looks for the template under templates/CRM/Entity/Page/Inline/Template.tpl
      eg. templates/CRM/UF/Page/Inline/EditFields.tpl

      2) assign param1 param2... to the template
      3) get the result and
      4) either display the page "normally" or if called from jquery (ajax) returns only the fragment (like snippet=1)

      Rationale:
      they are more and more ajax functions that only needs to be bootstrapped by calling a bit of html that is either using

      {crmAPI}

      to fetch data, or containing html and $.crmAPI() calls.

      It could be used for pop-up and other forms.
      For the profiles I will use it at least for
      a) the snippet to load the profile and its field
      b) the snippet to add/remove fields for contacts
      c) the snippet to add/remove fields for activities
      d) modify exiting option lists for custom fields

      (and I can already see myself using it for more stuff in custom dev, that will be awesome)

        Attachments

          Activity

            People

            • Assignee:
              xavier xavier dutoit
              Reporter:
              xavier xavier dutoit
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: