<tal:block tal:define="
             is_followed view/is_followed;
             active python:'active' if is_followed else '';
             verb view/verb;
           "
           i18n:domain="ploneintranet"
>
  <span class="pat-subform pat-inject"
        id="follow-subform-contacts"
        method="POST"
        title="${verb}"
        data-pat-inject="source: #follow-subform-contacts::element; target: self::element;"
  >

    <button class="${active} icon icon-follow"
            id="follow-button-contacts"
            formaction="${here/absolute_url}/@@follow-link-iconified"
            type="submit"
            tal:content="verb"
    >Follow</button>
    <input name="do_toggle_follow"
           type="hidden"
           value="1"
    />
  </span>

</tal:block>
