Added the back button to the transaction views in the accounting application.
This commit is contained in:
		| @@ -39,6 +39,13 @@ First written: 2020/7/23 | ||||
|   </div> | ||||
| {% endif %} | ||||
|  | ||||
| <div class="btn-group btn-actions"> | ||||
|   <a class="btn btn-primary" role="button" href="{{ request.GET.r }}"> | ||||
|     <i class="fas fa-chevron-circle-left"></i> | ||||
|     {{ _("Back") }} | ||||
|   </a> | ||||
| </div> | ||||
|  | ||||
| <div class="row"> | ||||
|   <div class="col-sm-2">{% trans "Date:" context "Accounting|" as text %}{{ text|force_escape }}</div> | ||||
|   <div class="col-sm-10">{{ item.date|smart_date }}</div> | ||||
|   | ||||
| @@ -39,6 +39,13 @@ First written: 2020/7/23 | ||||
|   </div> | ||||
| {% endif %} | ||||
|  | ||||
| <div class="btn-group btn-actions"> | ||||
|   <a class="btn btn-primary" role="button" href="{{ request.GET.r }}"> | ||||
|     <i class="fas fa-chevron-circle-left"></i> | ||||
|     {{ _("Back") }} | ||||
|   </a> | ||||
| </div> | ||||
|  | ||||
| <div class="row"> | ||||
|   <div class="col-sm-2">{% trans "Date:" context "Accounting|" as text %}{{ text|force_escape }}</div> | ||||
|   <div class="col-sm-10">{{ item.date|smart_date }}</div> | ||||
|   | ||||
| @@ -39,6 +39,13 @@ First written: 2020/7/23 | ||||
|   </div> | ||||
| {% endif %} | ||||
|  | ||||
| <div class="btn-group btn-actions"> | ||||
|   <a class="btn btn-primary" role="button" href="{{ request.GET.r }}"> | ||||
|     <i class="fas fa-chevron-circle-left"></i> | ||||
|     {{ _("Back") }} | ||||
|   </a> | ||||
| </div> | ||||
|  | ||||
| <div class="row"> | ||||
|   <div class="col-sm-2">{% trans "Date:" context "Accounting|" as text %}{{ text|force_escape }}</div> | ||||
|   <div class="col-sm-10">{{ item.date|smart_date }}</div> | ||||
|   | ||||
| @@ -59,4 +59,4 @@ def url_with_return(context, view_name, *args): | ||||
|     """ | ||||
|     url = reverse(view_name, args=args) | ||||
|     return_to = context.request.get_full_path() | ||||
|     return str(UrlBuilder(url).set_param("return-to", return_to)) | ||||
|     return str(UrlBuilder(url).set_param("r", return_to)) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user