Source

ekkli-maps / templates / dashboard.html

Full commit
{% extends 'admin/base_site.html' %}
{% load i18n %}
{% block title %}{{ map.title }}{{ block.super }}{% endblock %}

{% block content %}
    <script src="/static/js/libs/jquery.min.js"></script>

    <link href="/static/css/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
    <link href="/static/css/ekkli-maps.css" media="all" rel="stylesheet" type="text/css"/>
    <link href="/static/css/dashboard.css" media="all" rel="stylesheet" type="text/css"/>

    <script src="/static/js/libs/jquery-ui.min.js"></script>
    <script src="/static/js/libs/underscore.js"></script>
    <script src="/static/js/libs/backbone.js"></script>

    <script src="/static/js/mylibs/maps-models.js"></script>
    <script src="/static/js/mylibs/maps-dashboard.js"> </script>
    <span style="float: right;">
        <input id="add_release" type="button" value="New Context..." style="font-size: 14px">
        <input id="add_map" type="button" value="New Map..." style="font-size: 14px">
    </span>
    <br/><br/>
    <div id="maps_container">
        <table style="width:100%;border: none">
            <tr>
                <td style="align:left">
                    <h1 style="align:Center;font-size:16pt;font-weight: bold;">{% trans "Maps" %}</h1>
                </td>
                <td style="text-align:right;vertical-align: bottom">
                    <span id="layout-options">layouts</span>
                </td>
            </tr>
        </table>
        <div id="maps_view">
        </div>
    </div>


    <!-- Templates -->
    <script type="text/template" id="layout-options-template">
        <a name="<%=value%>" class='layout_link' id='to-groups-layout'><%=title%></a>
    </script>
    <script type="text/template" id="layout-options-selected-template">
        <b><%=title%></b>
    </script>
    <script type="text/template" id="group-template">
        <div class='group_header'>
            <img class='group_leader_avatar' src='static/img/user_avatars/<%=manager_id%>.jpg' />
            <span class='group_title'><%=group_title%></span>
        </div>
    </script>

    <script type="text/template" id="map-template">
            <div class='map_row1'>
                <div style="display: table-row; width: 100%">
                    <span style="display: table-cell">
                        <span class=d_completed >
                           <img src="/static/img/<%=statusImage%>.jpeg"/>
                        </span>
                        <span class=d_title>
                            <%= title %>
                        </span>
                        <span class=d_group_title >
                            <%=group_title%>
                        </span>
                    </span>
                    <span style="display: table-cell; text-align: right;    ">
                        <span class="d_date">
                            <%= schedule_date_string %>
                        </span>
                    </span>
                </div>
            </div>
            <embed src="/get_map_svg/<%=id%>/" class="map_row2"></embed>
        </div>
    </script>

<div id="dialog">
</div>
{% endblock %}