]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/templates/staff/share/t_eframe.tt2
LP 1772053: Cleanup Dan's code.
[Evergreen.git] / Open-ILS / src / templates / staff / share / t_eframe.tt2
1 <div class="eg-embed-frame">
2   <button type="button" class="btn btn-default btn-xs" ng-show="allowEscape &&  showIframe" ng-click="escapeEmbed()">[% l('Open in New Window') %]</button>
3   <button type="button" class="btn btn-default btn-xs" ng-show="allowEscape &&  showIframe" ng-click="restoreEmbed()">[% l('Refresh') %]</button>
4   <button type="button" class="btn btn-default btn-xs" ng-show="allowEscape && !showIframe" ng-click="restoreEmbed()">[% l('Re-embed') %]</button>
5   <!--
6     'src' is replaced by the controller, after linking, and as soon as a
7     value is available.  height is calculated at render time.
8   -->
9   <iframe 
10     ng-show="showIframe"
11     ng-attr-style="{{ autoresize ? undefined : 'height:' + height + 'px' }}"
12     src="/eg/staff/loading">
13   </iframe>
14 </div>
15