0001-base-add-an-help-attribute-for-connectors-34885.patch
passerelle/apps/csvdatasource/models.py | ||
---|---|---|
132 | 132 |
sheet_name = models.CharField(_('Sheet name'), blank=True, max_length=150) |
133 | 133 | |
134 | 134 |
category = _('Data Sources') |
135 |
documentation_url = 'https://doc-publik.entrouvert.com/admin-fonctionnel/parametrage-avance/source-de-donnees-csv/' |
|
135 | 136 | |
136 | 137 |
class Meta: |
137 | 138 |
verbose_name = _('Spreadsheet File') |
passerelle/apps/jsondatastore/models.py | ||
---|---|---|
76 | 76 | |
77 | 77 |
class JsonDataStore(BaseResource): |
78 | 78 |
category = _('Data Sources') |
79 |
documentation_url = 'https://doc-publik.entrouvert.com/admin-fonctionnel/parametrage-avance/json-data-store/' |
|
79 | 80 |
text_value_template = models.CharField(_('Template for "text" key value'), |
80 | 81 |
max_length=256, blank=True) |
81 | 82 |
passerelle/base/models.py | ||
---|---|---|
115 | 115 | |
116 | 116 |
parameters = None |
117 | 117 |
manager_view_template_name = None |
118 |
documentation_url = None |
|
118 | 119 | |
119 | 120 |
# permission descriptions |
120 | 121 |
_can_access_description = _('Access is limited to the following API users:') |
passerelle/sms/__init__.py | ||
---|---|---|
12 | 12 | |
13 | 13 |
_can_send_messages_description = _('Sending messages is limited to the following API users:') |
14 | 14 | |
15 |
def __init__(self, *args, **kwargs): |
|
16 |
self.documentation_url = 'https://doc-publik.entrouvert.com/admin-fonctionnel/les-tutos/configuration-envoi-sms/' |
|
17 | ||
15 | 18 |
@classmethod |
16 | 19 |
def clean_numbers(cls, destinations, default_country_code='33', |
17 | 20 |
default_trunk_prefix='0'): # Yeah France first ! |
passerelle/templates/passerelle/manage/service_view.html | ||
---|---|---|
50 | 50 |
</div> |
51 | 51 | |
52 | 52 |
<div id="endpoints" class="section"> |
53 |
<h3>{% trans 'Endpoints' %}</h3> |
|
53 |
<h3>{% trans 'Endpoints' %} |
|
54 |
{% if object.documentation_url %} |
|
55 |
<a href="{{ object.documentation_url }}">({% trans "documentation" %})</a> |
|
56 |
{% endif %} |
|
57 |
</h3> |
|
54 | 58 |
<div> |
55 | 59 |
{% if object.api_description %}<p>{{object.api_description}}</p>{% endif %} |
56 | 60 |
{% block endpoints %} |
57 |
- |