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

task 1462 - add foreman integration: select hostgroup (a default; each phase can override it)

parent d094ee15
No related branches found
No related tags found
No related merge requests found
......@@ -245,6 +245,7 @@
"fileprefix": "File Prefix",
"fileprefix-label": "File-Prefix <span class=\"error\"><br>Nach dem ersten Build nicht mehr änderbar!</span>",
"finished": "Beendet",
"foreman-hostgroup": "Foreman Hostgruppe",
"gotop": "Seitenanfang",
"hosts": "Hosts",
"hostname4puppet": "Hostname f&uuml;r Puppet Agent",
......
......@@ -247,6 +247,7 @@
"fileprefix": "File prefix",
"fileprefix-label": "File prefix <span class=\"error\"><br>It cannot be changed after the first build!</span>",
"finished": "Fisnished",
"foreman-hostgroup": "Foreman hostgroup",
"gotop": "top",
"hosts": "Hosts",
"hostname4puppet": "Hostname to start puppet agent",
......
......@@ -215,7 +215,7 @@ class formgen {
case "select":
// HINWEIS optgroups werden nicht unterstuezt - nur einfache Listen
$this->_checkReqiredKeys($elementData, array("name"));
$sFormElement.='<select id="' . $sId . '" class="form-control" ';
$sFormElement.='<div class="col-sm-10"><select id="' . $sId . '" class="form-control" ';
$sFormElement.=$this->_addHtmlAtrributes(explode(",", "$sDefaultAttributes,name,onchange"), $elementData);
$sFormElement.=">\n";
foreach ($elementData["options"] as $idOption => $aOptionData) {
......@@ -225,11 +225,11 @@ class formgen {
$sFormElement.=$this->_addHtmlAtrributes(explode(",", "$sDefaultAttributes,selected"), $aOptionData);
$sFormElement.='>' . $aOptionData["label"] . '</option>' . "\n";
}
$sFormElement.="</select>\n";
$sFormElement.="</select></div>\n";
if ($sLabelText) {
// $sLabelElement.='<span class="help-block">' . $sLabelText . '</span>' . "\n";
$sLabelClass=(array_key_exists("inline", $elementData) && $elementData["inline"])?"":"control-label";
$sLabelClass=(array_key_exists("inline", $elementData) && $elementData["inline"])?"":"col-sm-2";
$sLabelElement = $this->_addLabel($sLabelText, $sId, $sLabelClass);
}
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment