New #0002193: Possibilité d'ajouter directement une note aux opérations

Cosmetic : change icon for enlarging operation label
This commit is contained in:
sparkyx 2022-09-11 13:32:44 +02:00
parent faa8543de2
commit 6bc9077b49
9 changed files with 374 additions and 10 deletions

View file

@ -0,0 +1,37 @@
<?php
/*
* This file is part of NOALYSS.
* NOALYSS is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* NOALYSS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* Copyright Author Dany De Bontridder danydb@noalyss.eu 2002-2022
*/
/**
* \brief display input textarea for operation note
* \see Acc_Operation_Note
*/
?>
<div class="inner_box" style="display:none;width:40em" id="jrn_note_div">
<?=\HtmlInput::title_box(_("Note"),"jrn_note_div","hide")?>
<textarea id="jrn_note_input" name= "jrn_note_input" class="input_text" cols="60" rows="7"><?=$p_current?></textarea>
<ul class="aligned-block">
<li>
<?=HtmlInput::button_hide("jrn_note_div")?>
</li>
</ul>
</div>

View file

@ -67,6 +67,16 @@
<?php echo $f_desc, Icon_Action::longer("e_comm",20)?>
</td>
</tr>
<tr>
<td>
<?=_("Note")?>
<?php echo Icon_Action::show_note('jrn_note_div') ?>
</td>
<td >
<pre id="jrn_note_td"></pre>
</td>
</tr>
<tr>
<td>
<?=_("Devise")?>
@ -78,7 +88,11 @@
</td>
</tr>
</table>
<?php
// note for operation
$note=(isset($p_array['jrn_note_input']))?$p_array['jrn_note_input']:'';
Acc_Operation_Note::input($note)
?>
<br>
<?php