added new tab linking and corrected redirect
This commit is contained in:
parent
d8403b8b11
commit
0b48c69612
5 changed files with 6 additions and 6 deletions
|
@ -139,7 +139,7 @@ sub valid_edit {
|
|||
$c->flash( success => 'Updated Organisation' );
|
||||
}
|
||||
};
|
||||
$c->redirect_to( '/admin/organisations/');
|
||||
$c->redirect_to( '/admin/organisations/' . $c->param('id') );
|
||||
}
|
||||
|
||||
sub merge_list {
|
||||
|
|
|
@ -16,11 +16,11 @@
|
|||
<div class="card">
|
||||
<h3 class="card-header">
|
||||
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>
|
||||
<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">
|
||||
<a href="<%= url_for . '/' . $org_result->id %>" class="list-group-item list-group-item-action d-flex justify-content-between" target="_blank">
|
||||
<div>
|
||||
%= $org_result->name
|
||||
</div>
|
||||
|
|
|
@ -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">
|
||||
<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="col">From: <%= $transaction->buyer->name %></div>
|
||||
<div class="col">To: <%= $transaction->seller->name %></div>
|
||||
|
|
|
@ -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">
|
||||
<a href="<%= url_for . '/' . $transaction->id %>" class="list-group-item list-group-item-action" target="_blank">
|
||||
<div class="row">
|
||||
<div class="col-md-4 row">
|
||||
<div class="col my-auto">
|
||||
|
|
|
@ -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">
|
||||
<a href="<%= url_for . '/' . $user->id %>" class="list-group-item list-group-item-action" target="_blank">
|
||||
<div class="row">
|
||||
<div class="col-4">
|
||||
%= $user->name
|
||||
|
|
Reference in a new issue