added new tab linking and corrected redirect

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

View file

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

View file

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

View file

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

View file

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

View file

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