Commit e67b2dc1 authored by Cecilia Vela Gurovic's avatar Cecilia Vela Gurovic

Bug 1720269: old_raw patches for bugs: (SmartEvidence)

Bug 1720235
Bug 1701083
Bug 1681284

behatnotneeded

Change-Id: I077001172c5f26246c5e6fab3c963d3acef3ee49
parent fc8036da
......@@ -14,32 +14,55 @@
<p>{$description|clean_html|safe}</p>
<p>{str tag="addpages" section="module.framework"}</p>
<table class="fullwidth table tablematrix" id="tablematrix">
<caption class="sr-only">{str tag="tabledesc" section="module.framework"}</caption>
<tr class="table-pager">
<td colspan="2">&nbsp;</td>
<td colspan="{$viewcount}" class="special">
<button class="btn btn-default" id="prev">
<span class="icon left icon-chevron-left" aria-hidden="true" role="presentation"></span>
Prev
<span class="sr-only">{str tag="goprevpages" section="module.framework"}</span>
</button>
<button class="btn btn-default next" id="next">
Next
<span class="icon right icon-chevron-right" aria-hidden="true" role="presentation"></span>
<span class="sr-only">{str tag="gonextpages" section="module.framework"}</span>
</button>
</td>
</tr>
<tr class="pages">
<th>&nbsp;</th>
<th>&nbsp;</th>
<th>
<span class="sr-only">{str tag="headerelements" section="module.framework"}</span>
&nbsp;
</th>
<th>
<span class="sr-only">{str tag="headercompletedcount" section="module.framework"}</span>
&nbsp;
</th>
{foreach from=$views key=vk item=view}
<th class="viewtab"><a href="{$view->fullurl}">{$view->title}</a></th>
<th class="viewtab" scope="col">
<span class="sr-only">{str tag="headerpage" section="module.framework"}</span>
<a href="{$view->fullurl}">{$view->title}</a>
</th>
{/foreach}
</tr>
{foreach from=$standards key=sk item=standard}
<tr class="standard" data-standard="{$sk}" data-toggle="collapse" aria-expanded="true">
<td colspan="{$viewcount + 2}">
<div class="shortname-container">
<span class="sr-only">{str tag="standardbegin" section="module.framework"}</span>
<span class="icon icon-chevron-down collapse-indicator right pull-right"></span>
<h3>{$standard->name}</h3>
<span class="sr-only status">{if $standard->settingstate == 'closed'}{str tag="collapsedsection" section="module.framework"}{/if}</span>
<a href="#">
<span class="sr-only action">
{if $standard->settingstate == 'closed'}
{str tag="uncollapsesection" arg1="$standard->name" section="module.framework"}
{else}
{str tag="collapsesection" arg1="$standard->name" section="module.framework"}
{/if}
</span>
</a>
<div class="matrixtooltip popover hidden">
<h3 class="popover-title">{$standard->name}</h3>
<div class="popover-content">
......@@ -55,11 +78,14 @@
<tr class="matrixlevel{$option->level} examplefor{$sk}">
<td colspan="{$viewcount + 2}" class="code">
<div class="shortname-container">
<span class="sr-only">{str tag="headerrow" section="module.framework"}</span>
{for name=foo from=0 to=$option->level step=1}
{if $dwoo.for.foo.index != $option->level}
<span class="matrixindent"></span>
{/if}
{/for} {$option->name}
{/for}
{$option->name}
<span class="sr-only">{str tag="showelementdetails" section="module.framework"}</span>
<div class="matrixtooltip popover hidden">
<h3 class="popover-title">{$option->name}</h3>
<div class="popover-content">
......@@ -72,12 +98,15 @@
{else}
<tr class="matrixlevel{$option->level} examplefor{$sk}">
<td class="code">
<div class="shortname-container">
<div class="shortname-container" tabindex="0">
<span class="sr-only">{str tag="headerrow" section="module.framework"}</span>
{for name=foo2 from=0 to=$option->level step=1}
{if $dwoo.for.foo2.index != $option->level}
<span class="matrixindent"></span>
{/if}
{/for}{$option->shortname}
{/for}
{$option->shortname}
<span class="sr-only">{str tag="showelementdetails" section="module.framework"}</span>
<div class="matrixtooltip popover hidden">
<h3 class="popover-title">{$option->name}</h3>
<div class="popover-content">
......@@ -86,15 +115,32 @@
</div>
</div>
</td>
<td class="completedcount">{if $completed[$option->id]}{$completed[$option->id]}{else}0{/if}</td>
<td class="completedcount">
<span class="sr-only">{str tag="completedcount" section="module.framework"}</span>
<span>
{if $completed[$option->id]}{$count = $completed[$option->id]}{else}{$count = 0}{/if}
{$count}
</span>
</td>
{foreach from=$views key=vk item=view}
<td class="mid"><span data-view="{$view->id}" data-option="{$option->id}"
<td class="mid">
<span data-view="{$view->id}" data-option="{$option->id}"
{if $evidence[$framework][$option->id][$view->id].state}
class="{$evidence[$framework][$option->id][$view->id].classes}" title="{$evidence[$framework][$option->id][$view->id].title}">
class="{$evidence[$framework][$option->id][$view->id].classes}" title="{$evidence[$framework][$option->id][$view->id].title}">
<a href="#"></a></span>
<span class="sr-only">{str tag="statusdetail" arg1=$view->title arg2=$evidence[$framework][$option->id][$view->id].title section="module.framework"}</span>
{else}
class="icon icon-circle dot {if !$canaddannotation}disabled{/if}">
class="icon icon-circle dot {if !$canaddannotation}disabled{/if}">
{if !$canaddannotation}
<a href="#"></a></span><span class="sr-only">
{str tag="noannotation" arg1="$view->title" arg2="$option->shortname" section="module.framework"}
</span>
{else}
<a href="#"></a></span><span class="sr-only">
{str tag="addannotation" arg1="$option->shortname" arg2="$view->title" section="module.framework"}
</span>
{/if}
{/if}
</span>
</td>
{/foreach}
</tr>
......@@ -120,4 +166,4 @@
</div>
</div>
</div>
{include file="footer.tpl"}
\ No newline at end of file
{include file="footer.tpl"}
......@@ -5,6 +5,7 @@
tr {
&.standard {
background: darken($table-bg-accent, 2%) !important;
cursor: pointer;
}
}
......@@ -143,3 +144,7 @@
}
}
}
.shortname-container {
cursor: pointer;
}
......@@ -43,6 +43,7 @@
}
}
tr[data-toggle="collapse"],
a[data-toggle="collapse"] {
&:hover .collapse-indicator,
&:focus .collapse-indicator{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment