forked from PolyLAN/polybanking
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
256 additions
and
21 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
61 changes: 61 additions & 0 deletions
61
server/paiements/templates/paiements/transactions/logs.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,61 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
{% load bootstrap3 %} | ||
|
||
{% block title %}{{block.super}} :: {% trans "Transactions" %} :: {% trans "Logs" %}{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<script type="text/javascript">$('#nav-transactions').addClass('active');</script> | ||
|
||
<h2>{% trans "Transactions" %}</h2> | ||
|
||
<ol class="breadcrumb"> | ||
<li><a href="{% url 'main.views.home' %}"><i class="fa fa-home"></i> {% trans "Home" %}</a></li> | ||
<li><a href="{% url 'configs.views.show' object.config.pk %}"><i class="fa fa-cog"></i> {{object.config|safe}}</a></li> | ||
<li><a href="{% url 'paiements.views.transactions_list' %}"><i class="fa fa-money"></i> {% trans "Transactions" %}</a></li> | ||
<li><a href="{% url 'paiements.views.transactions_show' object.pk %}"><i class="fa fa-dollar"></i> {{object}}</a></li> | ||
<li class="active"><i class="glyphicon glyphicon-list-alt"></i> {% trans "Logs" %}</li> | ||
|
||
</ol> | ||
|
||
<div class="row-fluid"> | ||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">{% trans "Logs for" %} {{object|safe}}</h3> | ||
</div> | ||
<div class="panel-body"> | ||
|
||
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered table-to-sort-but-not-automaticaly"> | ||
<thead> | ||
<tr> | ||
<th>{% trans "When" %}</th> | ||
<th>{% trans "What" %}</th> | ||
<th>{% trans "Extra data" %}</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for elem in list %} | ||
<tr> | ||
<td>{{elem.when|date}} {{elem.when|time}} ({{elem.when|timesince}} {% trans "ago" %})</td> | ||
<td>{{elem.get_log_type_display}}</td> | ||
<td>{{elem.extra_data}}</td> | ||
</tr> | ||
{% endfor %} | ||
|
||
</tbody> | ||
</table> | ||
|
||
|
||
<div class="row-fluid box-section" style="text-align: right;"> | ||
<a href="{% url 'configs.views.list' %}" class="btn btn-default"><i class="glyphicon glyphicon-list"></i> {% trans "Back to the list" %}</a> | ||
<a href="{% url 'configs.views.show' object.pk %}" class="btn btn-primary"> {% trans "Back to the config" %}</a> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
{% endblock %} |
135 changes: 135 additions & 0 deletions
135
server/paiements/templates/paiements/transactions/show.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,135 @@ | ||
{% extends "base.html" %} | ||
{% load i18n %} | ||
{% load bootstrap3 %} | ||
|
||
{% block title %}{{block.super}} :: {% trans "Transactions" %} :: {% trans "Details" %}{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<script type="text/javascript">$('#nav-transactions').addClass('active');</script> | ||
|
||
<h2>{% trans "Transactions" %}</h2> | ||
|
||
<ol class="breadcrumb"> | ||
<li><a href="{% url 'main.views.home' %}"><i class="fa fa-home"></i> {% trans "Home" %}</a></li> | ||
<li><a href="{% url 'configs.views.show' object.config.pk %}"><i class="fa fa-cog"></i> {{object.config|safe}}</a></li> | ||
<li><a href="{% url 'paiements.views.transactions_list' %}"><i class="fa fa-money"></i> {% trans "Transactions" %}</a></li> | ||
<li class="active"><i class="fa fa-dollar"></i> {{object}}</li> | ||
</ol> | ||
|
||
<div class="row-fluid"> | ||
|
||
<div class="panel panel-primary"> | ||
<div class="panel-heading"> | ||
<h3 class="panel-title">{% trans "Details of a transaction" %}</h3> | ||
</div> | ||
<div class="panel-body"> | ||
|
||
<form> | ||
|
||
<div class="form-group"> | ||
<label>{% trans "Reference" %}</label> | ||
<p class="form-control-static">{{object.reference}}</p> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>{% trans "Postfinance ID" %}</label> | ||
<p class="form-control-static">{{object.postfinance_id}}</p> | ||
</div> | ||
|
||
{% if object.extra_data %} | ||
<div class="form-group"> | ||
<label>{% trans "Extra data" %}</label> | ||
<p class="form-control-static">{{object.extra_data}}</p> | ||
</div> | ||
{% endif %} | ||
|
||
<div class="form-group"> | ||
<label>{% trans "Amount" %}</label> | ||
<p class="form-control-static">{{object.amount_chf|floatformat:"2"}} CHF</p> | ||
</div> | ||
|
||
|
||
<div class="form-group"> | ||
<label>{% trans "Test mode ?" %}</label> | ||
<p class="form-control-static"><span class="label label-{{object.postfinance_status_good|yesno:"success,danger"}}">{{object.get_postfinance_status_display}}</span></p> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>{% trans "Is active ?" %}</label> | ||
<p class="form-control-static"><span class="label label-{{object.internal_status_good|yesno:"success,danger"}}">{{object.get_internal_status_display}}</span></p> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>{% trans "Ipn needed ?" %}</label> | ||
<p class="form-control-static"><span class="label label-{{object.ipn_needed|yesno:"danger,success"}}">{{object.ipn_needed|yesno}}</span></p> | ||
</div> | ||
|
||
<div class="form-group"> | ||
<label>{% trans "Creation date" %}</label> | ||
<p class="form-control-static">{{object.creation_date|date}} {{object.creation_date|time}} ({{object.creation_date|timesince}})</p> | ||
</div> | ||
|
||
{% if object.last_userforwarded_date %} | ||
<div class="form-group"> | ||
<label>{% trans "Last user forwarder to Postfinance" %}</label> | ||
<p class="form-control-static">{{object.last_userforwarded_date|date}} {{object.last_userforwarded_date|time}} ({{object.last_userforwarded_date|timesince}})</p> | ||
</div> | ||
{% endif %} | ||
|
||
{% if object.last_user_back_from_postfinance_date %} | ||
<div class="form-group"> | ||
<label>{% trans "Last user return from Postfinance" %}</label> | ||
<p class="form-control-static">{{object.last_user_back_from_postfinance_date|date}} {{object.last_user_back_from_postfinance_date|time}} ({{object.last_user_back_from_postfinance_date|timesince}})</p> | ||
</div> | ||
{% endif %} | ||
|
||
{% if object.last_postfinance_ipn_date %} | ||
<div class="form-group"> | ||
<label>{% trans "Last postfinance IPN reception" %}</label> | ||
<p class="form-control-static">{{object.last_postfinance_ipn_date|date}} {{object.last_postfinance_ipn_date|time}} ({{object.last_postfinance_ipn_date|timesince}})</p> | ||
</div> | ||
{% endif %} | ||
|
||
{% if object.last_ipn_date %} | ||
<div class="form-group"> | ||
<label>{% trans "Last IPN date" %}</label> | ||
<p class="form-control-static">{{object.last_ipn_date|date}} {{object.last_ipn_date|time}} ({{object.last_ipn_date|timesince}})</p> | ||
</div> | ||
{% endif %} | ||
|
||
</form> | ||
|
||
<div class="row-fluid box-section" style="text-align: right;"> | ||
<a href="{% url 'paiements.views.transactions_list' %}" class="btn btn-default"><i class="glyphicon glyphicon-list"></i> {% trans "Back to the list" %}</a> | ||
<a href="{% url 'paiements.views.transactions_show_logs' object.pk %}" class="btn btn-default"><i class="glyphicon glyphicon-list-alt"></i> {% trans "Logs" %}</a> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
<script type="text/javascript" src="{{MEDIA_URL}}ZeroClipboard.js"></script> | ||
|
||
<script type="text/javascript"> | ||
|
||
$(document).ready(function(){ | ||
|
||
$(".btn-key").zclip({ | ||
path: "{{MEDIA_URL}}ZeroClipboard.swf", | ||
copy: function(){ | ||
return $(this).attr('x-key'); | ||
}, | ||
afterCopy: function() { | ||
$('.btn-key').removeClass('btn-success'); | ||
$('.btn-key').html('{% trans "Copy" %}'); | ||
$(this).addClass('btn-success'); | ||
|
||
$(this).html('{% trans "Copied !" %}'); | ||
} | ||
}); | ||
}); | ||
</script> | ||
|
||
{% endblock %} |
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
Oops, something went wrong.