blocks.tpl 4.8 KB
Newer Older
1
{if $microheaders}{include file="viewmicroheader.tpl"}{else}{include file="header.tpl"}{/if}
2
3
4
5
6
{if !$edittitleurl}
  <h1>{if !$microheaders}{$viewtitle}{else}{$maintitle}{/if}</h1>
{/if}

{if $edittitleurl}
7
8
<h1>{$viewtitle}</h1>
{include file="view/editviewtabs.tpl" selected='content'}
Evonne Cheung's avatar
Evonne Cheung committed
9
<div class="subpage rel">
10
{/if}
11

12
{if $columns}
13
    {str tag="editblockspagedescription" section="view"}
14
    <form action="{$formurl}" method="post">
15
        <input type="submit" name="{$action_name}" id="action-dummy" class="hidden">
16
17
        <input type="hidden" id="viewid" name="id" value="{$view}">
        <input type="hidden" name="change" value="1">
18
        <input type="hidden" id="category" name="c" value="{$category}">
19
        <input type="hidden" name="sesskey" value="{$SESSKEY}">
20
        {if $new}<input type="hidden" name="new" value="1">{/if}
21
22
23
        <div id="page">
            <div id="top-pane">
                <div id="category-list">
24
                    {$category_list|safe}
25
26
                </div>
                <div id="blocktype-list">
27
                    {$blocktype_list|safe}
28
                </div>
Evonne Cheung's avatar
Evonne Cheung committed
29
                <div class="cb"></div>
30
31
            </div>

32
33
            <div id="middle-pane">
                <table class="fullwidth"><tr>
34
35
36
                    <td>
                        <a id="layout-link" href="columns.php?id={$view}&amp;c={$category}&amp;new={$new}"{if !$can_change_layout} class="disabled"{/if}>{str tag='changeviewlayout' section='view'}</a> {contextualhelp plugintype="core" pluginname="view" section="changeviewlayout"}
                    </td>
37
{if $viewthemes}
38
                    <td class="center">
39
                        <label for="viewtheme-select">{str tag=theme}: </label>
40
                        <select id="viewtheme-select" name="viewtheme">
Richard Mansfield's avatar
Richard Mansfield committed
41
                            <option value="">{str tag=choosetheme}</option>
42
{foreach from=$viewthemes key=themeid item=themename}
43
                            <option value="{$themeid}"{if $themeid == $viewtheme} selected="selected" style="font-weight: bold;"{/if}>{$themename}</option>
44
45
46
{/foreach}
                        </select>
                    </td>
47
{/if}
48
                    <td class="right">
49
                        <a id="btn-displaymyview" href="{$displaylink}">{str tag=displaymyview section=view} &raquo;</a></td>
50
                    </td>
51
52
                </tr></table>
            </div>
53
54
55

            <div id="bottom-pane">
                <div id="column-container">
Evonne Cheung's avatar
Evonne Cheung committed
56
57
58
                	<div id="blocksinstruction" class="center">
                	    {str tag='blocksintructionnoajax' section='view'}
                	</div>
59
                        {$columns|safe}
Evonne Cheung's avatar
Evonne Cheung committed
60
                    <div class="cb"></div>
61
62
63
64
                </div>
            </div>
            <script type="text/javascript">
            {literal}
65
            insertSiblingNodesAfter('bottom-pane', DIV({'id': 'views-loading'}, IMG({'src': config.theme['images/loading.gif'], 'alt': ''}), ' ', get_string('loading')));
66
67
68
69
70
            {/literal}
            </script>
        </div>
    </form>

71
    <div id="view-wizard-controls" class="center">
72
    {if $new}
73
74
75
        <form action="" method="POST">
            <input type="hidden" name="id" value="{$view}">
            <input type="hidden" name="new" value="1">
76
            <input type="submit" name="cancel" class="cancel" value="{str tag='cancel'}" onclick="return confirm('{str tag='confirmcancelcreatingview' section='view'}');">
77
            <input type="hidden" name="sesskey" value="{$SESSKEY}">
78
        </form>
79
80
81
        <form action="{$WWWROOT}view/edit.php" method="GET">
            <input type="hidden" name="id" value="{$view}">
            <input type="hidden" name="new" value="1">
82
            <input type="submit" class="submit" value="{str tag=next}: {str tag='edittitleanddescription' section=view}">
83
        </form>
84
    {else}
85
        <form action="{$WWWROOT}{if $groupid}{if $viewtype == 'grouphomepage'}group/view.php{else}view/groupviews.php{/if}{elseif $institution}view/institutionviews.php{else}view{/if}" method="GET">
86
        {if $groupid}
87
88
89
            {if $viewtype == 'grouphomepage'}
            <input type="hidden" name="id" value="{$groupid}">
            {else}
90
            <input type="hidden" name="group" value="{$groupid}">
91
            {/if}
92
        {elseif $institution}
93
            <input type="hidden" name="institution" value="{$institution}">
94
        {/if}
95
96
            <input class="submit" type="submit" value="{str tag='done'}">
        </form>
97
98
99
100
101
102
    {/if}
    </div>

{elseif $block}
    <div class="blockconfig-background">
        <div class="blockconfig-container">
103
            {$block.html|safe}
104
        </div>
105
    </div>
106
    {if $block.javascript}<script type="text/javascript">{$block.javascript|safe}</script>{/if}
107
{/if}
108

109
110
111
{if $edittitleurl}
</div>
{/if}
112
{if $microheaders}{include file="microfooter.tpl"}{else}{include file="footer.tpl"}{/if}