base3.1.pt 18.6 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417
<!DOCTYPE html>
<html lang="en-us"
      tal:define="
    home request.route_url('home')[:-1];
    user_path  ['user', 'user-add', 'user-edit', 'user-view', 'user-delete'];
    group_path  ['group', 'group-add', 'group-edit', 'group-view', 'group-delete'];
    param_path  ['parameter', 'parameter-add', 'parameter-edit', 'parameter-view', 'parameter-delete'];
    dep_path ['departemen', 'departemen-add', 'departemen-edit', 'departemen-view', 'departemen-delete'];
    partner_path ['partner', 'partner-add', 'partner-edt', 'partner-view', 'partner-del'];
    part_dep_path ['partner-departemen', 'partner-departemen-add', 'partner-departemen-edit', 'partner-departemen-view',
    'partner-departemen-delete'];
    jabatan_path ['jabatan', 'jabatan-add', 'jabatan-edit', 'jabatan-view', 'jabatan-delete'];
    eselon_path ['eselon', 'eselon-add', 'eselon-edit', 'eselon-view', 'eselon-delete'];
    provinsi_path ['provinsi', 'provinsi-add', 'provinsi-edit', 'provinsi-view', 'provinsi-delete'];
    dati2_path ['dati2', 'dati2-add', 'dati2-edit', 'dati2-view', 'dati2-delete'];
    kecamatan_path ['kecamatan', 'kecamatan-add', 'kecamatan-edit', 'kecamatan-view', 'kecamatan-delete'];
    desa_path ['desa', 'desa-add', 'desa-edit', 'desa-view', 'desa-delete'];
    ">
<head>

    <!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->

    <title>${request.app_name} | ${request.company}</title>

    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

    <!-- GOOGLE FONT -->
    <link rel="stylesheet" href="${home}/static/v3/css/gf_open_sans-400italic_700italic_300_400_700.css">

    <!-- Basic Styles -->
    <link rel="stylesheet" type="text/css" media="screen" href="${home}/static/v3/css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" media="screen" href="${home}/static/v3/css/font-awesome.min.css">

    <!-- SmartAdmin Styles : Caution! DO NOT change the order -->
    <link rel="stylesheet" type="text/css" media="screen"
          href="${home}/static/v3/css/smartadmin-production-plugins.min.css">
    <link rel="stylesheet" type="text/css" media="screen"
          href="${home}/static/v3/css/smartadmin-production.min.css">
    <link rel="stylesheet" type="text/css" media="screen"
          href="${home}/static/v3/css/smartadmin-skins.min.css">

    <!-- We recommend you use "your_style.css" to override SmartAdmin
         specific styles this will also ensure you retrain your customization with each SmartAdmin update. -->
    <link rel="stylesheet" type="text/css" media="screen" href="${home}/static/v3/css/osipkd.css">

    <!-- FAVICONS -->
    <link rel="shortcut icon" href="${home}/static/v3/img/favicon.png" type="image/x-icon">
    <link rel="icon" href="${home}/static/v3/img/favicon.png" type="image/x-icon">

    <!-- OTHER CSS -->
    <link href="${home}/static/v3/js/plugin/bootstrap-datepicker/css/bootstrap-datepicker.min.css"
          rel="stylesheet">
    <link href="${home}/deform_static/css/form.css" rel="stylesheet">
    <link href="${home}/deform_static/css/typeahead.css" rel="stylesheet">
    <link href="${home}/static/v3/css/select2.min.css" rel="stylesheet" type="text/css">
    <link href="${home}/static/css/custom.css" rel="stylesheet" type="text/css">

    <metal:css define-slot="css_files"></metal:css>
    <style metal:define-slot="style">
        .twitter-typeahead {
            font-size: 12px !important;
            margin-bottom: 0;
            width: 100%;
            height: 26px;
            position: absolute;
            top: 0;
            left: 0;
            z-index: auto;
        }

        .twitter-typeahead .tt-query, .twitter-typeahead .tt-hint {
            font-size: 12px !important;
            margin-bottom: 0;
            width: 100%;
            height: 26px;
            position: absolute;
            top: 0;
            left: 0;
            z-index: auto;
        }
    </style>

</head>

<body class="fixed-header">
<div id="loading" style="display:none;">
    <img id="loading-image" src="${home}/static/img/ajax-loader.gif" alt="Loading..."/>
</div>

