Extend project and trial management
This commit is contained in:
@@ -1,93 +0,0 @@
|
||||
<?php $this->load->view('header'); ?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="title">
|
||||
<h2><?= _('Project details') ?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<h3><?= _('Description') ?></h3>
|
||||
<div class="editInPlace"><?=nl2br($project['description']);?></div>
|
||||
<p></p>
|
||||
|
||||
<h3><?= _('Trials') ?></h3>
|
||||
<table class="tableList">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?= _('Trial') ?></th>
|
||||
<th scope="col"><?= _('Jobs') ?></th>
|
||||
<th scope="col"><?= _('Actions') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
if(count($trials) > 0):
|
||||
foreach($trials as $trial):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?=site_url('trials/'.$trial['id'])?>"title="<?= sprintf(_('Show trial "%s"'), $trial['name'])?>"><?=$trial['name']?></a></td>
|
||||
<td><span class="active"><?= _('Completed') ?></span></td>
|
||||
<td>
|
||||
<a href="<?=site_url('trials/results/'.$trial['id'])?>" title="<?= sprintf(_('Show results for the trial "%s"'), $trial['name'])?>"><?= _('Show results') ?></a> |
|
||||
<a href="<?=site_url('trials/edit/'.$trial['id'])?>" title="<?= sprintf(_('Edit trial "%s"'), $trial['name']) ?>"><?= _('Edit') ?></a> |
|
||||
<a href="<?=site_url('trials/delete/'.$trial['id'])?>" title="<?= sprintf(_('Delete trial "%s"'), $trial['name']) ?>"><?= _('Delete') ?></a></td>
|
||||
</tr>
|
||||
<?
|
||||
endforeach;
|
||||
else:
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3"><?= _('No trials available.') ?></td>
|
||||
</tr>
|
||||
<?
|
||||
endif;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p><a class="button add" href="<?=site_url('trials/create/'.$project['id'])?>"><?= _('Create a new trial') ?></a>
|
||||
</div>
|
||||
|
||||
<div class="title">
|
||||
<h2><?= _('Recent jobs') ?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<table class="tableList">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?= _('Trial') ?></th>
|
||||
<th scope="col"><?= _('Finished') ?></th>
|
||||
<th scope="col"><?= _('Actions') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?
|
||||
if(count($jobsDone) > 0):
|
||||
foreach($jobsDone as $job):
|
||||
?>
|
||||
<tr>
|
||||
<td>Versuchsname</td>
|
||||
<td>Heute, 09:32</td>
|
||||
<td>
|
||||
<a href="<?=site_url('trials/results/'.$trial['id'])?>" title="<?= sprintf(_('Show results for the trial "%s"'), $trial['name'])?>"><?= _('Show results') ?></a> |
|
||||
<a href="<?=site_url('trials/edit/'.$trial['id'])?>" title="<?= sprintf(_('Edit trial "%s"'), $trial['name']) ?>"><?= _('Edit') ?></td>
|
||||
</tr>
|
||||
<?
|
||||
endforeach;
|
||||
else:
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3"><?= _('No jobs found.') ?></td>
|
||||
</tr>
|
||||
<?
|
||||
endif;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer'); ?>
|
||||
@@ -1,39 +0,0 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="title">
|
||||
<h2><?= _('Project overview') ?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<table class="tableList paginated sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?= _('Project') ?></th>
|
||||
<th scope="col"><?= _('Owner') ?></th>
|
||||
<th scope="col"><?= _('Jobs') ?></th>
|
||||
<th scope="col"><?= _('Actions') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($projects as $project):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?=site_url('projects/detail/' . $project['id'])?>"><abbr title="<?=$project['description']?>"><?=$project['name']?></abbr></a></td>
|
||||
<td><?=$project['firstname'] . " " . $project['lastname']?></td>
|
||||
<td><span class="active"><?= _('Successfully finished') ?></span></td>
|
||||
<td><a href="#"><?= _('Show results') ?></a> | <?=anchor('projects/delete/' . $project['id'], _('Delete'));?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer');?>
|
||||
95
application/views/projects/detail.php
Normal file
95
application/views/projects/detail.php
Normal file
@@ -0,0 +1,95 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="title">
|
||||
<h2><?=_('Project details');?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<h3><?=_('Description');?></h3>
|
||||
<div class="editInPlace"><?=auto_typography($project['description']);?></div>
|
||||
<p></p>
|
||||
|
||||
<h3><?=_('Trials');?></h3>
|
||||
<table class="tableList">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?=_('Trial');?></th>
|
||||
<th scope="col"><?=_('Jobs');?></th>
|
||||
<th scope="col"><?=_('Actions');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (count($trials) > 0):
|
||||
foreach ($trials as $trial):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?=site_url('trials/' . $trial['id']);?>" title="<?=sprintf(_("Show trial '%s'"), $trial['name']);?>"><?=$trial['name'];?></a></td>
|
||||
<td><span class="active"><?=_('Completed');?></span></td>
|
||||
<td>
|
||||
<a href="<?=site_url('trials/results/' . $trial['id']);?>" title="<?=sprintf(_('Show results for the trial "%s"'), $trial['name']);?>"><?=_('Show results');?></a> |
|
||||
<a href="<?=site_url('trials/create/' . $project['id'] . '/' . $trial['id']);?>" title="<?=sprintf(_('Copy trial "%s"'), $trial['name']);?>"><?=_('Copy');?></a> |
|
||||
<a href="<?=site_url('trials/edit/' . $trial['id']);?>" title="<?=sprintf(_('Edit trial "%s"'), $trial['name']);?>"><?=_('Edit');?></a> |
|
||||
<a href="<?=site_url('trials/delete/' . $trial['id']);?>" title="<?=sprintf(_('Delete trial "%s"'), $trial['name']);?>"><?=_('Delete');?></a>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
else:
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3"><?=_('No trials available.');?></td>
|
||||
</tr>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p><a class="button add" href="<?=site_url('trials/create/' . $project['id']);?>"><?=_('Create a new trial');?></a>
|
||||
</div>
|
||||
|
||||
<div class="title">
|
||||
<h2><?=_('Recent jobs');?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<table class="tableList">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?=_('Trial');?></th>
|
||||
<th scope="col"><?=_('Finished');?></th>
|
||||
<th scope="col"><?=_('Actions');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
if (count($jobsDone) > 0):
|
||||
foreach ($jobsDone as $job):
|
||||
?>
|
||||
<tr>
|
||||
<td>Versuchsname</td>
|
||||
<td>Heute, 09:32</td>
|
||||
<td>
|
||||
<a href="<?=site_url('trials/results/' . $trial['id']);?>" title="<?= sprintf(_('Show results for the trial "%s"'), $trial['name']);?>"><?=_('Show results');?></a> |
|
||||
<a href="<?=site_url('trials/edit/' . $trial['id']);?>" title="<?= sprintf(_('Edit trial "%s"'), $trial['name']);?>"><?=_('Edit');?></td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
else:
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="3"><?=_('No jobs found.');?></td>
|
||||
</tr>
|
||||
<?php
|
||||
endif;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer');?>
|
||||
39
application/views/projects/list.php
Normal file
39
application/views/projects/list.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="title">
|
||||
<h2><?=_('Project overview');?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<table class="tableList paginated sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?=_('Project');?></th>
|
||||
<th scope="col"><?=_('Owner');?></th>
|
||||
<th scope="col"><?=_('Jobs');?></th>
|
||||
<th scope="col"><?=_('Actions');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach($projects as $project):
|
||||
?>
|
||||
<tr>
|
||||
<td><a href="<?=site_url('projects/detail/' . $project['id'] . '?active_project=' . $project['id']);?>"><abbr title="<?=$project['description'];?>"><?=$project['name'];?></abbr></a></td>
|
||||
<td><?=$project['firstname'] . " " . $project['lastname'];?></td>
|
||||
<td><span class="active"><?=_('Successfully finished');?></span></td>
|
||||
<td><a href="#"><?=_('Show results');?></a> | <?=anchor('projects/delete/' . $project['id'], _('Delete'));?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer');?>
|
||||
@@ -66,6 +66,7 @@
|
||||
?>
|
||||
<h4><?=_('Application to use for the computation');?></h4>
|
||||
<input type="hidden" name="program_id" id="program_id" value="<?=set_value('program_id');?>" />
|
||||
<?=form_error('program_id');?>
|
||||
<p>
|
||||
<?
|
||||
foreach ($programs as $program):
|
||||
|
||||
Reference in New Issue
Block a user