Change h2 when copying an experiment. It's more obvious this way.
This commit is contained in:
@@ -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'));?> » <?=anchor('projects/detail/' . $project['id'], $project['name']);?> » <?=sprintf(_('Create copy of %s'), $copy['name']);?></h2>
|
||||||
|
<?php
|
||||||
|
else:
|
||||||
|
?>
|
||||||
<h2><?=anchor('projects', _('Projects'));?> » <?=anchor('projects/detail/' . $project['id'], $project['name']);?> » <?=_('Create experiment');?></h2>
|
<h2><?=anchor('projects', _('Projects'));?> » <?=anchor('projects/detail/' . $project['id'], $project['name']);?> » <?=_('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))
|
||||||
|
|||||||
Reference in New Issue
Block a user