add methods for creating panes

This commit is contained in:
Uwe Steinmann 2021-05-04 12:08:05 +02:00
parent d3674886ae
commit 30bed2abdf

View File

@ -622,6 +622,18 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
echo $content; echo $content;
} /* }}} */ } /* }}} */
protected function showPaneHeader($name, $title, $isactive) { /* {{{ */
echo '<li class="nav-item '.($isactive ? 'active' : '').'"><a class="nav-link '.($isactive ? 'active' : '').'" data-target="#'.$name.'" data-toggle="tab" role="tab">'.$title.'</a></li>'."\n";
} /* }}} */
protected function showStartPaneContent($name, $isactive) { /* {{{ */
echo '<div class="tab-pane'.($isactive ? ' active' : '').'" id="'.$name.'" role="tabpanel">';
} /* }}} */
protected function showEndPaneContent($name, $currentab) { /* {{{ */
echo '</div>';
} /* }}} */
private function folderNavigationBar($folder) { /* {{{ */ private function folderNavigationBar($folder) { /* {{{ */
$dms = $this->params['dms']; $dms = $this->params['dms'];
$accessobject = $this->params['accessobject']; $accessobject = $this->params['accessobject'];
@ -1249,7 +1261,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
foreach($config['attributes'] as $attrname=>$attrval) foreach($config['attributes'] as $attrname=>$attrval)
$content .= ' '.$attrname.'="'.$attrval.'"'; $content .= ' '.$attrname.'="'.$attrval.'"';
} }
$content .= ">".$config['title']."</a>\n"; $content .= ">".$config['title']."</a>\n";
return $content; return $content;
} /* }}} */ } /* }}} */
@ -1447,7 +1459,7 @@ $(document).ready(function() {
array( array(
'target' => 'docChooser'.$formid, 'target' => 'docChooser'.$formid,
'remote' => "../out/out.DocumentChooser.php?form=".$formid."&folderid=".$this->params['dms']->getRootFolder()->getId(), 'remote' => "../out/out.DocumentChooser.php?form=".$formid."&folderid=".$this->params['dms']->getRootFolder()->getId(),
'title' => getMLText('document') 'title' => getMLText('document').'…'
)); ));
$content .= "</div>\n"; $content .= "</div>\n";
$content .= "</div>\n"; $content .= "</div>\n";
@ -1513,7 +1525,7 @@ function folderSelected<?php echo $formid ?>(id, name) {
array( array(
'target' => 'folderChooser'.$formid, 'target' => 'folderChooser'.$formid,
'remote' => "../out/out.FolderChooser.php?form=".$formid."&mode=".$accessMode."&exclude=".$exclude, 'remote' => "../out/out.FolderChooser.php?form=".$formid."&mode=".$accessMode."&exclude=".$exclude,
'title' => getMLText('folder') 'title' => getMLText('folder').'…'
)); ));
} }
$content .= "</div>\n"; $content .= "</div>\n";
@ -1587,7 +1599,7 @@ $(document).ready(function() {
array( array(
'target' => 'keywordChooser', 'target' => 'keywordChooser',
'remote' => "../out/out.KeywordChooser.php?target=".$formName, 'remote' => "../out/out.KeywordChooser.php?target=".$formName,
'title' => getMLText('keywords') 'title' => getMLText('keywords').'…'
)); ));
$content .= ' $content .= '
</div> </div>
@ -1850,7 +1862,7 @@ $(document).ready(function() {
array( array(
'target' => 'dropfolderChooser', 'target' => 'dropfolderChooser',
'remote' => "../out/out.DropFolderChooser.php?form=".$formName."&dropfolderfile=".urlencode($dropfolderfile)."&showfolders=".$showfolders, 'remote' => "../out/out.DropFolderChooser.php?form=".$formName."&dropfolderfile=".urlencode($dropfolderfile)."&showfolders=".$showfolders,
'title' => ($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file")) 'title' => ($showfolders ? getMLText("choose_target_folder"): getMLText("choose_target_file")).'…'
)); ));
$content .= "</div>\n"; $content .= "</div>\n";
$content .= "</div>\n"; $content .= "</div>\n";