<com:TActiveRepeater ID="RepeaterFileSetIncludes" OnItemDataBound="createFileSetIncludes">
<prop:ItemTemplate>
<div class="w3-card-4 w3-padding w3-margin-bottom directive incexc">
- <h2><%#$this->SourceTemplateControl->getDirectiveName()%> #<%#$this->ItemIndex + 1%></h2>
+ <h3><%#$this->SourceTemplateControl->getDirectiveName()%> #<%#$this->ItemIndex + 1%></h3>
<button type="button" onmousedown="openElementOnCursor(event, '<%=$this->FileSetFileOptMenu->ClientID%>_new_fileset', 0, 20);" class="w3-button w3-green w3-margin-bottom"><i class="fa fa-plus"></i> <%[ Add ]%></button>
<com:Application.Web.Portlets.NewFileSetFileOptMenu ID="FileSetFileOptMenu" FileSetBrowserId="<%=$this->SourceTemplateControl->FSBrowser->ClientID%>" />
<com:TActiveRepeater
>
<prop:HeaderTemplate>
<div class="w3-border w3-padding w3-margin-bottom directive">
- <h2><%[ Options ]%></h2>
</prop:HeaderTemplate>
<prop:FooterTemplate>
</div>
<com:TActiveRepeater ID="RepeaterRunscriptOptions" ItemRenderer="Application.Web.Portlets.JobRunscriptRenderer">
<prop:HeaderTemplate>
<div class="w3-card-4 w3-padding w3-margin-bottom directive runscript">
- <h2>Runscript</h2>
</prop:HeaderTemplate>
<prop:FooterTemplate>
</div>
public function render($writer) {
if (self::$render_index % self::DIRECTIVE_COUNT === 0) {
- $writer->write('<h3 class="w3-left runscript_options">Runscript #' . ((self::$render_index / self::DIRECTIVE_COUNT) + 1) . '</h3><hr />');
+ $writer->write('<h3 class="w3-left runscript_options">Runscript #' . ((self::$render_index / self::DIRECTIVE_COUNT) + 1) . '</h3>');
}
self::$render_index++;
<li><com:TActiveLinkButton
ID="RunscriptItem"
OnCommand="Parent.SourceTemplateControl.newRunscriptDirective"
- ClientSide.OnComplete="var el = $('#<%=$this->RunscriptItem->ClientID%>').parents('div').find('h3.runscript_options'); BaculaConfig.scroll_to_element(el[el.length-1]);"
+ ClientSide.OnComplete="var el = $('#<%=$this->RunscriptItem->ClientID%>').parents('div').find('h3.runscript_options'); BaculaConfig.scroll_to_element(el[el.length-1], -40);"
Attributes.onclick="$(this).closest('div.config_new_runscript').hide();"
>
<i class='fa fa-plus'></i> <%[ Add Runscript block ]%>