@staticmethod
    def layout(item):

        if not item.authorized:
            return None

        if current.deployment_settings.get_ui_use_button_icons():
            from s3.s3widgets import ICON
            label = (ICON("add"), item.label)
        else:
            label = item.label

        popup_link = A(label,
                       _href=item.url(format="popup"),
                       _class="s3_add_resource_link",
                       _id="%s_add" % item.function,
                       _target="top",
                       _title=item.opts.info,
                       )

        tooltip = item.opts.tooltip
        if tooltip is not None:
            ttip = DIV(_class="tooltip",
                       _title="%s|%s" % (item.opts.title, tooltip))
        else:
            ttip = ""

        return TAG[""](popup_link, ttip)

    # -------------------------------------------------------------------------
Layout for popup link
dataset/ETHPy150Open sahana/eden/modules/s3layouts.py/S3PopupLink.layout