forked from rapidpro/rapidpro
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check credentials view for Facebook and Instagram channels
- Loading branch information
Showing
8 changed files
with
137 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
templates/channels/types/facebookapp/check_credentials.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% extends "smartmin/read.html" %} | ||
{% load smartmin temba humanize channels i18n tz %} | ||
|
||
{% block content %} | ||
<div class="mt-4 card"> | ||
<p id="fb-status"> | ||
{% if not valid_token %} | ||
{% trans "Error with token, you need to reconnect the Facebook page by clicking the button below" %} | ||
{% else %} | ||
{% trans "Everything looks good. No need to reconnect" %} | ||
{% endif %} | ||
</p> | ||
<div class="mt-4"> | ||
<div onclick="javascript:history.go(-1)" class="button-light">{% trans "Go Back" %}</div> | ||
<a class="button-primary mt-4 ml-2" href="{{ update_token_url }}">{% trans "Reconnect Facebook page" %}</a> | ||
</div> | ||
</div> | ||
{% endblock content %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{% extends "smartmin/read.html" %} | ||
{% load smartmin temba humanize channels i18n tz %} | ||
|
||
{% block content %} | ||
<div class="mt-4 card"> | ||
<p id="fb-status"> | ||
{% if not valid_token %} | ||
{% trans "Error with token, you need to reconnect the Instagram Business Account by clicking the button below" %} | ||
{% else %} | ||
{% trans "Everything looks good. No need to reconnect" %} | ||
{% endif %} | ||
</p> | ||
<div class="mt-4"> | ||
<div onclick="javascript:history.go(-1)" class="button-light">{% trans "Go Back" %}</div> | ||
<a class="button-primary mt-4 ml-2" href="{{ update_token_url }}">{% trans "Reconnect Instagram Business Account" %}</a> | ||
</div> | ||
</div> | ||
{% endblock content %} |