<!-- #HEADER -->
<header id="header">
    <div id="logo-group">

        <!-- PLACE YOUR LOGO HERE -->
        <h3 id="logo">

            <a href="${home}/"><img src="${home}/static/img/logo.png" alt=""></a>
        </h3>
        <!-- END LOGO PLACEHOLDER -->

    </div>

    <!-- #PROJECTS: projects dropdown -->
    <div class="project-context hidden-xs">
        <span class="title-page">${request.title}</span>
    </div>
    <!-- end projects dropdown -->

    <!-- #TOGGLE LAYOUT BUTTONS -->
    <!-- pulled right: nav area -->
    <div class="pull-right">
        <div tal:condition="request.user" class="project-context hidden-xs">
            <span class="label"><i class="fa fa-sm fa-fw fa-institution"></i> ${request.company}</span>

            <span tal:condition="request.user" class="project-selector dropdown-toggle" data-toggle="dropdown">Pilih Module <i
                    class="fa fa-angle-down"></i></span>
            <ul tal:condition="request.user" class="dropdown-menu">
                <li tal:repeat="menu request.menus">
                    <a href="${home}/${menu}">${request.menus[menu]}</a>
                </li>
            </ul>

        </div>
        <!-- collapse menu button -->
        <div id="hide-menu" class="btn-header pull-right">
            <span> <a href="javascript:void(0);" data-action="toggleMenu" title="Collapse Menu"><i
                    class="fa fa-reorder"></i></a> </span>
        </div>
        <!-- end collapse menu -->

        <!-- fullscreen button -->
        <div id="fullscreen" class="btn-header transparent pull-right">
      <span> <a href="javascript:void(0);" data-action="launchFullscreen" title="Full Screen"><i
              class="fa fa-arrows-alt"></i></a> </span>
        </div>
        <!-- end fullscreen button -->

        <!-- User info -->
        <ul tal:condition="request.user" class="header-dropdown-list hidden-xs">
            <li>
                <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-lg fa-fw fa-user"></i> <span
                        style="text-transform:capitalize"> ${request.user and request.user.nice_username() or ""} </span>
                    <i
                            class="fa fa-angle-down"></i> </a>
                <ul class="dropdown-menu pull-right">
                    <li><a style="text-transform:capitalize" href="${request.route_url('logout')}">Logout</a></li>
                    <li><a style="text-transform:capitalize" href="${request.route_url('password')}">Ubah password</a>
                    </li>
                    <li tal:condition="request.user.api_key"><a
                            style="text-transform:capitalize"
                            href="${home}/recreate-api-key">API Key</a></li>
                    <li tal:condition="'core' in request.modules and change_unit(request)">
                        <a style="text-transform:capitalize"
                           href="${home}/departemen/chg">Ubah
                            Organisasi</a></li>
                </ul>
            </li>
        </ul>
        <!-- end user info -->

    </div>
    <!-- end pulled right: nav area -->

</header>
<!-- END HEADER -->


