mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	set role to button for each nav-item
This commit is contained in:
		
							parent
							
								
									23c6a6b5d9
								
							
						
					
					
						commit
						c9e61ccf30
					
				|  | @ -638,7 +638,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; | |||
| 	} /* }}} */ | ||||
| 
 | ||||
| 	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"; | ||||
| 		echo '<li class="nav-item '.($isactive ? 'active' : '').'"><a class="nav-link '.($isactive ? 'active' : '').'" data-target="#'.$name.'" data-toggle="tab" role="button">'.$title.'</a></li>'."\n"; | ||||
| 	} /* }}} */ | ||||
| 
 | ||||
| 	protected function showStartPaneContent($name, $isactive) { /* {{{ */ | ||||
|  |  | |||
|  | @ -97,8 +97,8 @@ $(document).ready(function()	{ | |||
| 		$version = $this->params['version']; | ||||
| ?>
 | ||||
| 		<ul class="nav nav-pills" id="preview-tab" role="tablist"> | ||||
| 		  <li class="active"><a data-target="#preview_markdown" data-toggle="tab" role="tab"><?php printMLText('preview_markdown'); ?></a></li>
 | ||||
| 		  <li><a data-target="#preview_plain" data-toggle="tab" role="tab"><?php printMLText('preview_plain'); ?></a></li>
 | ||||
| 		  <li class="nav-item active"><a class="nav-link active" data-target="#preview_markdown" data-toggle="tab" role="button"><?php printMLText('preview_markdown'); ?></a></li>
 | ||||
| 		  <li class="nav-item"><a class="nav-link" data-target="#preview_plain" data-toggle="tab" role="button"><?php printMLText('preview_plain'); ?></a></li>
 | ||||
| 		</ul> | ||||
| 		<div class="tab-content"> | ||||
| 		  <div class="tab-pane active" id="preview_markdown" role="tabpanel"> | ||||
|  |  | |||
|  | @ -286,8 +286,8 @@ class SeedDMS_View_ExtensionMgr extends SeedDMS_Theme_Style { | |||
| 		$this->columnStart(8); | ||||
| ?>
 | ||||
| 		<ul class="nav nav-pills" id="extensionstab" role="tablist"> | ||||
| 			<li class="nav-item <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>"><a class="nav-link <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>" data-target="#installed" data-toggle="tab" role="tab"><?= getMLText('extension_mgr_installed'); ?></a></li>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'repository') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'repository') echo 'active'; ?>" data-target="#repository" data-toggle="tab" role="tab"><?= getMLText('extension_mgr_repository'); ?></a></li>
 | ||||
| 			<li class="nav-item <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>"><a class="nav-link <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>" data-target="#installed" data-toggle="tab" role="button"><?= getMLText('extension_mgr_installed'); ?></a></li>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'repository') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'repository') echo 'active'; ?>" data-target="#repository" data-toggle="tab" role="button"><?= getMLText('extension_mgr_repository'); ?></a></li>
 | ||||
| 		</ul> | ||||
| 		<div class="tab-content"> | ||||
| 			<div class="tab-pane <?php if(!$currenttab || $currenttab == 'installed') echo 'active'; ?>" id="installed" role="tabpanel"> | ||||
|  |  | |||
|  | @ -197,11 +197,11 @@ function typeahead() { /* {{{ */ | |||
| 		} | ||||
| ?>
 | ||||
|   <ul class="nav nav-pills" id="searchtab"> | ||||
| 	  <li class="nav-item <?php echo ($fullsearch == false) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($fullsearch == false) ? 'active' : ''; ?>" data-target="#database" data-toggle="tab"><?php printMLText('databasesearch'); ?></a></li>
 | ||||
| 	  <li class="nav-item <?php echo ($fullsearch == false) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($fullsearch == false) ? 'active' : ''; ?>" data-target="#database" data-toggle="tab" role="button"><?php printMLText('databasesearch'); ?></a></li>
 | ||||
| <?php | ||||
| 		if($enablefullsearch) { | ||||
| ?>
 | ||||
| 	  <li class="nav-item <?php echo ($fullsearch == true) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($fullsearch == true) ? 'active' : ''; ?>" data-target="#fulltext" data-toggle="tab"><?php printMLText('fullsearch'); ?></a></li>
 | ||||
| 	  <li class="nav-item <?php echo ($fullsearch == true) ? 'active' : ''; ?>"><a class="nav-link <?php echo ($fullsearch == true) ? 'active' : ''; ?>" data-target="#fulltext" data-toggle="tab" role="button"><?php printMLText('fullsearch'); ?></a></li>
 | ||||
| <?php | ||||
| 		} | ||||
| ?>
 | ||||
