FOLLOW-UP: improve appearance
This commit is contained in:
parent
7b0104c86d
commit
14304f9830
3 changed files with 56 additions and 17 deletions
|
|
@ -321,8 +321,13 @@ function small(p_id_textarea){
|
|||
}
|
||||
</script>
|
||||
<p style="margin-left:5%;">
|
||||
<?php echo $title->input();
|
||||
?>
|
||||
<?php if ( ! $readonly) : ?>
|
||||
<?php echo $title->input(); ?>
|
||||
<?php else: ?>
|
||||
<span style="font-size:2rem;font-weight:bold;">
|
||||
<?php echo $title->value; ?>
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
<div class="nicEdit-main">
|
||||
<?php
|
||||
|
|
@ -408,11 +413,18 @@ function small(p_id_textarea){
|
|||
}
|
||||
}
|
||||
|
||||
//---------------------------------- Comment -----------------------------------------------------------------------
|
||||
|
||||
//---------------------------------- -----------------------------------
|
||||
//Comment
|
||||
//---------------------------------- -----------------------------------
|
||||
|
||||
//------------------------------------------------
|
||||
// Single comment to edit
|
||||
//------------------------------------------------
|
||||
|
||||
if ( Document_Option::can_add_comment($ag_id) &&
|
||||
Document_Option::option_comment($this->dt_id) == "ONE_EDIT" )
|
||||
{
|
||||
echo '<div class="fu_comment_div">';
|
||||
if (count($acomment) > 1 ) {
|
||||
echo h2(_("Commentaire"));
|
||||
$comment=new ITextarea("ag_comment_edit");
|
||||
|
|
@ -451,14 +463,18 @@ function small(p_id_textarea){
|
|||
}
|
||||
echo '</span>';
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
if ( count($acomment) > 0
|
||||
//------------------------------------------------
|
||||
// Multiple comments
|
||||
//------------------------------------------------
|
||||
|
||||
if ( count($acomment) > 0
|
||||
&& Document_Option::can_add_comment($ag_id)
|
||||
&& Document_Option::option_comment($this->dt_id) == "SOME_FIXED")
|
||||
{
|
||||
echo h2(_("Commentaire"));
|
||||
|
||||
echo '<div class="fu_comment_div">';
|
||||
for( $c=1;$c<count($acomment);$c++){
|
||||
$m_desc=_('Commentaire');
|
||||
$comment="";
|
||||
|
|
@ -522,6 +538,7 @@ function small(p_id_textarea){
|
|||
if ($p_view == 'UPD') {
|
||||
|
||||
}
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue