Revert "added new tab linking and corrected redirect"

This reverts commit 4eb5a4fd3f.
This commit is contained in:
Finn 2017-12-04 12:27:53 +00:00
parent 4eb5a4fd3f
commit 8b91c3b3c8
5 changed files with 6 additions and 6 deletions

View file

@ -139,7 +139,7 @@ sub valid_edit {
$c->flash( success => 'Updated Organisation' );
}
};
$c->redirect_to( '/admin/organisations/' . $c->param('id') );
$c->redirect_to( '/admin/organisations/');
}
sub merge_list {

View file

@ -16,11 +16,11 @@
<div class="card">
<h3 class="card-header">
Organisations
<a href="<%= url_for . '/add' %>" class="btn btn-success" style="float: right" target="_blank">Add Organisation</a>
<a href="<%= url_for . '/add' %>" class="btn btn-success" style="float: right">Add Organisation</a>
</h3>
<div class="list-group list-group-flush">
% for my $org_result ($orgs_rs->all) {
<a href="<%= url_for . '/' . $org_result->id %>" class="list-group-item list-group-item-action d-flex justify-content-between" target="_blank">
<a href="<%= url_for . '/' . $org_result->id %>" class="list-group-item list-group-item-action d-flex justify-content-between">
<div>
%= $org_result->name
</div>

View file

@ -148,7 +148,7 @@ function initMap() {
</h3>
<div class="list-group list-group-flush">
% for my $transaction ( $transactions->all ) {
<a href="<%= url_for '/admin/transactions/' . $transaction->id %>" class="list-group-item list-group-item-action" target="_blank">
<a href="<%= url_for '/admin/transactions/' . $transaction->id %>" class="list-group-item list-group-item-action">
<div class="row text-center">
<div class="col">From: <%= $transaction->buyer->name %></div>
<div class="col">To: <%= $transaction->seller->name %></div>

View file

@ -19,7 +19,7 @@
</h3>
<div class="list-group list-group-flush">
% for my $transaction ( $transactions->all ) {
<a href="<%= url_for . '/' . $transaction->id %>" class="list-group-item list-group-item-action" target="_blank">
<a href="<%= url_for . '/' . $transaction->id %>" class="list-group-item list-group-item-action">
<div class="row">
<div class="col-md-4 row">
<div class="col my-auto">

View file

@ -13,7 +13,7 @@
% }
<div class="list-group">
% for my $user ($user_rs->all) {
<a href="<%= url_for . '/' . $user->id %>" class="list-group-item list-group-item-action" target="_blank">
<a href="<%= url_for . '/' . $user->id %>" class="list-group-item list-group-item-action">
<div class="row">
<div class="col-4">
%= $user->name