Change h2 when copying an experiment. It's more obvious this way.

This commit is contained in:
Karsten Heiken
2011-11-28 15:21:12 +01:00
parent 4a2d76d900
commit c04b6e688e

View File

@@ -1,13 +1,23 @@
<?php $this->load->view('header');?> <?php $this->load->view('header');?>
<div id="content"> <div id="content">
<div class="title"> <div class="title">
<?php
if(isset($copy)):
?>
<h2><?=anchor('projects', _('Projects'));?> &raquo; <?=anchor('projects/detail/' . $project['id'], $project['name']);?> &raquo; <?=sprintf(_('Create copy of %s'), $copy['name']);?></h2>
<?php
else:
?>
<h2><?=anchor('projects', _('Projects'));?> &raquo; <?=anchor('projects/detail/' . $project['id'], $project['name']);?> &raquo; <?=_('Create experiment');?></h2> <h2><?=anchor('projects', _('Projects'));?> &raquo; <?=anchor('projects/detail/' . $project['id'], $project['name']);?> &raquo; <?=_('Create experiment');?></h2>
<?php
endif;
?>
</div> </div>
<?php <?php
$form_action = site_url('experiments/create/' . $project['id']); $form_action = site_url('experiments/create/' . $project['id']);
if(isset($copy)) if(isset($copy))
$form_action .= '/' . $copy['id']; $form_action .= '/' . $copy['id'];
?> ?>
<form name="newExperiment" method="post" action="<?=$form_action;?>" enctype="multipart/form-data"> <form name="newExperiment" method="post" action="<?=$form_action;?>" enctype="multipart/form-data">
<div class="box"> <div class="box">
@@ -155,7 +165,7 @@
</div> </div>
<?php <?php
if (set_value('program_id')) if (set_value('program_id'))
$program_id = set_value('program_id'); $program_id = set_value('program_id');
elseif (isset($copy)) elseif (isset($copy))