<!-- Left panel : Navigation area -->
<!-- Note: This width of the aside area can be adjusted through LESS variables -->
<aside id="left-panel" style="padding-bottom:67px">

    <!-- NAVIGATION : This navigation is also responsive-->
    <nav style="">

        <!-- Modul Menu -->
        <ul metal:define-slot="navs"></ul>

        <!-- Admin Menu -->
        <ul
                tal:condition="has_permission(request, user_path)"
                style="margin-top: 0; padding-top: 0;">
            <li>
                <a href="#"><i class="fa fa-lg fa-fw fa-shield"></i>
                    <span class="menu-item-parent">Admin</span></a>
                <ul>
                    <li tal:condition="has_permission(request, ['user-view', 'user-edit'])"
                        tal:attributes="class  request.matched_route.name in user_path and 'active'">
                        <a href="${home}/user">User</a>
                    </li>
                    <li tal:condition="has_permission(request, ['user-view', 'user-edit'])"
                        tal:attributes="class request.matched_route.name in group_path and 'active'">
                        <a href="${home}/group">Group</a>
                    </li>
                    <!--                    <li tal:condition="has_permission(request, 'user-group')"-->
                    <!--                        tal:attributes="class request.matched_route.name in ['user-group'] and 'active'">-->
                    <!--                        <a href="${home}/user/group">User Group</a></li>-->
                    <li tal:condition="has_permission(request, 'upload-logo')"
                        tal:attributes="class request.matched_route.name in ['upload-logo'] and 'active'">
                        <a href="${home}/upload/logo">Upload Logo</a></li>
                    <li tal:condition="has_permission(request, 'parameter')"
                        tal:attributes="class request.matched_route.name in param_path and 'active'">
                        <a href="${home}/parameter">Parameter</a></li>
                    <li tal:condition="has_permission(request, 'eselon')"
                        tal:attributes="class request.matched_route.name in eselon_path and 'active'">
                        <a href="${home}/eselon">Eselon</a></li>
                    <li tal:condition="has_permission(request, 'jabatan')"
                        tal:attributes="class  request.matched_route.name in jabatan_path and 'active'">
                        <a href="${home}/jabatan">Jabatan</a></li>

                    <li tal:condition="has_permission(request, 'departemen')"
                        tal:attributes="class request.matched_route.name in dep_path  and 'active'">
                        <a href="${home}/departemen">Departemen</a></li>
                    <!--                    <li tal:condition="has_permission(request, 'departemen-user')"-->
                    <!--                        tal:attributes="class request.matched_route.name in ['departemen-user'] and 'active'">-->
                    <!--                        <a href="${home}/departemen/user">User Departemen</a></li>-->

                    <li tal:condition="has_permission(request, 'partner')"
                        tal:attributes="class request.matched_route.name in partner_path  and 'active'">
                        <a href="${home}/partner">Partner</a></li>
                    <li tal:condition="has_permission(request, 'partner-departemen')"
                        tal:attributes="class request.matched_route.name in part_dep_path and 'active'">
                        <a href="${home}/partner/departemen">Partner Departemen</a></li>
                    <li tal:condition="has_permission(request, 'provinsi')"
                        tal:attributes="class request.matched_route.name in provinsi_path and 'active'">
                        <a href="${home}/provinsi">Provinsi</a></li>
                    <li tal:condition="has_permission(request, 'dati2')"
                        tal:attributes="class  request.matched_route.name in dati2_path and 'active'">
                        <a href="${home}/dati2">Kabupaten/Kota</a></li>

                    <li tal:condition="has_permission(request, 'kecamatan')"
                        tal:attributes="class  request.matched_route.name in kecamatan_path and 'active'">
                        <a href="${home}/kecamatan">Kecamatan</a></li>
                    <li tal:condition="has_permission(request, 'desa')"
                        tal:attributes="class  request.matched_route.name in desa_path and 'active'">
                        <a href="${home}/desa">Desa/Kelurahan</a></li>
                    <li tal:condition="has_permission(request, 'log')"
                        tal:attributes="class request.matched_route.name in ['log'] and 'active'">
                        <a href="${home}/log">Log</a></li>
                </ul>
            </li>
        </ul>

    </nav>
    <span class="minifyme" data-action="minifyMenu">
      <i class="fa fa-arrow-circle-left hit"></i>
  </span>
    <span class="footer-side">&copy; OpenSIPKD.com
     <script>document.write(new Date().getFullYear());</script>
  </span>
</aside>
<!-- END NAVIGATION -->


<!-- JS -->
<script src="${home}/static/v3/js/jquery-2.1.1.min.js"></script>
<script>
    if (!window.jQuery) {
        document.write('<script src="${home}/static/v3/js/libs/jquery-2.1.1.min.js"><\/script>');
    }
</script>

<script src="${home}/static/v3/js/jquery-ui-1.10.3.min.js"></script>
<script>
    if (!window.jQuery.ui) {
        document.write('<script src="${home}/static/v3/js/libs/jquery-ui-1.10.3.min.js"><\/script>');
    }


</script>

<!-- IMPORTANT: APP CONFIG -->
<script src="${home}/static/v3/js/app.config.js"></script>

<!-- BOOTSTRAP JS -->
<script src="${home}/static/v3/js/bootstrap/bootstrap.min.js"></script>

<!-- FastClick: For mobile devices -->
<script src="${home}/static/v3/js/plugin/fastclick/fastclick.min.js"></script>

<!--[if IE 8]>

<h1>Your browser is out of date, please update your browser by going to www.microsoft.com/download</h1>

<![endif]-->

<!-- MAIN APP JS FILE -->
<script src="${home}/static/v3/js/app.min.js"></script>

<!-- PAGE RELATED PLUGIN(S) -->
<script src="${home}/static/v3/js/plugin/datatables/jquery.dataTables.min.js"></script>
<script src="${home}/static/v3/js/plugin/datatables/dataTables.colVis.min.js"></script>
<script src="${home}/static/v3/js/plugin/datatables/dataTables.tableTools.min.js"></script>
<script src="${home}/static/v3/js/plugin/datatables/dataTables.bootstrap.min.js"></script>
<script src="${home}/static/v3/js/plugin/datatable-responsive/datatables.responsive.min.js"></script>

