blocks.tpl 3.34 KB
Newer Older
1
{include file="header.tpl"}
2
{if $columns}
3
4
    {str tag="editblockspagedescription" section="view"}

5
    <form action="{$formurl}" method="post">
6
        <input type="submit" name="{$action_name}" id="action-dummy" class="hidden">
7
8
        <input type="hidden" id="viewid" name="id" value="{$view}">
        <input type="hidden" name="change" value="1">
9
        <input type="hidden" id="category" name="c" value="{$category}">
10
        {if $new}<input type="hidden" name="new" value="1">{/if}
11
12
13
14
15
16
17
18
        <div id="page">
            <div id="top-pane">
                <div id="category-list">
                    {$category_list}
                </div>
                <div id="blocktype-list">
                    {$blocktype_list}
                </div>
Evonne Cheung's avatar
Evonne Cheung committed
19
                <div class="cb"></div>
20
21
            </div>

Evonne Cheung's avatar
Evonne Cheung committed
22
23
            <a id="btn-displaymyview" class="fr" href="view.php?id={$view}&amp;new={$new}">{str tag=displaymyview section=view} &raquo;</a>
            
24
            <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"}
Evonne Cheung's avatar
Evonne Cheung committed
25
                <div class="cb"></div>
26
27
28

            <div id="bottom-pane">
                <div id="column-container">
Evonne Cheung's avatar
Evonne Cheung committed
29
30
31
32
33
                	<div id="blocksinstruction" class="center">
                	    {str tag='blocksintructionnoajax' section='view'}
                	</div>
                	    {$columns}
                    <div class="cb"></div>
34
35
36
37
                </div>
            </div>
            <script type="text/javascript">
            {literal}
38
            insertSiblingNodesAfter('bottom-pane', DIV({'id': 'views-loading'}, IMG({'src': config.theme['images/loading.gif'], 'alt': ''}), ' ', get_string('loading')));
39
40
41
42
43
            {/literal}
            </script>
        </div>
    </form>

44
    <div id="view-wizard-controls" class="center">
45
    {if $new}
46
47
48
49
50
        <form action="" method="POST">
            <input type="hidden" name="id" value="{$view}">
            <input type="hidden" name="new" value="1">
            <input type="submit" name="cancel" class="submit" value="{str tag='cancel'}" onclick="return confirm('{str tag='confirmcancelcreatingview' section='view'}');">
        </form>
51
52
53
        <form action="{$WWWROOT}view/edit.php" method="GET">
            <input type="hidden" name="id" value="{$view}">
            <input type="hidden" name="new" value="1">
Richard Mansfield's avatar
Richard Mansfield committed
54
            <input type="submit" class="submit" value="{str tag='next'}">
55
        </form>
56
    {elseif $profile}
57
58
59
        <form action="{$WWWROOT}user/view.php" method="GET">
            <input class="submit" type="submit" value="{str tag='done'}">
        </form>
60
    {else}
Richard Mansfield's avatar
Richard Mansfield committed
61
        <form action="{$WWWROOT}view/{if $groupid}groupviews.php{elseif $institution}institutionviews.php{/if}" method="GET">
62
        {if $groupid}
63
            <input type="hidden" name="group" value="{$groupid}">
64
        {elseif $institution}
65
            <input type="hidden" name="institution" value="{$institution}">
66
        {/if}
67
68
            <input class="submit" type="submit" value="{str tag='done'}">
        </form>
69
70
71
72
73
74
75
76
    {/if}
    </div>

{elseif $block}
    <div class="blockconfig-background">
        <div class="blockconfig-container">
            {$block.html}
        </div>
77
    </div>
78
{/if}
79
{include file="footer.tpl"}