Commit 24af96c6 authored by Pat Kira's avatar Pat Kira Committed by Aaron Wells

View comments (bootstrap)

Bug 1465107: Use Bootstrap CSS Framework

Change-Id: I1651caff188da12bc26d8074d56279a665302819
parent 23c87fd8
<div class="js-blockinstance blockinstance panel panel-secondary {if $configure} configure{elseif $retractable} retractable{/if}" data-id="{$id}" id="blockinstance_{$id}{if $configure}_configure{/if}">
<h3 class="panel-heading js-heading drag-handle {if !$title}panel-heading-placeholder{/if}">
<span class="fa fa-arrows move-indicator"></span>
<span class="blockinstance-header">
{if $configure}{$configtitle}: {str tag=Configure section=view}{else}{$title|default:"[$strnotitle]"}{/if}
</span>
{if $retractable && !$configure}
<span class="fa fa-chevron-down text-watermark fa-sm pull-right"></span>
{/if}
<span class="blockinstance-controls pull-right">
<button class="keyboardmovebutton btn btn-default hidden sr-only" name="action_moveblockinstance_id_{$id}" alt="{$strmovetitletext}" data-id="{$id}">
{$strmovetitletext}
</button>
{foreach from=$movecontrols item=item}
<button class="movebutton hidden" name="action_moveblockinstance_id_{$id}_row_{$row}_column_{$item.column}_order_{$item.order}" data-id="{$id}">
{$item.title}
</button>
{/foreach}
<span class="prl pull-right btn-group btn-group-top">
{if $configurable && !$configure}
<button class="configurebutton btn btn-inverse btn-xs" name="action_configureblockinstance_id_{$id}" alt="{$strconfigtitletext}" data-id="{$id}">
<span class="fa fa-cog"></span>
</button>
{/if}
{if $configure}
<button class="deletebutton btn btn-inverse btn-xs" name="action_removeblockinstance_id_{$id}" alt="{str tag=Close}" data-id="{$id}">
<span class="fa fa-trash text-danger"></span>
</button>
</button>
{else}
<button class="deletebutton btn btn-inverse btn-xs" name="action_removeblockinstance_id_{$id}" alt="{$strremovetitletext}" data-id="{$id}">
<span class="fa fa-trash text-danger"></span>
</button>
{/if}
</span>
</span>
</h3>
<div class="block blockinstance-content js-blockinstance-content">
{$content|safe}
</div>
<h3 class="panel-heading js-heading drag-handle {if !$title}panel-heading-placeholder{/if}">
<span class="fa fa-arrows move-indicator"></span>
<span class="blockinstance-header">
{if $configure}{$configtitle}: {str tag=Configure section=view}{else}{$title|default:"[$strnotitle]"}{/if}
{if $retractable && !$configure}
<span class="fa fa-chevron-down text-watermark fa-sm"></span>
<span class="sr-only">{str tag=retractable section=view}</span>
{/if}
</span>
<span class="blockinstance-controls">
<button class="keyboardmovebutton btn btn-default hidden sr-only" name="action_moveblockinstance_id_{$id}" alt="{$strmovetitletext}" data-id="{$id}">
{$strmovetitletext}
</button>
{foreach from=$movecontrols item=item}
<button class="movebutton hidden" name="action_moveblockinstance_id_{$id}_row_{$row}_column_{$item.column}_order_{$item.order}" data-id="{$id}">
{$item.title}
</button>
{/foreach}
<span class="pull-right btn-group btn-group-top">
{if $configurable && !$configure}
<button class="configurebutton btn btn-inverse btn-xs" name="action_configureblockinstance_id_{$id}" alt="{$strconfigtitletext}" data-id="{$id}">
<span class="fa fa-cog"></span>
</button>
{/if}
{if $configure}
<button class="deletebutton btn btn-inverse btn-xs" name="action_removeblockinstance_id_{$id}" alt="{str tag=Close}" data-id="{$id}">
<span class="fa fa-trash text-danger"></span>
</button>
</button>
{else}
<button class="deletebutton btn btn-inverse btn-xs" name="action_removeblockinstance_id_{$id}" alt="{$strremovetitletext}" data-id="{$id}">
<span class="fa fa-trash text-danger"></span>
</button>
{/if}
</span>
</span>
</h3>
<div class="block blockinstance-content js-blockinstance-content">
{$content|safe}
</div>
</div>
......@@ -10,6 +10,18 @@
{if !$microheaders && ($mnethost || $editurl)}
<div class="btn-group btn-group-top">
{if $LOGGEDIN}
<a id="toggle_watchlist_link" class="watchlist btn btn-default" href="">
{if $viewbeingwatched}
<span class="fa fa-eye-slash prs"></span>
{str tag=removefromwatchlist section=view}
{else}
<span class="fa fa-eye prs"></span>
{str tag=addtowatchlist section=view}
{/if}
</a>
{/if}
{if $editurl}{strip}
{if $new}
<a class="btn btn-default" href="{$editurl}">
......@@ -43,10 +55,17 @@
{include file=collectionnav.tpl}
{/if}
<p>
{assign var='author_link_index' value=1}
{include file=author.tpl}
</p>
<div class="ptxl">
{assign var='author_link_index' value=1}
{include file=author.tpl}
{if $tags}
<div class="tags pbl">
<strong>{str tag=tags}:</strong>
{list_tags owner=$owner tags=$tags}
</div>
{/if}
</div>
<div id="view-description">{$viewdescription|clean_html|safe}</div>
......@@ -57,21 +76,14 @@
</div>
</div>
<div class="viewfooter">
{if $tags}
<div class="tags ptl pbl ">
<strong>{str tag=tags}:</strong>
{list_tags owner=$owner tags=$tags}
</div>
{/if}
{if $releaseform}
<div class="releaseviewform alert alert-info">
<div class="releaseviewform alert alert-warning clearfix">
{$releaseform|safe}
</div>
{/if}
{if $view_group_submission_form}
<div class="submissionform list-group-item-default pll">
<div class="submissionform alert alert-default">
{$view_group_submission_form|safe}
</div>
{/if}
......@@ -91,7 +103,6 @@
<div id="viewmenu" class="view-menu ptxl pbl">
{include file="view/viewmenu.tpl"}
<div class="tab-content">
{if $feedback->position eq 'base' && $enablecomments}
<div id="comment-form" role="tabpanel" class="tab-pane active">
......
......@@ -30,22 +30,3 @@
{/if}
</ul>
<div class="text-right btn-top-right btn-group btn-group-top pull-right">
{if $LOGGEDIN}
<a id="toggle_watchlist_link" class="watchlist btn btn-sm btn-default" href="">
{if $viewbeingwatched}
<span class="fa fa-eye-slash prs"></span>
{str tag=removefromwatchlist section=view}
{else}
<span class="fa fa-eye prs"></span>
{str tag=addtowatchlist section=view}
{/if}
</a>
{/if}
<a id="print_link" class="print btn btn-sm btn-default" href="" onclick="window.print(); return false;">
<span class="fa fa-lg fa-print prs"></span>
{str tag=print section=view}
</a>
</div>
......@@ -139,12 +139,14 @@ if ($USER->is_logged_in() && $submittedgroup && group_user_can_assess_submitted_
'elements' => array(
'submittedview' => array(
'type' => 'html',
'class' => 'mts mbs',
'value' => $text,
),
'submit' => array(
'type' => 'submit',
'class' => 'btn btn-default',
'value' => $releasecollection ? get_string('releasecollection', 'group') : get_string('releaseview', 'group'),
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn btn-default pull-right',
'value' => $releasecollection ? '<span class="fa fa-unlock prs"></span>' . get_string('releasecollection', 'group') : '<span class="fa fa-unlock prs"></span>' . get_string('releaseview', 'group'),
),
),
));
......
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