<script src="${home}/static/v3/js/plugin/bootstrap-datepicker/js/bootstrap-datepicker.min.js"></script>
<script src="${home}/static/v3/js/plugin/bootstrap-timepicker/bootstrap-timepicker.min.js"></script>
<script src="${home}/deform_static/scripts/deform.js"></script>
<script src="${home}/deform_static/scripts/typeahead.min.js"></script>
<script src="${home}/deform_static/scripts/jquery.maskMoney-3.1.1.min.js"></script>
<script src="${home}/deform_static/tinymce/tinymce.min.js"></script>
<script src="${home}/static/v3/js/tools.js"></script>
<script src="${home}/static/v3/js/notification/SmartNotification.min.js"></script>
<script src="${home}/static/v3/js/plugin/masked-input/jquery.maskedinput.min.js"></script>
<script src="${home}/static/v3/js/select2.full.min.js"></script>
<script src="${home}/deform_static/scripts/file_upload.js"></script>

<script>
    function showError(msg) {
        $("#success").css('display', 'none', 'important');
        $("#errors").css('display', 'box', 'important');
        $("#errors").html("<span class='glyphicon glyphicon-remove'></span> " + msg);
        console.log(msg);
    };

    function showSuccess(msg) {
        $("#errors").css('display', 'none', 'important');
        $("#success").css('display', 'box', 'important');
        $("#success").html("<span class='glyphicon glyphicon-ok'></span> " + msg);
    };
    $(function () {
        var current = location.pathname;
        $('nav li a').each(function () {
            var $this = $(this);
            if ($this.attr('href') != '' && $this.attr('href') != '#') {
                if ($this.attr('href') == current) {
                    $this.parent().addClass('active');
                    var ul_parent = $this.parents('ul');
                    ul_parent.show();
                    ul_parent.parents('li').addClass('open');
                }
            }
        })
    });
    $(document).ready(function () {
        // DO NOT REMOVE : GLOBAL FUNCTIONS!
        pageSetUp();
        /*
         * PAGE RELATED SCRIPTS
         */
    });

    function number_format(number, decimals, dec_point, thousands_sep) {
        // Strip all characters but numerical ones.
        number = (number + '').replace(/[^0-9+\-Ee.]/g, '');
        var n = !isFinite(+number) ? 0 : +number,
            prec = !isFinite(+decimals) ? 0 : Math.abs(decimals),
            sep = (typeof thousands_sep === 'undefined') ? ',' : thousands_sep,
            dec = (typeof dec_point === 'undefined') ? '.' : dec_point,
            s = '',
            toFixedFix = function (n, prec) {
                var k = Math.pow(10, prec);
                return '' + Math.round(n * k) / k;
            };
        // Fix for IE parseFloat(0.55).toFixed(0) = 0;
        s = (prec ? toFixedFix(n, prec) : '' + Math.round(n)).split('.');
        if (s[0].length > 3) {
            s[0] = s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, sep);
        }
        if ((s[1] || '').length < prec) {
            s[1] = s[1] || '';
            s[1] += new Array(prec - s[1].length + 1).join('0');
        }
        return s.join(dec);
    }
</script>

<metal:js define-slot="js_files"></metal:js>

<!-- Define Script-->
<script metal:define-slot="scripts"></script>
<!-- End isi Script-->
<!-- MAIN PANEL -->
<div id="main" role="main">
    <!-- MAIN CONTENT -->
    <div id="content">

        <!-- Error session flash -->
        <div tal:condition="request.session.peek_flash()">
            <div class="alert alert-success" tal:repeat="message request.session.pop_flash()"><i
                    class="fa fa-fw fa-lg fa-check-circle"></i>&nbsp;${message}
            </div>
        </div>
        <div tal:condition="request.session.peek_flash('error')">
            <div class="alert alert-danger" tal:repeat="message request.session.pop_flash('error')"><i
                    class="fa fa-fw fa-lg fa-times-circle"></i>&nbsp;${message}
            </div>
        </div>
        <!-- Error session flash -->

        <!-- <div id="errors" name="errors"> -->
        <div class="alert alert-danger" id="errors" name="errors" style="display:none;">errors</div>
        <div class="alert alert-success" id="success" name="success" style="display:none;">success</div>
        <!-- <div id="errors" name="errors"> -->

        <!-- Global Alert -->
        <div tal:condition="request.session.peek_flash()">
            <div class="alert alert-success" tal:repeat="message request.session.pop_flash()">${message}</div>
        </div>
        <div tal:condition="request.session.peek_flash('error')">
            <div class="alert alert-danger" tal:repeat="message request.session.pop_flash('error')">${message}</div>
        </div>

        <!-- End Global Alert -->

        <!-- SLOT KONTEN -->
        <div metal:define-slot="content"></div>
        <!-- END SLOT KONTEN -->

    </div>
    <!-- END MAIN CONTENT -->
</div>
<!-- END MAIN PANEL -->
</body>
</html>