Bugzilla – Attachment 71120 Details for
Bug 4078
Add the ability to customize and display the symbol for a currency
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 4078: Add the checkbox to the UI
Bug-4078-Add-the-checkbox-to-the-UI.patch (text/plain), 2.53 KB, created by
Jonathan Druart
on 2018-02-01 17:43:15 UTC
(
hide
)
Description:
Bug 4078: Add the checkbox to the UI
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-01 17:43:15 UTC
Size:
2.53 KB
patch
obsolete
>From 1310de2ce317784395dc9902d922b924bee1ebc8 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 1 Feb 2018 14:31:25 -0300 >Subject: [PATCH] Bug 4078: Add the checkbox to the UI > >--- > admin/currency.pl | 3 +++ > koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt | 8 ++++++++ > 2 files changed, 11 insertions(+) > >diff --git a/admin/currency.pl b/admin/currency.pl >index 171949850b..4305454802 100755 >--- a/admin/currency.pl >+++ b/admin/currency.pl >@@ -57,6 +57,7 @@ if ( $op eq 'add_form' ) { > my $isocode = $input->param('isocode'); > my $rate = $input->param('rate'); > my $active = $input->param('active'); >+ my $p_sep_by_space = $input->param('p_sep_by_space'); > my $is_a_modif = $input->param('is_a_modif'); > > if ($is_a_modif) { >@@ -65,6 +66,7 @@ if ( $op eq 'add_form' ) { > $currency->isocode($isocode); > $currency->rate($rate); > $currency->active($active); >+ $currency->p_sep_by_space($p_sep_by_space); > eval { $currency->store; }; > if ($@) { > push @messages, { type => 'error', code => 'error_on_update' }; >@@ -78,6 +80,7 @@ if ( $op eq 'add_form' ) { > isocode => $isocode, > rate => $rate, > active => $active, >+ p_sep_by_space => $p_sep_by_space, > } > ); > eval { $currency->store; }; >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >index 9d73653df7..579d714722 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt >@@ -94,6 +94,14 @@ > <span class="label">Last updated: </span>[% currency.timestamp | $KohaDates %] > </li> > <li> >+ <label for="p_sep_by_space">Space separation between symbol and value: </label> >+ [% IF currency.p_sep_by_space %] >+ <input type="checkbox" id="p_sep_by_space" name="p_sep_by_space" value="1" checked="checked" /> >+ [% ELSE %] >+ <input type="checkbox" id="p_sep_by_space" name="p_sep_by_space" value="1" /> >+ [% END %] >+ </li> >+ <li> > <label for="active">Active: </label> > [% IF currency.active %] > <input type="checkbox" id="active" name="active" value="1" checked="checked" /> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4078
:
7308
|
43320
|
45877
|
45878
|
45888
|
71118
|
71119
|
71120
|
71121
|
71122
|
71123
|
72378
|
72379
|
72380
|
72381
|
72382
|
72383
|
72511
|
72512
|
72513
|
72514
|
72515
|
72516
|
73196