started adding review comment editing to code_revision.php

This commit is contained in:
hyung-hwan 2015-01-28 13:52:30 +00:00
parent 7dabb672e3
commit f54a47e46b

View File

@ -6,6 +6,8 @@
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/common.css')?>" /> <link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/common.css')?>" />
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/code.css')?>" /> <link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/code.css')?>" />
<script type="text/javascript" src="<?=base_url_make('/js/creole.js')?>"></script>
<script type="text/javascript" src="<?=base_url_make('/js/jquery.min.js')?>"></script> <script type="text/javascript" src="<?=base_url_make('/js/jquery.min.js')?>"></script>
<script type="text/javascript" src="<?=base_url_make('/js/jquery-ui.min.js')?>"></script> <script type="text/javascript" src="<?=base_url_make('/js/jquery-ui.min.js')?>"></script>
<link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/jquery-ui.css')?>" /> <link type="text/css" rel="stylesheet" href="<?=base_url_make('/css/jquery-ui.css')?>" />
@ -64,10 +66,23 @@ $(function() {
</script> </script>
<script type="text/javascript">
function render_wiki()
{
creole_render_wiki (
"code_revision_mainarea_result_msg_text",
"code_revision_mainarea_result_msg",
"<?=site_url()?>/wiki/show/<?=$project->id?>/",
""
);
}
</script>
<title><?=htmlspecialchars($project->name)?></title> <title><?=htmlspecialchars($project->name)?></title>
</head> </head>
<body> <body onload="render_wiki()">
<div class="content" id="code_revision_content"> <div class="content" id="code_revision_content">
@ -186,11 +201,13 @@ $history = $file['history'];
<?php endif; ?> <?php endif; ?>
</div> </div>
<pre id="code_revision_mainarea_result_msg"> <div id="code_revision_mainarea_result_msg">
<?=htmlspecialchars($history['msg'])?> <pre id="code_revision_mainarea_result_msg_text" style="visibility: hidden;">
<?php print htmlspecialchars($history['msg']); ?>
</pre> </pre>
</div>
<div class="title">Files updated</div> <div class="title"><?=$this->lang->line('Files')?></div>
<table id="code_revision_mainarea_result_table"> <table id="code_revision_mainarea_result_table">
<?php <?php
/* /*
@ -227,7 +244,37 @@ $history = $file['history'];
} }
?> ?>
</table> </table>
</div> <!-- code_revision_mainarea_body -->
<div class="title"><?=$this->lang->line('Comment')?></div>
<div id="code_revision_mainarea_review_comment">
<?php
//foreach ($review_comments as $rc)
//{
//
// delete box, edit box???
//}
print form_open("code/revision/{$project->id}${revreqroot}", 'id="code_revision_review_comment_form"');
print form_textarea (
array ('name' => 'edit_review_comment',
'value' => '', 'rows'=> 20, 'cols' => 120,
'id' => 'code_revision_edit_review_comment')
);
print "<br/>";
//print form_submit ('submit_review_comment', $this->lang->line('Submit'));
print form_submit ('submit_review_comment', 'Submit');
print form_close();
?>
</div> <!-- code_revision_mainarea_review_comment -->
</div> <!-- code_revision_mainarea_result -->
</div> <!-- code_revision_mainarea --> </div> <!-- code_revision_mainarea -->
@ -251,6 +298,7 @@ $history = $file['history'];
'value' => $history['msg'], 'rows'=> 10, 'cols' => 70, 'value' => $history['msg'], 'rows'=> 10, 'cols' => 70,
'id' => 'code_revision_edit_log_message') 'id' => 'code_revision_edit_log_message')
) )
?> ?>
<?=form_close()?> <?=form_close()?>
</div> </div>