Skip to content
Snippets Groups Projects
Commit 4ba8facc authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

CI Webgui: toggle replacements

parent bb1ad083
No related branches found
No related tags found
No related merge requests found
......@@ -3288,12 +3288,16 @@ class project extends base {
'type' => 'markup',
'value' => '<div style="clear: both; height: 2em;"></div>'
. '<div class="form-group">'
. '<h3>'.t("replacements").' ('.($aReplacements ? count($aReplacements):0).')</h3>'
. '<a href="#" onclick="$(\'.divreplacements-'.$sPhase.'\').slideToggle(); return false;"><h3>'.t("replacements").' ('.($aReplacements ? count($aReplacements):0).')</h3></a>'
. t('replacements-info')
. '</div>'
);
if ($aReplacements){
$aForms["setup"]["form"]['input' . $i++] = array(
'type' => 'markup',
'value' => '<div class="divreplacements-'.$sPhase.'" style="display: none;">'
);
foreach($aReplacements as $sFile=>$aFields){
$tTplFile=basename($sFile);
$aValues = (array_key_exists("replace", $this->_aPrjConfig["phases"][$sPhase])
......@@ -3336,6 +3340,10 @@ class project extends base {
);
}
}
$aForms["setup"]["form"]['input' . $i++] = array(
'type' => 'markup',
'value' => '</div>'
);
} else {
$aForms["setup"]["form"]['input' . $i++] = array(
'type' => 'markup',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment