}
public function createComponentListElement($sender, $param) {
+ if (!is_array($param->Item->Data)) {
+ // skip parent repeater items
+ return;
+ }
$conts = array(self::MENU_CONTROL, self::ACTIONS_CONTROL);
for ($i = 0; $i < count($conts); $i++) {
$controls = array(self::CHILD_CONTROL, $conts[$i]);
ClientSide.OnLoading="BaculaConfig.loader_start(sender.options.ID);"
ClientSide.OnComplete="BaculaConfig.set_config_items(sender.options.ID);"
Attributes.onclick="return BaculaConfig.unset_config_items(this.id);"
- Text="<strong><%=$this->Data['label']%></strong>: <%=$this->Data['component_name']%>"
+ Text="<strong><%#$this->Data['label']%></strong>: <%#$this->Data['component_name']%>"
Style="text-decoration: none"
/>
<i class="fa fa-sync w3-spin" style="display: none"><i/>
}
public function createResourceListElement($sender, $param) {
+ if (!is_array($param->Item->Data)) {
+ // skip parent repeater items
+ return;
+ }
$control = $this->getChildControl($param->Item, self::CHILD_CONTROL);
if (is_object($control)) {
$control->setHost($param->Item->Data['host']);
var t = event.target || event.srcElement;
var nn = t.nodeName.toUpperCase();
var cmsg = '<%[ Are you sure that you want to remove %s resource "%s"? ]%>';
- cmsg = cmsg.replace('%s', '<%=$this->Data['resource_type']%>');
- cmsg = cmsg.replace('%s', '<%=$this->Data['resource_name']%>');
+ cmsg = cmsg.replace('%s', '<%#$this->Data['resource_type']%>');
+ cmsg = cmsg.replace('%s', '<%#$this->Data['resource_name']%>');
if ((/^<%=$this->RemoveResource->ClientID%>/.test(t.id) || nn == 'I') && confirm(cmsg)) {
return true;
}
ClientSide.OnLoading="BaculaConfig.loader_start(sender.options.ID);"
ClientSide.OnComplete="BaculaConfig.set_config_items(sender.options.ID);"
Attributes.onclick="return BaculaConfig.unset_config_items(this.id);"
- Text="<strong><%=$this->Data['resource_type']%></strong>: <%=$this->Data['resource_name']%>"
+ Text="<strong><%#$this->Data['resource_type']%></strong>: <%#$this->Data['resource_name']%>"
Style="text-decoration: none"
/>
<i class="fa fa-sync w3-spin" style="display: none"></i>
</com:TActiveLinkButton>
<i class="fa fa-sync w3-spin" style="display: none"><i/>
</td>
- <td style="width: 45%"><%[ IP Address/Hostname: ]%><strong> <%=$this->getParent()->getParent()->config[$this->Data]['address']%></strong></td>
- <td style="width: 10%"><%[ Port: ]%><strong> <%=$this->getParent()->getParent()->config[$this->Data]['port']%></strong>
+ <td style="width: 45%"><%[ IP Address/Hostname: ]%><strong> <%#$this->getParent()->getParent()->config[$this->Data]['address']%></strong></td>
+ <td style="width: 10%"><%[ Port: ]%><strong> <%#$this->getParent()->getParent()->config[$this->Data]['port']%></strong>
</td>
<td style="width: 15%"><com:TActiveLinkButton
ID="RemoveHost"
}
public function createDirectiveListElement($sender, $param) {
+ if (!is_array($param->Item->Data)) {
+ // skip parent repeater items
+ return;
+ }
for ($i = 0; $i < count($this->directive_types); $i++) {
$control = $this->getChildControl($param->Item, $this->directive_types[$i]);
if (is_object($control)) {
>
<i class="fa fa-trash-alt"></i> <%[ Remove ]%>
</com:TActiveLinkButton>
- <h2><%=$this->Data['directive_name']%></h2>
+ <h2><%#$this->Data['directive_name']%></h2>
<com:Application.Web.Portlets.DirectiveTextBox />
<com:Application.Web.Portlets.MessageTypes ID="Types" />
</div>
}
public function createTypeListElement($sender, $param) {
+ if (!is_array($param->Item->Data)) {
+ // skip parent repeater items
+ return;
+ }
$control = $this->getChildControl($param->Item, 'DirectiveCheckBox');
if (is_object($control)) {
$control->setHost($param->Item->Data['host']);