diff options
| author | Alexis Metaireau <alexis@notmyidea.org> | 2019-10-06 21:20:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-06 21:20:47 +0200 |
| commit | 4b01276d60ed56de0a64d3122910e6b10577bce7 (patch) | |
| tree | f6e5458ef4d556e8d452aa2e1a55eac9cc600ce4 /ihatemoney/templates | |
| parent | 1f539b5c0d6d68897bcdb4cdf1f3f81debac49a9 (diff) | |
| parent | e453c917ed630614cbc6ed1400833b344548a504 (diff) | |
| download | ihatemoney-mirror-4b01276d60ed56de0a64d3122910e6b10577bce7.zip ihatemoney-mirror-4b01276d60ed56de0a64d3122910e6b10577bce7.tar.gz ihatemoney-mirror-4b01276d60ed56de0a64d3122910e6b10577bce7.tar.bz2 | |
Merge pull request #479 from LeoMouyna:feature/external-link-bill-form
feat: Optional field 'external link' in bill form.
Diffstat (limited to 'ihatemoney/templates')
| -rw-r--r-- | ihatemoney/templates/forms.html | 3 | ||||
| -rw-r--r-- | ihatemoney/templates/list_bills.html | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index a64e205..c96921c 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -14,7 +14,7 @@ {{ field(class=class, placeholder=placeholder) | safe }} {% endif %} {% if field.description %} - <p class="help-inline">{{ field.description }}</p> + <small id="{{field.name}}_description"" class="form-text text-muted">{{ field.description }}</small> {% endif %} </div> </div> @@ -95,6 +95,7 @@ {{ input(form.what, inline=True) }} {{ input(form.payer, inline=True, class="form-control custom-select") }} {{ input(form.amount, inline=True) }} + {{ input(form.external_link, inline=True) }} <div class="form-group row"> <label class="col-3" for="payed_for">{{ _("For whom?") }}</label> diff --git a/ihatemoney/templates/list_bills.html b/ihatemoney/templates/list_bills.html index dddef4d..494969f 100644 --- a/ihatemoney/templates/list_bills.html +++ b/ihatemoney/templates/list_bills.html @@ -134,6 +134,9 @@ <td class="bill-actions"> <a class="edit" href="{{ url_for(".edit_bill", bill_id=bill.id) }}" title="{{ _("edit") }}">{{ _('edit') }}</a> <a class="delete" href="{{ url_for(".delete_bill", bill_id=bill.id) }}" title="{{ _("delete") }}">{{ _('delete') }}</a> + {% if bill.external_link %} + <a class="see" href="{{ bill.external_link }}" ref="noopener" target="_blank" title="{{ _("see") }}">{{ _('see') }} </a> + {% endif %} </td> </tr> {% endfor %} |