|  |  | |||
|  | @ -891,33 +891,33 @@ $(document).ready( function() { | |||
| 			echo $txt; | ||||
| ?>
 | ||||
|     <ul class="nav nav-pills" id="docinfotab" role="tablist"> | ||||
| 		  <li class="nav-item <?php if(!$currenttab || $currenttab == 'docinfo') echo 'active'; ?>"><a class="nav-link <?php if(!$currenttab || $currenttab == 'docinfo') echo 'active'; ?>" data-target="#docinfo" data-toggle="tab" role="tab"><?php printMLText('current_version'); ?></a></li>
 | ||||
| 		  <li class="nav-item <?php if(!$currenttab || $currenttab == 'docinfo') echo 'active'; ?>"><a class="nav-link <?php if(!$currenttab || $currenttab == 'docinfo') echo 'active'; ?>" data-target="#docinfo" data-toggle="tab" role="button"><?php printMLText('current_version'); ?></a></li>
 | ||||
| 			<?php if (count($versions)>1) { ?>
 | ||||
| 		  <li class="nav-item <?php if($currenttab == 'previous') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'previous') echo 'active'; ?>" data-target="#previous" data-toggle="tab" role="tab"><?php printMLText('previous_versions'); ?></a></li>
 | ||||
| 		  <li class="nav-item <?php if($currenttab == 'previous') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'previous') echo 'active'; ?>" data-target="#previous" data-toggle="tab" role="button"><?php printMLText('previous_versions'); ?></a></li>
 | ||||
| <?php | ||||
| 			} | ||||
| 			if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') { | ||||
| 				if((is_array($reviewStatus) && count($reviewStatus)>0) || | ||||
| 					(is_array($approvalStatus) && count($approvalStatus)>0)) { | ||||
| ?>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'revapp') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'revapp') echo 'active'; ?>" data-target="#revapp" data-toggle="tab" role="tab"><?php if($workflowmode == 'traditional') echo getMLText('reviewers')."/"; echo getMLText('approvers'); ?></a></li>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'revapp') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'revapp') echo 'active'; ?>" data-target="#revapp" data-toggle="tab" role="button"><?php if($workflowmode == 'traditional') echo getMLText('reviewers')."/"; echo getMLText('approvers'); ?></a></li>
 | ||||
| <?php | ||||
| 				} | ||||
| 			} elseif($workflowmode == 'advanced') { | ||||
| 				if($workflow) { | ||||
| ?>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'workflow') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'workflow') echo 'active'; ?>" data-target="#workflow" data-toggle="tab" role="tab"><?php echo getMLText('workflow'); ?></a></li>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'workflow') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'workflow') echo 'active'; ?>" data-target="#workflow" data-toggle="tab" role="button"><?php echo getMLText('workflow'); ?></a></li>
 | ||||
| <?php | ||||
| 				} | ||||
| 			} | ||||
| ?>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'attachments') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'attachments') echo 'active'; ?>" data-target="#attachments" data-toggle="tab" role="tab"><?php printMLText('linked_files'); echo (count($files)) ? " (".count($files).")" : ""; ?></a></li>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'links') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'links') echo 'active'; ?>" data-target="#links" data-toggle="tab" role="tab"><?php printMLText('linked_documents'); echo (count($links) || count($reverselinks)) ? " (".count($links)."/".count($reverselinks).")" : ""; ?></a></li>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'attachments') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'attachments') echo 'active'; ?>" data-target="#attachments" data-toggle="tab" role="button"><?php printMLText('linked_files'); echo (count($files)) ? " (".count($files).")" : ""; ?></a></li>
 | ||||
| 			<li class="nav-item <?php if($currenttab == 'links') echo 'active'; ?>"><a class="nav-link <?php if($currenttab == 'links') echo 'active'; ?>" data-target="#links" data-toggle="tab" role="button"><?php printMLText('linked_documents'); echo (count($links) || count($reverselinks)) ? " (".count($links)."/".count($reverselinks).")" : ""; ?></a></li>
 | ||||
| <?php | ||||
| 			$tabs = $this->callHook('extraTabs', $document); | ||||
| 			if($tabs) { | ||||
| 				foreach($tabs as $tabid=>$tab) { | ||||
| 					echo '<li class="nav-item '.($currenttab == $tabid ? 'active' : '').'"><a class="nav-link '.($currenttab == $tabid ? 'active' : '').'" data-target="#'.$tabid.'" data-toggle="tab" role="tab">'.$tab['title'].'</a></li>'; | ||||
| 					echo '<li class="nav-item '.($currenttab == $tabid ? 'active' : '').'"><a class="nav-link '.($currenttab == $tabid ? 'active' : '').'" data-target="#'.$tabid.'" data-toggle="tab" role="button">'.$tab['title'].'</a></li>'; | ||||
| 				} | ||||
| 			} | ||||
| ?>
 | ||||
|  |  | |||
|  | @ -641,7 +641,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);; | |||
| 	} /* }}} */ | ||||
| 
 | ||||
| 	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"; | ||||
| 		echo '<li class="nav-item '.($isactive ? 'active' : '').'"><a class="nav-link '.($isactive ? 'active' : '').'" data-target="#'.$name.'" data-toggle="tab" role="button">'.$title.'</a></li>'."\n"; | ||||
| 	} /* }}} */ | ||||
| 
 | ||||
| 	protected function showStartPaneContent($name, $isactive) { /* {{{ */ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann