Symfony Exception

RuntimeError

HTTP 500 Internal Server Error

Variable "findtext" does not exist.

Exception

Twig\Error\ RuntimeError

Show exception properties
Twig\Error\RuntimeError {#1145
  -lineno: 1661
  -name: "Job/searchlist.html.twig"
  -rawMessage: "Variable "findtext" does not exist."
  -sourcePath: "/usr/www/users/smartm/templates/Job/searchlist.html.twig"
  -sourceCode: """
    {% extends "baserfp.html.twig" %}\n
    {% block head %}\n
    {% set currentPathdHeader = app.request.getSchemeAndHttpHost() %}\n
    \t{% set currentPathRoute2 = path(app.request.attributes.get('_route'),\n
          app.request.attributes.get('_route_params')) %} \n
    <title>\n
    {% if searchlocation!="" %}\n
            {% set joblocadesc = "" %}\n
                 {% if searchlocation=="United Kingdom" or searchlocation=="United%20Kingdom" %}\n
                     {% set joblocadesc = "London" %}\n
                     {% elseif searchlocation=="United States" or searchlocation=="United%20States" %}\n
                         {% set joblocadesc = "US" %}\n
                         {% elseif searchlocation=="France" %}\n
                         {% set joblocadesc = "Paris" %}\n
                         {% elseif searchlocation=="Hong Kong" or searchlocation=="Hong%20Kong" %}\n
                         {% set joblocadesc = "Hong Kong" %}\n
                         {% elseif searchlocation=="United Arab Emirates" or searchlocation=="United%20Arab%20Emirates" %}\n
                         {% set joblocadesc = "United Arab Emirates" %}\n
                         {% else %}\n
                             {% if "%20" in searchlocation %}\n
                                 {% set joblocadesc = searchlocation|replace('%20', ' ') %}\n
                                 {% set joblocadesc = joblocadesc|replace('%20', ' ') %}\n
                                 {% else %}\n
                            {% set joblocadesc = searchlocation %} \n
                            {% endif %}\n
                         {% endif %}\n
                         {% if searchlocation=="Remote" %}\n
                             Remote Investment Jobs | SmartMoneyMatch\n
                             {% else %}\n
                         Investment Jobs in&nbsp;{{joblocadesc}} | SmartMoneyMatch\n
                         {% endif %}\n
                         {% else %}\n
        Investment Jobs | Smart Money Match\n
        {% endif %}\n
    </title> \n
    <meta name="description" content="Whether you are an entry-level or an experienced candidate, Find your suitable job on Smart Money Match. Visit the website for more information.">\n
    {% set currentPath = path(app.request.attributes.get('_route'),\n
          app.request.attributes.get('_route_params')) %}\n
          {% set currentPath2 = "https://www.smartmoneymatch.com"~currentPath %}\n
          <script type="application/ld+json">\n
    {\n
      "@context": "http://schema.org",\n
      "@type": "WebPage",\n
      "id": "https://www.smartmoneymatch.com/jobs/global",\n
      "name": "Investment Jobs | Smart Money Match",\n
      "description": "Whether you are an entry-level or an experienced candidate, Find your suitable job on Smart Money Match. Visit the website for more information.",\n
      "url": "https://www.smartmoneymatch.com/jobs/global",\n
      "breadcrumb": {\n
        "@type": "BreadcrumbList",\n
        "itemListElement": [\n
        \n
          {\n
            "@type": "ListItem",\n
            "position": 1,\n
            "item": {\n
              "@type": "WebPage",\n
              "name": "Find jobs in the investment management industry",\n
              "url": "https://www.smartmoneymatch.com/jobs/global"\n
            }\n
          }\n
        ]\n
      }\n
    }\n
    </script>\n
    {% if defsearchrout is not defined %}\n
          <link rel="canonical" href="{{currentPathdHeader}}{{currentPathRoute2}}">\n
          {% else %}\n
               <link rel="canonical" href="https://www.smartmoneymatch.com/jobs/global">\n
        {% endif %}\n
    {{parent()}}\n
    \t\t{% endblock %}\n
    {% block body %}\n
        <!DOCTYPE html>\n
        {# changing the script https and http url based on host #}\n
        {#<script src="https://cdn.jsdelivr.net/jquery.validation/1.15.0/jquery.validate.min.js"></script>\n
        <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.15.0/additional-methods.js"></script>#}\n
           {# <link href="https://cdn.rawgit.com/davidstutz/bootstrap-multiselect/master/dist/css/bootstrap-multiselect.css" rel="stylesheet" type="text/css" />\n
            <script src="https://cdn.rawgit.com/davidstutz/bootstrap-multiselect/master/dist/js/bootstrap-multiselect.js" type="text/javascript"></script>  #}\n
           <link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.13/css/bootstrap-multiselect.css" rel="stylesheet" type="text/css" />\n
        <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.10/js/bootstrap-multiselect.js" type="text/javascript"></script>\n
        \n
        {# end #}\n
        <link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">        \n
        <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>         \n
    \n
        <style>\n
            .multiselect-container > li > a.multiselect-all label {\n
                font-weight: 700 !important;\n
            }\n
        </style>\n
    \n
         \n
        <script>\n
            \n
            function watchlist(id, etype = "") {\n
                //alert(etype);\n
    \n
            {% if app.user.getId() is not defined %}\n
                    $('#loginmodal').modal('toggle');\n
                    return false;\n
            {% endif %}\n
    \n
    \n
                    $.ajax\n
                            ({\n
                                url: "{{ path('jobwatchlist')}}",\n
                                data: {"watchid": id, "type": "job"},\n
                                type: 'post',\n
                                success: function (result)\n
                                {\n
                                    if (result == 'done') {\n
                                        $('#watch' + id).html("<i class=\"fa fa-check text-green\"></i> Watching");\n
                                        //alert("Event has been added in your watchlist");\n
                                    }\n
                                    if (result == 'delete') {\n
                                        $('#watch' + id).html("<i class=\"fa fa-plus text-green\"></i> Watchlist");\n
                                        //alert("Event has been removed from watchlist")\n
                                    }\n
    \n
                                    if (etype == "watchlist") {\n
                                        $("#watchlist").trigger("click");\n
                                    }\n
    \n
                                }\n
                            });\n
                }\n
                \n
            $(function () {\n
            \n
            var eucoun = ['Austria::::AT', 'Belgium::::BE', 'Bulgaria::::BG', 'Croatia::::HR', 'Cyprus::::CY', 'Czech Republic::::CZ', 'Denmark::::DK', 'Estonia::::EE', 'Greece::::EL', 'Finland::::FI', 'France::::FR', 'Germany::::DE', 'Hungary::::HU', 'Ireland::::IE', 'Latvia::::LV', 'Lithuania::::LT', 'Luxembourg::::LU', 'Malta::::MT', 'Netherlands::::NL', 'Poland::::PL', 'Portugal::::PT', 'Romania::::RO', 'Spain::::ES', 'Slovakia::::SK', 'Slovenia::::SI', 'Sweden::::SE',  'Italy::::IT'];\n
                var eucoun2 = ['Austria::::AT', 'Belgium::::BE', 'Bulgaria::::BG', 'Croatia::::HR', 'Cyprus::::CY', 'Czech Republic::::CZ', 'Denmark::::DK', 'Estonia::::EE', 'Greece::::EL', 'Finland::::FI', 'France::::FR', 'Germany::::DE', 'Hungary::::HU', 'Ireland::::IE', 'Latvia::::LV', 'Lithuania::::LT', 'Luxembourg::::LU', 'Malta::::MT', 'Netherlands::::NL', 'Poland::::PL', 'Portugal::::PT', 'Romania::::RO', 'Spain::::ES', 'Slovakia::::SK', 'Slovenia::::SI', 'Sweden::::SE',  'Italy::::IT'];\n
                \n
                $('#service_head_country').multiselect({\n
                    includeSelectAllOption: true,\n
                    enableCaseInsensitiveFiltering: false,\n
                    selectAllText: 'Select all',\n
                    selectAllNumber: false,\n
                    onChange: function (element, checked) {\n
                        var euselectiontax = []; var euselectiontax2 = [];var euselectiontax3 = [];  var euselectiontax4 = [];\n
                        var eucollection = [];\n
                        if (checked) {\n
                            if ($(element).val() == "eucountries") {\n
                                $('#service_head_country option').each(function (i, val) {\n
                                    if ($.inArray($(this).val(), eucoun) !== -1) {\n
                                        eucoun.push($(this).val()); \n
                                        $('#service_head_country').multiselect('select', eucoun);\n
                                    }\n
                                    if ($(this).prop('selected') == true) {\n
                                        euselectiontax.push($(this).val());\n
                                    }\n
                                });\n
                                \n
                                   if (euselectiontax.length >1) {\n
                                      if ($.inArray('eucountries', euselectiontax) !== -1) {\n
                                        var euselectiontax = euselectiontax.length - 1;\n
                                      }\n
                                      else {\n
                                          var euselectiontax = euselectiontax.length;\n
                                      }\n
                                     var euselecttaxlabel = euselectiontax + ' selected';\n
                                  }\n
                                  else {\n
                                    var euselecttaxlabel = 'None selected';\n
                                  }\n
                                  $(".taxreportingdiv .multiselect").text(euselecttaxlabel);  getjoblist(false);  \n
                            }\n
                            else { \n
                                                         \n
                                $('#service_head_country option').each(function (i, val) {\n
                                        if ($(this).prop('selected') == true) { \n
                                            euselectiontax2.push($(this).val());\n
                                            if($.inArray($(this).val(), eucoun) !== -1){\n
                                                eucollection.push(val);\n
                                            }\n
                                        }\n
                                });\n
                                if(eucollection.length == eucoun2.length){\n
                                  $('#service_head_country').multiselect('select', 'eucountries');  \n
                                } \n
                              //  $("#service_head_country").multiselect("refresh");\n
                                \n
                                 if (euselectiontax2.length >0) {\n
                                      if ($.inArray('eucountries', euselectiontax2) !== -1) {\n
                                        var euselectiontax2 = euselectiontax2.length - 1;\n
                                      }\n
                                      else {\n
                                          var euselectiontax2 = euselectiontax2.length;\n
                                      }\n
                                     var euselecttaxlabel2 = euselectiontax2 + ' selected';\n
                                  }\n
                                  else {\n
                                    var euselecttaxlabel2 = 'None selected';\n
                                  }\n
                                  $(".taxreportingdiv .multiselect").text(euselecttaxlabel2); getjoblist(false);\n
                               }\n
                        } else {\n
                            if ($(element).val() == "eucountries") {\n
                                $('#service_head_country option').each(function (i, val) {\n
                                    if ($.inArray($(this).val(), eucoun) !== -1) {\n
                                        eucoun.push($(this).val());\n
                                        euselectiontax3.push($(this).val());\n
                                        $('#service_head_country').multiselect('deselect', eucoun);\n
                                    }\n
                                    \n
                                }); \n
                                if (euselectiontax3.length >1) {\n
                                     if ($.inArray('eucountries', euselectiontax3) !== -1) {\n
                                        var euselectiontax3 = euselectiontax3.length - 1;\n
                                      }\n
                                      else {\n
                                          var euselectiontax3 = euselectiontax3.length;\n
                                      }\n
                                      var euselecttaxlabel3 = euselectiontax3 + ' selected';\n
                                  }\n
                                  else {\n
                                    var euselecttaxlabel3 = 'None selected';\n
                                  } getjoblist(false);\n
                            }\n
                            else { \n
                                 if($.inArray($(element).val(), eucoun) !== -1) {\n
                                     $('#service_head_country').multiselect('deselect', 'eucountries');\n
                                  }\n
                                //  $("#service_head_country").multiselect("refresh");\n
                                  $('#service_head_country option').each(function (i, val) {\n
                                        if ($(this).prop('selected') == true) { \n
                                            euselectiontax4.push($(this).val());\n
                                        }\n
                                }); \n
                                 \n
                                  if (euselectiontax4.length >0) {\n
                                     var euselectiontax4 = euselectiontax4.length;\n
                                     var euselecttaxlabel4 = euselectiontax4 + ' selected';\n
                                  }\n
                                  else {\n
                                    var euselecttaxlabel4 = 'None selected';\n
                                  }\n
                                  \n
                                  $(".taxreportingdiv .multiselect").text(euselecttaxlabel4); getjoblist(false);\n
                                \n
                               }\n
                        }  \n
                    }\n
                });\n
                \n
                 if($.trim($("#jobtitle").val())!="") {  getjoblist(false); } \n
                 \n
                \n
                /* $("#postedby").autocomplete({\n
                    //alert("ani maosne");\n
                    source: '{{ path("frontend_job_company_autocomplete") }}',\n
                    select: function (e, ui) {\n
                        getjoblist(false);\n
                    }\n
                }); */\n
        \n
        // organizer autocomplete \n
              $("#postedby").keyup(function(){\n
    \tvar postedby2 = $(this).val(); var assettext = "";\n
            $("#assetdata").find("p").each(function(){\n
                if($.trim($(this).text())!=""){\n
                assettext = assettext+$.trim($(this).text())+"::::";\n
                }\n
            });\n
    \tif(postedby2!=""){ \n
                $(".postedby").css("display","block");\n
                $(".hide-select").addClass("open");\n
    \t\t    $.ajax\n
    \t\t    ({ \n
    \t\t\turl: "{{ path('frontend_job_company_autocomplete')}}",\n
    \t\t\tdata: {"postedby":postedby2,"assettext":assettext},\n
    \t\t\ttype: 'post',\n
    \t\t\tbeforeSend:function()\n
    \t\t\t{\n
    \t\t\t    \n
    \t\t\t},        \n
    \t\t\tsuccess: function(result)\n
    \t\t\t{ \n
    \t\t\t$(".asset-manage").html(result);\n
    \t\t\t}\n
    \t\t    });\n
    \n
    \t}\n
    \telse {\n
    \t$(".postedby").css("display","none");\n
    \t$(".hide-select").removeClass("open");\n
    \t}\n
          });\n
          //end\n
          \n
          // click search on organizer search\n
          $(document).on('click', '.asset-manage .postedbyorgg', function(e) {\n
            // appending organizer in the section if input text set\n
            if($.trim($(this).text())!=""){\n
                    var  organizersearchtext = $(this).text(); \n
                    $("#assetdata").show();\n
                    $('#postedby').val(organizersearchtext);\n
                    $("#assetdata").append('<p class="mtop10">'+organizersearchtext+'<a href="javascript:void(0)" class="text-danger mleft10 organizerlink"><i class="fa fa-close"></i></a></p>');\n
                    getjoblist(false);\n
            }\n
            // end\n
          });\n
          // end\n
          \n
          // search organizer event and show routing organization based on routing organizer\n
            var  organizerroutetext = $(".organizersearch").text();\n
            if(organizerroutetext!="1" && organizerroutetext!=""){\n
            $("#assetdata").show();\n
            organizerroutetext = organizerroutetext.replace(/-/g, ' ');\n
            $("#assetdata").append('<p class="mtop10">'+organizerroutetext+'<a href="javascript:void(0)" class="text-danger mleft10 organizerlink"><i class="fa fa-close"></i></a></p>');\n
            $(".offeredorgg").trigger("click"); \n
            getjoblist(false);\n
            }\n
            // end\n
          \n
          // organizer remove icon click\n
           $(document).on('click', '.organizerlink', function(event) { \n
                    $(this).parent().remove();  getjoblist(false);\n
           });\n
           // end\n
              // check all work area input box selected and select select box of selected work area\n
              //$("#j2_1 .allarea").trigger("click");\n
              // end\n
            });\n
    \n
    \n
    \n
    \n
    \n
        </script>\n
    \n
    {% if app.user %}\n
    \t\t{{ render(controller('App\\Controller\\HomeController::breadAction', {'title': 'Job','profile':'1'})) }}\n
        {% endif %}\n
    \n
        <style>.word-break {\n
                word-break: normal;\n
            }</style>\n
        <div class="container">\n
            <div class="row">\n
                <div class="col-sm-12">\n
                    <br/>\n
                    <div class="col-sm-12" id="notificationmessage">\n
                        {% for flashMessage in app.session.flashbag.get('success') %}\n
    \n
    \n
                            <div class="alert alert-success" role="alert">  \n
                                <span style="font-color:black">{{ flashMessage }}</span>\n
                            </div>\n
    \n
                        {% endfor %}\n
    \n
                        {% for flashMessage in app.session.flashbag.get('error') %}\n
    \n
                            <div class="alert alert-danger" role="alert">  \n
                                <span style="font-color:black">{{ flashMessage }}</span>\n
                            </div>\n
    \n
                        {% endfor %} \n
                    </div>\n
                    <div class="row">\n
                        <div class="col-md-10 col-sm-8 col-xs-12">\n
                            {#<h2 class=" text-green subtitle" id="cntlabel">Choose from&nbsp;{{ pagination.getTotalItemCount }} listed jobs</h2>#}\n
                            \n
    \t\t\t\t\t\t\n
    \t\t\t\t\t\t{% if searchlocation is defined and searchlocation != "" and searchlocation!="Remote" and searchlocation != "global" %}\n
    \t\t\t\t\t\t     {% if getworkarea is defined and getworkarea!="" %}\n
    \t\t\t\t\t\t       <h1 class=" text-green" id="cntlabel">{{getworkarea}} jobs in {{searchlocation}}</h1>\n
    \t\t\t\t\t\t\t    {% elseif getseniority is defined and getseniority!="" %}\n
    \t\t\t\t\t\t\t\t<h1 class=" text-green" id="cntlabel">Seniority-Specific jobs in {{searchlocation}}</h1>\n
    \t\t\t\t\t\t\t\t{% elseif getworkamt is defined and getworkamt!="" and getworkamt=="Full time" %}\n
    \t\t\t\t\t\t\t\t<h1 class=" text-green" id="cntlabel">Find jobs by country and work amount</h1>\n
    \t\t\t\t\t\t\t\t {% elseif getcontracttype is defined and getcontracttype!="" and (getcontracttype=="Unlimited employment" or getcontracttype=="Permanent") %}\n
    \t\t\t\t\t\t\t\t <h1 class=" text-green" id="cntlabel">Explore permanent job opportunities in {{searchlocation}}</h1>\n
    \t\t\t\t\t\t\t\t   {% else %}\n
    \t\t\t\t\t\t\t\t   <h1 class=" text-green" id="cntlabel">Investment management jobs in {{searchlocation}}</h1>\n
    \t\t\t\t\t\t\t\t\t   {% endif %}\n
    \t\t\t\t\t\t\t{% elseif searchlocation is defined and searchlocation=="Remote" and searchlocation!="" and searchlocation!="global" %}\n
    \t\t\t\t\t\t\t<h1 class=" text-green" id="cntlabel">Investment management virtual jobs</h1>\n
    \t\t\t\t\t\t\t{% elseif getworkarea is defined and getworkarea!="" %}\n
    \t\t\t\t\t\t\t<h1 class=" text-green" id="cntlabel">Find {{getworkarea}} jobs in investment management</h1>\n
    \t\t\t\t\t\t\t {% elseif getseniority is defined and getseniority!="" %}\n
    \t\t\t\t\t\t\t <h1 class=" text-green" id="cntlabel">Seniority level jobs in investment management Industry</h1>\n
    \t\t\t\t\t\t\t {% elseif getworkamt is defined and getworkamt!="" and getworkamt=="Full time" %}\n
    \t\t\t\t\t\t\t <h1 class=" text-green" id="cntlabel">Full time job in investment management industry</h1>\n
    \t\t\t\t\t\t\t {% elseif getcontracttype is defined and getcontracttype!="" and (getcontracttype=="Unlimited employment" or getcontracttype=="Permanent") %}\n
    \t\t\t\t\t\t\t <h1 class=" text-green" id="cntlabel">Permanent jobs in the investment management industry</h1>\n
    \t\t\t\t\t\t\t{% else %}\n
    \t\t\t\t\t\t\t<h1 class=" text-green" id="cntlabel">Find jobs in the investment management industry</h1>\n
    \t\t\t\t\t\t\t{% endif %}\n
    \t\t\t\t\t\t\t\n
                        </div>\n
                        \n
                    {% if app.user.getId() is defined %}       \n
                        <div class="col-md-2 col-sm-4 col-xs-12 text-right mtop20"><a class="btn btn-variation-line" href="{{ path('job_create')}}">Add your job</a></div>\n
                    {% else %}\n
                        <a href="javascript:void(0)" class="btn btn-variation-line" data-toggle="modal" data-target="#loginmodal">Add your job</a>\n
                        \n
                    {% endif %}    \n
                        \n
                    </div>\n
                    <div class="row"> \n
    \n
                        <!--Left Panel start-->\n
    \n
                        <div id="left-filter" class="col-md-4 col-sm-5 col-xs-12 mtop20 hide-for-sm relative">\n
                            <a href="javascript:void(0)" class="back-to-page visible-xs"><i class="fa fa-angle-left"></i> Hide filters</a>\n
                            <div class="white-background padd20">\n
                                <div class="btn-group btn-group-justified" role="group" aria-label="...">\n
                                    <div class="btn-group" role="group">\n
                                        <button type="button" class="btn btn-default" id="alljob">All</button>\n
                                    </div>\n
                                    <div class="btn-group" role="group">\n
                                        <button type="button" class="btn btn-default" id="watchlist">Watchlist</button>\n
                                    </div>\n
                                    <div class="btn-group" role="group">\n
                                        <button type="button" class="btn btn-default" id="mine">Mine</button>\n
                                    </div>\n
                                    <input type="hidden" id="activetab" value="">\n
                                </div>\n
                                <div class="col-xs-12 mtop20">\n
                                    <div class="row">\n
                                        <div class="input-group stylish-input-group">\n
                                            {#                <input type="text" class="form-control" name="jobtitle" id="jobtitle" value="{{title}}"  placeholder="Job Title">#}\n
    \t\t\t\t\t\t\t\t\t\t\t{% if getjobtitle is defined and getjobtitle!="" %}\n
    \t\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control nowidget" name="jobtitle" id="jobtitle" value="{{getjobtitle}}"  placeholder="">\n
    \t\t\t\t\t\t\t\t\t\t\t\t{% else %}\n
    \t\t\t\t\t\t\t\t\t\t\t\t<input type="text" class="form-control nowidget" name="jobtitle" id="jobtitle" value=""  placeholder="">\n
    \t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}\n
                                            <span class="input-group-addon">\n
    \n
                                                <button type="button" onclick="getjoblist(false)" > <span class="glyphicon glyphicon-search text-green"></span> </button>\n
                                            </span> </div>\n
                                    </div>\n
                                </div>\n
                                <div class="col-xs-12 mtop10">\n
                                    <div class="row">\n
                                        \n
                                       \n
                                        \n
                                        <h2> Search Filters </h2>\n
                                        <hr class="border-dark">\n
                                        <div class="clearfix"></div>\n
                                        \n
                                        <div class="panel-group" id="accordion">\n
                                            <div class="panel panel-default">\n
                                                <div class="panel-heading">\n
                                                    <h4 class="panel-title"> <a class="accordion-toggle collapsed nowidget offeredorgg" data-toggle="collapse" data-parent="#accordion" href="#collapsetwo" id="offereby">Offered by</a> </h4>\n
                                                </div>\n
                                                <div id="collapsetwo" class="panel-collapse collapse">\n
                                                    <div class="panel-body">\n
                                                        <div class="form-group">\n
                                                            <label class="font-300 text-black">Name</label>\n
                                                            {#<input type="text" name="" id="postedby" name="postedby" class="form-control" placeholder="" onchange="getjoblist()" onselect="getjoblist()">#}\n
                                                            {#<input type="text" name="" value="{{title}}" id="postedby" name="postedby" class="form-control" placeholder="" onselect="getjoblist(false)"> #}\n
                                                            \n
                                                            <input type="text" name="" value="" id="postedby" name="postedby" class="form-control" placeholder="">\n
    \t\t\n
                                                            <div class="postedby dropdown hide-select col-xs-12">\n
                                                              <button id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n
                                                                Dropdown trigger\n
                                                                <span class="caret"></span>\n
                                                              </button>\n
                                                              <ul class="dropdown-menu col-xs-12 asset-manage" aria-labelledby="dLabel">\n
    \n
                                                              </ul>\n
                                                            </div>\n
    \n
                                                        <div id="assetdata">\n
    \n
    \n
                                                        </div>\n
                                                        </div>\n
                                                            {# set employer text #}\n
                                                            <span class="organizersearch" style="display:none">{{companysearch}}</span>\n
                                                            {# end #}\n
                                                        {#<div class="form-group">\n
                                                            <a href="javascript:void(0)" style="display:none" class="alertbox" data-toggle="modal" data-target="#alertmodal"></a>\n
                                                            <label class="font-300 text-black">Tag</label>\n
                                                            <select class="selectpicker" id="taginput">\n
                                                                <option value="">None selected</option>\n
                                                            </select>\n
                                                            \n
                                                        </div>#}\n
                                                        {#<div class="form-group">\n
                                                            <label class="font-300 text-black">Type</label>\n
                                                            <select class="selectpicker">\n
                                                                \n
                                                                <option value="">None selected</option>\n
                                                            </select>\n
                                                        </div> #}\n
                                                        <div class="form-group">\n
                                                            <input type="checkbox" value="multi asset1" id="ck1" class="fa-14" name="employer" >\n
                                                            <label for="ck1" class="font-300 text-black">Show direct employers only</label>\n
    \n
                                                        </div>\n
                                                    </div>\n
                                                </div>\n
                                                                    </div>\n
                                                                  <hr class="border-dark">\n
                                                <div class="clearfix"></div>  \n
                                                <div class="panel panel-default">\n
                                     \n
                                           \n
                                                <div class="panel-heading">\n
                                                    <h4 class="panel-title"> <a class="accordion-toggle collapsed nowidget showcontrtypee" data-toggle="collapse" data-parent="#accordion" href="#collapseThree"> Contract type</a> </h4>\n
                                                </div>\n
                                                <div id="collapseThree" class="panel-collapse collapse">\n
                                                    <div class="panel-body  bootstrap-select  multiselect-style lang">\n
                                                        <div class=""> \n
                                                            <select name="selecttype[]" id="selecttype" multiple="multiple" onchange="getjoblist(false)" class="custom-select-item" >    \n
                                                                {% if getcontracttype is defined and getcontracttype!="" %}\n
                                                                    {% if getcontracttype=="Contract" %}\n
                                                                        {% set select2 = ' selected="selected"' %} {% set select1 = '' %}\n
                                                                        {% set select3 = ' selected="selected"' %}{% set select4 = ' selected="selected"' %}\n
                                                                        {% else %}\n
                                                                    {% if getcontracttype=="Unlimited employment" or getcontracttype=="Permanent" %}\n
                                                                        {% set select1 = ' selected="selected"' %} {% set select2 = '' %}{% set select3 = '' %}{% set select4 = '' %}\n
                                                                    {% elseif getcontracttype=="Temporary" %}\n
                                                                        {% set select1 = '' %} {% set select3 = '' %}{% set select4 = '' %}\n
                                                                        {% set select2 = ' selected="selected"' %}\n
                                                                    {% elseif getcontracttype=="Freelance" %}\n
                                                                        {% set select1 = '' %}{% set select2 = '' %}{% set select4 = '' %}\n
                                                                        {% set select3 = ' selected="selected"' %}\n
                                                                    {% elseif getcontracttype=="Stage/Apprenticeship" %}\n
                                                                        {% set select1 = '' %}{% set select2 = '' %}{% set select3 = '' %}\n
                                                                        {% set select4 = ' selected="selected"' %}\n
                                                                    {% else %}\n
                                                                           {% set select1 = '' %} {% set select2 = '' %} {% set select3 = '' %}{% set select4 = '' %}\n
                                                                        {% endif %}\n
                                                                        {% endif %}\n
                                                                    <option value="1" {{select1}}>Unlimited employment</option>\n
                                                                    <option value="2" {{select2}}>Temporary</option>\n
                                                                    <option value="3" {{select3}}>Freelance</option>\n
                                                                    <option value="4" {{select4}}>Stage/Apprenticeship</option>\n
                                                                    \n
                                                                    {% else %}\n
                                                                    <option value="1">Unlimited employment</option>\n
                                                                    <option value="2">Temporary</option>\n
                                                                    <option value="3">Freelance</option>\n
                                                                    <option value="4">Stage/Apprenticeship</option>\n
                                                                    {% endif %}\n
                                                                \n
                                                            </select>\n
                                                        </div>\n
                                                    </div>\n
                                                </div>\n
                                                  </div>\n
                                                <hr class="border-dark">\n
                                                <div class="clearfix"></div> \n
                                                <div class="panel panel-default">\n
                                                <div class="panel-heading">\n
                                                    <h4 class="panel-title"> <a class="accordion-toggle collapsed nowidget showseniorityy" data-toggle="collapse" data-parent="#accordion" href="#collapseFour"> Seniority level</a> </h4>\n
                                                </div>\n
                                                \n
                                                \n
    \n
                                                <div id="collapseFour" class="panel-collapse collapse">\n
                                                    <div class="panel-body bootstrap-select multiselect-style lang">\n
                                                            <select name="seniority[]" id="seniority" multiple="multiple" onchange="getjoblist(false)" class="custom-select-item" >\n
                                                             {% if getseniority is defined and getseniority!="" %}\n
                                                                 {% if getseniority=="Experienced" %}\n
                                                                     {% set select5 = '' %}{% set select6 = '' %}\n
                                                                        {% set select7 = ' selected="selected"' %} {% set select8 = ' selected="selected"' %}\n
                                                                         {% set select9 = ' selected="selected"' %}  {% set select10 = ' selected="selected"' %}\n
                                                                 {% elseif getseniority=="Non experienced" %}\n
                                                                     {% set select5 = ' selected="selected"' %}{% set select6 = ' selected="selected"' %}\n
                                                                        {% set select7 = '' %} {% set select8 = '' %}\n
                                                                         {% set select9 = '' %}  {% set select10 = '' %}\n
                                                                     {% else %}\n
                                                                    {% if getseniority=="Internship" %}\n
                                                                        {% set select5 = ' selected="selected"' %} {% set select6 = '' %}{% set select7 = '' %}{% set select8 = '' %} {% set select9 = '' %} {% set select10 = '' %}\n
                                                                    {% elseif getseniority=="Entry level" %}\n
                                                                        {% set select6 = ' selected="selected"' %} {% set select5 = '' %}{% set select7 = '' %}{% set select8 = '' %} {% set select9 = '' %} {% set select10 = '' %}\n
                                                                    {% elseif getseniority=="Associate" %}\n
                                                                        {% set select5 = '' %}{% set select6 = '' %}{% set select8 = '' %} {% set select9 = '' %} {% set select10 = '' %}\n
                                                                        {% set select7 = ' selected="selected"' %}\n
                                                                    {% elseif getseniority=="Mid-senior level" %}\n
                                                                        {% set select5 = '' %}{% set select6 = '' %}{% set select7 = '' %} {% set select9 = '' %} {% set select10 = '' %}\n
                                                                        {% set select8 = ' selected="selected"' %}\n
                                                                   {% elseif getseniority=="Director" %}\n
                                                                        {% set select5 = '' %}{% set select6 = '' %}{% set select7 = '' %} {% set select8 = '' %} {% set select10 = '' %}\n
                                                                        {% set select9 = ' selected="selected"' %}\n
                                                                    {% elseif getseniority=="Executive" %}\n
                                                                        {% set select5 = '' %}{% set select6 = '' %}{% set select7 = '' %} {% set select8 = '' %} {% set select9 = '' %}\n
                                                                        {% set select10 = ' selected="selected"' %}\n
                                                                    {% else %}\n
                                                                           {% set select5 = '' %} {% set select6 = '' %} {% set select7 = '' %}{% set select8 = '' %} {% set select9 = '' %} {% set select10 = '' %}\n
                                                                        {% endif %}\n
                                                                    {% endif %}    \n
                                                                    <option value="0">Not applicable</option>\n
                                                                    <option value="1" {{select5}}>Internship</option>\n
                                                                    <option value="2" {{select6}}>Entry level</option>\n
                                                                    <option value="3" {{select7}}>Associate</option>\n
                                                                    <option value="4" {{select8}}>Mid-senior level</option>\n
                                                                    <option value="5" {{select9}}>Director</option>\n
                                                                    <option value="6" {{select10}}>Executive</option>\n
                                                                {% else %}\n
                                                                    <option value="0">Not applicable</option>\n
                                                                    <option value="1">Internship</option>\n
                                                                    <option value="2">Entry level</option>\n
                                                                    <option value="3">Associate</option>\n
                                                                    <option value="4">Mid-senior level</option>\n
                                                                    <option value="5">Director</option>\n
                                                                    <option value="6">Executive</option>\n
                                                                    {% endif %}\n
                                                            </select>\n
                                                    </div>\n
                                                </div>\n
    \n
                                                    {#<div id="collapse4" class="panel-collapse collapse">\n
                                                    <div class="panel-body">\n
                                                        <div class="form-group">        \n
                                                            <select class="selectpicker" name="seniority" id="seniority" onchange="getjoblist(false)" multiple="multiple" >\n
                                                                <option value="">All</option>\n
                                                                <option value="0">Not applicable</option>\n
                                                                <option value="1">Internship</option>\n
                                                                <option value="2">Entry level</option>\n
                                                                <option value="3">Associate</option>\n
                                                                <option value="4">Mid-senior level</option>\n
                                                                <option value="5">Director</option>\n
                                                                <option value="6">Executive</option>\n
                                                            </select>                          \n
                                                        </div>\n
                                                    </div>\n
                                                </div>#}\n
                                                     </div>\n
                                                <hr class="border-dark">\n
                                                <div class="clearfix"></div>\n
                                                <div class="panel panel-default">\n
                                                <div class="panel-heading">\n
                                                    <h4 class="panel-title"> <a class="accordion-toggle collapsed nowidget showworkamtt" data-toggle="collapse" data-parent="#accordion" href="#collapseNine">Work amount</a> </h4>\n
                                                </div>\n
                                                <div id="collapseNine" class="panel-collapse collapse">\n
                                                    <div class="panel-body bootstrap-select multiselect-style lang">\n
                                                            <select name="workamount[]" id="workamount" multiple="multiple" onchange="getjoblist(false)" class="custom-select-item">\n
                                                                \n
                                                                {% if getworkamt is defined and getworkamt!="" %}\n
                                                                    {% if getworkamt=="Full time" %}\n
                                                                        {% set select11 = ' selected="selected"' %} {% set select12 = '' %} {% set select13 = '' %}{% set select14 = '' %} {% set select15 = '' %} \n
                                                                    {% elseif getworkamt=="Part time" %}\n
                                                                        {% set select11 = '' %}{% set select15 = '' %}  \n
                                                                        {% set select12 = ' selected="selected"' %}{% set select13 = ' selected="selected"' %}{% set select14 = ' selected="selected"' %}{% set select15 = ' selected="selected"' %}\n
                                                                    {% elseif getworkamt=="90 100" %}\n
                                                                       {% set select11 = ' selected="selected"' %} {% set select12 = '' %} {% set select13 = '' %}{% set select14 = '' %} {% set select15 = '' %} { \n
                                                                    {% elseif getworkamt=="70 90" %}\n
                                                                        {% set select11 = '' %} {% set select13 = '' %} {% set select14 = '' %} {% set select15 = '' %} \n
                                                                        {% set select12 = ' selected="selected"' %}\n
                                                                   {% elseif getworkamt=="50 70" %}\n
                                                                        {% set select11 = '' %} {% set select12 = '' %} {% set select14 = '' %}{% set select15 = '' %} \n
                                                                        {% set select13 = ' selected="selected"' %}\n
                                                                   {% elseif getworkamt=="30 50" %}\n
                                                                        {% set select11 = '' %} {% set select12 = '' %} {% set select13 = '' %}{% set select15 = '' %}\n
                                                                        {% set select14 = ' selected="selected"' %}\n
                                                                   {% elseif getworkamt=="Below 30" %}\n
                                                                        {% set select11 = '' %} {% set select12 = '' %} {% set select13 = '' %}{% set select14 = '' %}\n
                                                                        {% set select15 = ' selected="selected"' %}\n
                                                                    {% else %}\n
                                                                           {% set select11 = '' %} {% set select12 = '' %} {% set select13 = '' %}{% set select14 = '' %} {% set select15 = '' %} \n
                                                                        {% endif %}\n
                                                                     <option value="5" {{select11}}>90% till 100%</option>\n
                                                                    <option value="4" {{select12}}>70% till 90%</option>\n
                                                                    <option value="3" {{select13}}>50%  till 70%</option>\n
                                                                    <option value="2" {{select14}}>30% till 50%</option>\n
                                                                    <option value="1" {{select15}}>Below 30%</option>\n
                                                                {% else %}\n
                                                                    <option value="5">90% till 100%</option>\n
                                                                    <option value="4">70% till 90%</option>\n
                                                                    <option value="3">50%  till 70%</option>\n
                                                                    <option value="2">30% till 50%</option>\n
                                                                    <option value="1">Below 30%</option>\n
                                                                    {% endif %}\n
                                                            </select>\n
                                                    </div>\n
                                                </div>\n
    \n
                                                    {#<div id="collapse4" class="panel-collapse collapse">\n
                                                    <div class="panel-body">\n
                                                        <div class="form-group">\n
                                                            <select class="selectpicker" name="seniority" id="seniority" onchange="getjoblist(false)" multiple="multiple" >\n
                                                                <option value="">All</option>\n
                                                                <option value="0">Not applicable</option>\n
                                                                <option value="1">Internship</option>\n
                                                                <option value="2">Entry level</option>\n
                                                                <option value="3">Associate</option>\n
                                                                <option value="4">Mid-senior level</option>\n
                                                                <option value="5">Director</option>\n
                                                                <option value="6">Executive</option>\n
                                                            </select>\n
                                                        </div>\n
                                                    </div>\n
                                                </div>#}\n
                                                     </div>\n
                                                     \n
                                                     \n
                                                <hr class="border-dark">\n
                                                <div class="clearfix"></div> \n
                                                <span class="workareaselected" style="display:none">{{workareaselected}}</span>\n
                                                <div class="panel panel-default">\n
                                                    \n
                                                    \n
                   <div class="row">\n
                   <div class="relative inline-block col-xs-12 area-div">\n
                      <a href="javascript:void(0)" class="accordion-toggle collapsed tooltip-custom active-tooltip text-grey new-area"> Work area</a>\n
                       \n
                            <div class="clearfix"></div><a style="display:none" href="javascript:void(0)" class="area-selector accordion-toggle collapsed tooltip-custom active-tooltip new-area">Adjust selection</a> \n
                       <div class="clearfix"></div><div class="clearfix"></div>\n
                        <div class="clearfix"></div>\n
                       <div id="areapopupsearch" class="input-group stylish-input-group searchstyle" style="display:none;margin-top:5px">\n
                       <input type="text" name="" class="form-control" />\n
                       <span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span>\n
                       \n
                       </div>\n
                       <div class="dropdown hide-select col-xs-12 areapopupsearch">\n
    \t\t\t  <button id="dLabel2" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\n
    \t\t\t    Dropdown trigger\n
    \t\t\t    <span class="caret"></span>\n
    \t\t\t  </button>\n
    \t\t\t  <ul class="dropdown-menu col-xs-12 areapopuplist" aria-labelledby="dLabel">\n
    \t\t\t   \n
    \t\t\t  </ul>\n
    \t            </div>\n
                       \n
                                   <div class="panel-body area-selected" style="display:none">\n
                                                        \n
                                       \n
                                   </div>\n
                        \n
                   \n
                       <!--Share link Tooltip popup start -->\n
                    <div class="arrow_box area-arrow"></div>\n
                    <!--Tooltip cotent aria start-->\n
                    <div class="tooltip-body-left area-tooltip">\n
                         <div class="col-sm-12 nopadding">\n
                        <div class="text-right"><a href="javascript:void(0)" class="area-closepopup close-popup text-grey" style="padding-right:10px"><i class="fa fa-close"></i></a> </div>\n
                      </div>\n
                        {% set areatext = "" %}\n
                                                    <select class="form-control mleft20 search-widget" style="width:400px" id="job_area">\n
                                                        {% for kk,work_area in work_area_nodes %}\n
                                                            <option value="{{ work_area.id }}">{{ work_area.text }}</option>     \n
                                                        {% if kk==0 %} {% set areatext = work_area.text %} {% endif %}\n
                                                        {% endfor %}\n
                                                    </select>\n
                               {% set countdef = 0 %}                  \n
                    {% for work_area in work_area_arr %} {% set countallarea = [] %}\n
                                        {% if countdef == 0 %}\n
                                                <div id="{{work_area.id}}" name="{{work_area.id}}" class="col-sm-12  padd20 job_area">\n
                                                    {% else %}\n
                                                        <div id="{{work_area.id}}" name="{{work_area.id}}" class="col-sm-12  padd20 job_area" style="display:none;">\n
                                                        {% endif %}\n
                                                \n
                                              {% if work_area.children is defined %}\n
                                                {% for child_node1 in work_area.children %} \n
                                                                    {% if child_node1 is defined %}\n
                                                                        {% if countallarea[0] is not defined %}        \n
                                                                            <input id="allarea_{{child_node1.id}}" value="allarea" type="checkbox" class="fa-14 allarea" ><label class="font-300 text-black area-label" for="allarea_{{child_node1.id}}"><span class="selectedareaval font-700">Select all</span></label>  <div class="clearfix"></div>\n
                                                    {% endif %}   {% endif %} \n
                                                                    {% set countallarea = countallarea|merge([child_node1.id])%}\n
                                                                    {% endfor %}\n
                                                                    {% endif %}\n
                                              \n
                                                      \n
                                                    \n
                                                    {% if work_area.children is defined %} {# Node_1 Check if any Children is defined #}\n
                                                        <div class="col-sm-12">\n
                                                            <div class="row"> {% set childfirst = 1 %}\n
                                                                {% for child_node1 in work_area.children %} \n
                                                                    {% if child_node1 is defined %}\n
                                                                        {% if child_node1.children is defined %} \n
                                                                            <div class="col-sm-6">\n
                                                                                <div class="row">\n
                                                                                    <input class="{{work_area.id}}_child_{{childfirst}}" id="areasecond_{{child_node1.id}}" value="allareasecond" type="checkbox" /> {# <label class="font-300 text-black" for="vehiclesecond_{{child_node1.id}}"> </label> #}\n
                                                                                     <label id="{{work_area.id}}_child_{{childfirst}}" class="mtop10" for="areasecond_{{child_node1.id}}">{{child_node1.text|raw}}</label> \n
                                                                                    <div class="mleft20"> {% set childsecond = 1 %}\n
                                                                                        {% for child_node2 in child_node1.children %}                                                                               \n
                                                                                            {% if child_node2 is defined %}\n
                                                                                                {% if child_node2.children is defined %} \n
                                                                                                    <input class="{{work_area.id}}_child_{{childfirst}}_{{childsecond}}" id="areathird_{{child_node2.id}}" value="allareathird" type="checkbox" /><label id="{{work_area.id}}_child_{{childfirst}}_{{childsecond}}" class="font-300 text-black" for="areathird_{{child_node2.id}}"> </label>\n
                                                                                                     <label class="mtop10">{{child_node2.text|raw}}</label><br/>\n
                                                                                                    <div class="mleft20">\n
                                                                                                        {% for child_node3 in child_node2.children %}                                                                                             \n
                                                                                                            {% if child_node3.children is defined %} \n
                                                                                                                <input id="areaforth_{{child_node3.id}}" value="allareaforth" type="checkbox" /><label class="font-300 text-black" for="areaforth_{{child_node3.id}}"> </label>\n
                                                                                                                <label class="mtop10">{{child_node3.text|raw}}</label>\n
                                                                                                            {% else %}                                                                                                       \n
                                                                                                                <input id="area_{{child_node3.id}}" name="check_list_area[]" value="{{child_node3.id}}" type="checkbox" class="fa-14 chkbox_req_area" ><label class="font-300 text-black" for="area_{{child_node3.id}}">{{child_node3.text|raw}} </label>  <div class="clearfix"></div>                                                                                                          \n
                                                                                                            {% endif %}                                                                                             \n
                                                                                                        {% endfor %}\n
                                                                                                    </div>\n
                                                                                                {% else %}\n
                                                                                                    <input id="area_{{child_node2.id}}" name="check_list_area[]" value="{{child_node2.id}}" type="checkbox" class="{{work_area.id}}_child_{{childfirst}}_{{childsecond}} fa-14 chkbox_req_area" ><label id="{{work_area.id}}_child_{{childfirst}}_{{childsecond}}" class="font-300 text-black" for="area_{{child_node2.id}}">{{child_node2.text|raw }} </label> <div class="clearfix"></div>                                                                                                                                                        \n
                                                                                                {% endif %}                                                                \n
                                                                                            {% endif %} {% set childsecond = childsecond+1 %}                                                                               \n
                                                                                        {% endfor %} \n
                                                                                    </div>\n
                                                                                </div>\n
                                                                            </div>\n
                                                                        {% else %}   \n
                                                                            \n
                                                                            <input id="area_{{child_node1.id}}" name="check_list_area[]" value="{{child_node1.id}}" type="checkbox" class="{{work_area.id}}_child_{{childfirst}} fa-14 chkbox_req_area">{#<label class="font-300 text-black"></label> #}<label for="area_{{child_node1.id}}" id="{{work_area.id}}_child_{{childfirst}}">{{child_node1.text|raw}}</label> <div class="clearfix"></div>\n
                                                                            \n
                                                                        {% endif %}\n
                                                                    {% endif %} {% set childfirst = childfirst+1 %}\n
                                                                {% endfor %}                                                        \n
                                                            </div>\n
                                                        </div>\n
                                                    {% else %}\n
    \n
                                                    {% endif %}\n
                                                </div> \n
                                                {% set countdef = countdef+1 %}\n
                                                \n
                                            {% endfor %}\n
                    \n
                     <!--Tooltip cotent aria End-->\n
                    \n
                  </div>\n
                  </div>\n
                   </div>\n
                   <!--Right tooltip End -->\n
                      \n
                   </div> \n
                                            \n
                                                 {#    \n
                                                <div class="panel-heading">\n
                                                    <h4 class="panel-title"> <a class="accordion-toggle collapsed" data-toggle="collapse" data-parent="#accordion" href="#collapseSix">Work area</a> </h4>\n
                                                </div>\n
                                                <div id="collapseSix" class="panel-collapse collapse">\n
                                                    <div class="panel-body">\n
                                                        <ul class="workarea nopadding">\n
                                                            {% for work_area in work_area_nodes %}\n
                                                                <li><a href="javascript:void(0);" onclick="getassetsval('{{ work_area.id }}')">{{ work_area.text|raw }} </a></li>\n
                                                            {% endfor %} \n
                                                        </ul>\n
                                                    </div>\n
                                                        \n
                                                   {% for work_area in work_area_arr %}                                         \n
                                                    <div id="workarea_{{work_area.id}}" name="workarea_{{work_area.id}}" class="col-sm-12  padd20 jobs_work_area" style="display:none;" >\n
                                                        {% if work_area.children is defined %} \n
                                                            <div class="col-sm-12 " >\n
                                                                <div class="row">\n
                                                                    {% for child_node1 in work_area.children %} \n
                                                                        {% if child_node1 is defined %}\n
                                                                            {% if child_node1.children is defined %} \n
                                                                                <div class="col-sm-6">\n
                                                                                    <div class="row">\n
                                                                                        <label class="mtop10">{{child_node1.text|raw}}</label>\n
                                                                                        <div class="mleft20">\n
                                                                                            {% for child_node2 in child_node1.children %}                                                                               \n
                                                                                                {% if child_node2 is defined %}\n
                                                                                                    {% if child_node2.children is defined %} \n
                                                                                                        <label class="mtop10">{{child_node2.text|raw}}</label><br/>\n
                                                                                                        <div class="mleft20">\n
                                                                                                            {% for child_node3 in child_node2.children %}                                                                                             \n
                                                                                                                {% if child_node3.children is defined %} \n
                                                                                                                    <label class="mtop10">{{child_node3.text|raw}}</label>\n
                                                                                                                {% else %}                                                                                                       \n
                                                                                                                    <input id="wa_{{child_node3.id}}" name="check_list_work_area[]" value="{{child_node3.id}}" type="checkbox" class="fa-14 chkbox_req_work_area" ><label class="font-300 text-black" for="wa_{{child_node3.id}}">{{child_node3.text|raw}} </label>  <div class="clearfix"></div>                                                                                                          \n
                                                                                                                {% endif %}                                                                                             \n
                                                                                                            {% endfor %}\n
                                                                                                        </div>\n
                                                                                                    {% else %}\n
                                                                                                        <input id="wa_{{child_node2.id}}" name="check_list_work_area[]" value="{{child_node2.id}}" type="checkbox" class="fa-14 chkbox_req_work_area" ><label class="font-300 text-black" for="wa_{{child_node2.id}}">{{child_node2.text|raw }} </label> <div class="clearfix"></div>                                                                                                                                                        \n
                                                                                                    {% endif %}                                                                \n
                                                                                                {% endif %}                                                                                \n
                                                                                            {% endfor %} \n
                                                                                        </div>\n
                                                                                    </div>\n
                                                                                </div>\n
                                                                            {% else %}                                                                                                                                                                          \n
                                                                                <input id="wa_{{child_node1.id}}" name="check_list_work_area[]" value="{{child_node1.id}}" type="checkbox" class="fa-14 chkbox_req_work_area"><label class="font-300 text-black" for="wa_{{child_node1.id}}">{{child_node1.text|raw}}</label> <div class="clearfix"></div>                                                                                                                                                                                            \n
                                                                            {% endif %}\n
                                                                        {% endif %}\n
                                                                    {% endfor %}                                                        \n
                                                                </div>\n
                                                            </div>\n
                                                        {% else %}\n
    \n
                                                        {% endif %}\n
                                                    </div>                                                                               \n
                                                {% endfor %}                                                    \n
                                                        \n
                                                </div>\n
                                                <hr class="border-dark">\n
                                                <div class="clearfix"></div>\n
    \n
                                                <div class="panel-heading hidden">\n
    \n
                                                    <div class="row">\n
                                                        <div class="relative inline-block text-green col-xs-12"><a href="javascript:void(0)" class="tooltip-custom active-tooltip text-grey"> Work area</a> \n
                                                            \n
                                                            <div class="arrow_box"></div>\n
                                                            \n
    \n
                                                            <div class="tooltip-body-left padd20">\n
                                                                <div class="col-sm-12 nopadding">\n
                                                                    <div class="text-right"><a href="javascript:void();" class="close-popup text-grey"><i class="fa fa-close"></i></a> </div>\n
                                                                </div>\n
                                                                \n
                                                                <div class="clearfix"></div>\n
                                                                <div class="col-sm-12"> \n
    \n
                                                                    <div class="row"> \n
                                                                        <div class="col-sm-8"> \n
    \n
                                                                            <select id="workareasearch" onchange="getserviceprofile(this.value)" class="form-control" name="area">\n
                                                                                <option value="">Select Area</option>\n
                                                                                <option value="Job Area1"> Job Area1</option>\n
                                                                                <option value="Job Area2"> Job Area2</option>\n
                                                                                <option value="Job Area3"> Job Area3</option>\n
                                                                                <option value="Job Area4"> Job Area4</option>\n
                                                                            </select>\n
    \n
    \n
                                                                        </div>\n
    \n
                                                                        <div class="col-sm-12">\n
                                                                            <input id="check31" type="checkbox" class="fa-14"  />\n
                                                                            \n
                                                                            <div class="clearfix"></div>\n
    \n
                                                                            <div class="row">\n
                                                                                <div id="areacontent" class="">\n
    \n
                                                                                </div>                                      \n
                                                                            </div>                                              \n
                                                                            \n
                                                                        </div>\n
                                                                    </div>\n
                                                   \n
                                                                </div>\n
                                                            </div>\n
    \n
                                                   \n
    \n
    \n
                                                        </div>\n
                                                    </div>\n
                                                   \n
    \n
                                                </div>                  \n
    \n
                                                  #}\n
                                                 <div class="clearfix"></div>\n
                                                  <hr class="border-dark">\n
                                                  \n
                                                <div class="clearfix"></div>\n
                                                <div class="panel-heading">\n
                                                    <h4 class="panel-title"> \n
                                                        <a class="collapsed counnfilter accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseten">Country</a>\n
                                                        \n
                                                    </h4>\n
                                                </div>\n
                                                    <div id="collapseten" class="panel-collapse collapse">\n
                                                    <div style="border-top: 0px" class="panel-body  bootstrap-select multiselect-style lang taxreportingdiv">\n
                                                        \n
                                                        <select id="service_head_country" name="service_head_country[]"  multiple="multiple">\n
                                                                       <option value="Remote">Remote</option>\n
                                                                        <option value="eucountries">All EU countries</option>\n
                                                                        {% for  con in country.favourites %}\n
                                    \n
                                                                            <option value="{{con.name}}{{'::::'}}{{con.code}}">{{con.name}}</option>\n
                                                                        {% endfor %} \n
                                                                        <optgroup label="------------------------------------------------------------------------------------">\n
                                                                            {% for m,cont in country.country %}\n
                                                                            {% if m!="IC" and m!="EA" %}\n
                                                                                <option value="{{cont}}{{'::::'}}{{m}}">{{cont}}</option>\n
                                                                                {% endif %}\n
                                                                            {% endfor %}\n
                                                                        </optgroup>\n
                                                                    </select>\n
                                                    </div>\n
                                                </div>\n
                                                \n
                                                {#<label style="font-size:15px">Location</label> \n
                                                <br/>\n
                                                <div class="col-md-12 mtop10">\n
                                                    <div class="row">\n
                                                        <div id="map-canvas" style="height:200px;overflow: hidden"></div>               \n
                                                    </div>\n
    \n
                                                </div>\n
                                                <div class="clearfix"></div>\n
                                                <div class="left-inner-addon ">\n
                                                    <i aria-hidden="true" class="fa fa-map-marker text-danger "></i>\n
                                                    <input type="text" name="location" class="form-control mtop20 nowidget" id="txtPlaces" placeholder="">\n
                                                </div>\n
                                                <div class="clearfix"></div> #}\n
                                                \n
                                                <div id="locationdata">\n
                                                </div>\n
    \n
                                                <div class="clearfix"></div>\n
                                                <hr class="border-dark">\n
                                                <div class="clearfix"></div>\n
                                                <div class="panel-heading">\n
                                                    <h4 class="panel-title"> <a class="accordion-toggle collapsed nowidget" data-toggle="collapse" data-parent="#accordion" href="#collapseSeven">Languages</a> </h4>\n
                                                </div>\n
                                                <div id="collapseSeven" class="panel-collapse collapse">\n
                                                    <div style="border-top: 0px" class="panel-body  bootstrap-select multiselect-style lang">\n
                                                        <select name="language[]" id="language" multiple="multiple" onchange="getjoblist(false)" class="custom-select-item" >\n
                                                            <optgroup label="">                                                \n
                                                                {% for  lan in language.favourites %}\n
                                                                   <option value="{{lan.code}}">{{lan.name}}</option>\n
                                                               {% endfor %}                                                \n
                                                           </optgroup>\n
                                                            <optgroup label="----------------">\n
                                                                {% for  lang in language.languages %}\n
                                                                    <option value="{{lang.code}}">{{lang.name}}</option>\n
                                                                {% endfor %}\n
                                                            </optgroup>\n
                                                        </select>\n
                                                    </div>\n
                                                </div>\n
         </div>\n
                                            <!-- commen this line -->\n
                                              {# </div> #} \n
                                                            \n
                                                            <hr class="border-dark">\n
                                        </div>\n
                                       \n
                                    </div>\n
                                </div>\n
                                <div class="clearfix"></div>\n
                                \n
                                {# Do you know section start #}\n
                                 <div class="mydoyouknow"></div>\n
                               {# section end #}\n
                               {% set altval22 = "" %}\n
    \t\t\t\t\t\t\t   {% if bannerArr[0] is defined %}\n
                                {% for k,banner in bannerArr %} \n
                                           {% if k<1 %}\n
                                           <div class="col-md-4 col-sm-5 hidden-xs col-xs-12 mtop5 whie-background">\n
                                               <div class="padd30 white-bckground">\n
                                                   {% if banner['promoted_org']!="" and banner['promoted_org'] is not null %}\n
                                                   {% set altval22 = "Wide Skyscraper of "~banner['promoted_org'] %}\n
                                                   {% endif %}\n
                                                            <a href="javascript:void(0)" bannerid="{{banner['id']}}" target="_blank" class="targeturl" targetur="{{banner['target_url']}}">\n
                                                                    <img width="160px" height="600px" style=width:160px;height:600px" class="img-rsponsive" src="/var/uploads/files/{{banner['banner_file']}}" alt="{{altval22}}" />\n
                                                                </a>  \n
                                        </div></div>{% endif %}\n
                                    {% endfor %} {% endif %}\n
                               \n
                            </div>\n
                    \n
    \n
                        <!--Left Panel End--> \n
    \n
                        <!--Right Panel start-->\n
    \n
                        {# <div class="col-xs-12 visible-xs-filter text-right filter-icon mtop20">\n
                                 <a href="javascript:void(0)" class="show-filter"> Filters <i aria-hidden="true" class="fa fa-filter"></i></a>\n
                              </div> #}\n
                        <div class="col-xs-12 visible-xs-filter text-right filter-icon mtop20">\n
                            <a href="javascript:void(0)" class="show-filter"> Filters <i aria-hidden="true" class="fa fa-filter"></i></a>\n
                        </div>\n
                        <div class="col-md-8 col-sm-7 col-xs-12 mtop20" id="rightpanel">\n
                            <div class="white-background padd20">\n
                                <div class="col-xs-12">\n
                                    <div class="row">\n
                                        <h2 class="text-green nomargin subtitle"> {{ pagination.getTotalItemCount }} results</h2>\n
                                    </div>\n
                                    <div class="row">\n
    \n
                                        <div class="col-sm-12 text-right">\n
                                            <div class="row social-share-job">\n
                                                {% if pagination.getTotalItemCount>1 %}\n
                                                <span class="text-grey mright10">Sort by:</span>                               \n
                                                <span class="relevancesort"><a href="javascript:void(0)">Relevance</a></span> | <span class="defactive newestsort"><a href="javascript:void(0)">Newest</a></span>\n
                                                {% endif %}\n
                                                {#<ul style="width:300px;list-style:none;text-align:right;margin:0px;padding:0px;float:right" class="social-share-job nopadding-last f14-xs">#}\n
                                                   {# <li class="text-grey">Sort by:</li>#}\n
                                                  {# <span class="text-grey mright10">Sort by:</span>\n
                                                        {%if app.request.query.get("sort") == 'j.rating' %}                    \n
                                                        <span class="relevancesort">{{ knp_pagination_sortable(pagination, 'Relevance', 'j.rating') }}</span>                   \n
                                                        {%else%}\n
                                                        <span class="defactive relevancesort">{{ knp_pagination_sortable(pagination, 'Relevance', 'j.rating') }}</span>                                      \n
                                                        {% endif %}\n
                                                         | {%if app.request.query.get("sort") == 'j.id' %}\n
                                                        <span class="newestsort">{{ knp_pagination_sortable(pagination, 'Newest', 'j.id') }}</span>                   \n
                                                        {%else%}\n
                                                        <span class="newestsort">{{ knp_pagination_sortable(pagination, 'Newest', 'j.id') }}</span>                                      \n
                                                        {% endif %} #}   \n
    \n
                                                       \n
    \n
                                                {#</ul>#}\n
                                            </div>\n
                                        </div>\n
                                    </div>\n
                                    <div class="row">\n
                                        <hr class="border-dark">\n
                                        <div class="col-xs-12 mtop10">\n
                                            <div class="row">\n
                                                <h4>Subscribe to our jobs</h4>\n
                                                <p>Receive notification when a new job is posted that matches your criteria.</p>\n
                                            </div>\n
                                        </div>\n
                                        <div class="col-xs-12 mtop10">\n
                                            <div class="row">\n
                                            <a href="javascript:void(0)" class="btn padd-btn-all btn-variation text-wrap full-xs" data-toggle="modal" data-target="#message140">Subscribe</a>                  \n
                                            </div>\n
                                        </div>\n
                                    </div>\n
                                    <div class="clearfix"></div>\n
    \n
    \n
                                    <div id="text-render" class="row mtop20">\n
    \n
                                        {% if pagination.getTotalItemCount == 0 %}      \n
                                            <div class="col-xs-12 list__item__inner posted-job-view">\n
                                                No job found.\n
                                            </div>   \n
    \n
                                        {% endif %}                          \n
    \n
    \n
    \n
    \n
                                        {% for project in pagination %}\n
                                            <div class="col-xs-12 list__item__inner posted-job-view">\n
    \n
                                                {#<h2 class="mtop5">Job title/{{ project.title }}</h2>#}\n
                                                <h5 class="mtop5">\n
                                                    <a style="font-size:25px;color:#000000" href="{{ path('viewjobdetail', {'title': project.title|replace({' ': '-'}), 'id': project.id}) }}">{{ project.title }}</a>\n
                                                </h5>\n
                                                <p class="text-grey">{#{{ project.createdAt|date('D jS M Y h:i:s A') }}#}\n
                                                    {# {{ project.createdAt}} #}\n
                                                     <a class="text-grey pull-right" href="javascript:void(0)" onclick="watchlist({{project.id}})" id="watch{{project.id}}">\n
                                     {% if project.watch == "1" %}     \n
                                            <i class="fa fa-check text-green"></i> Watching</a> \n
                                     {% else %}       \n
                                            <i class="fa fa-plus text-green"></i> Watchlist</a> \n
                                     {% endif %} \n
                                                </p>\n
                                                <dl class="dl-horizontal">\n
                                                    <dt class="font-300 grey-color">Employer</dt>\n
                                                    <dd class="">\n
                                                        {% if project.is_personal=='1' %} \n
                                                            {# /{% set fulname = jobpostedby_myselffname[project.id]~" "~jobpostedby_myselflname[project.id] %} #}\n
                                             {# changed routing for employer #}                   \n
                                             {# <a href="{{ path('job_by_company_name', {'companyname': fulname}) }}">{{jobpostedby_myselffname[project.id]}} {{jobpostedby_myselflname[project.id]}}</a> #}\n
                                                            {#<a href="{{ path('frontend_offerIndividualProfile', {'firstname':jobpostedby_myselffname[project.id], 'dot':'.', 'lastname':jobpostedby_myselflname[project.id]}) }}">{{jobpostedby_myselffname[project.id]}} {{jobpostedby_myselflname[project.id]}}</a> #}\n
                                                            {{ project.postedbydesc }}\n
                                                                {% else %} \n
                                                                    {# <a href="{{ path('job_by_company_name', {'companyname': project.postedbydesc}) }}">{{ project.postedbydesc }}</a> #}\n
                                                                   \n
                                                                   <a href="{{ path('frontend_companyname_jobs', {'companyname':project.postedbydesc}) }}">{{ project.postedbydesc }}</a> \n
                                                                   {#{{ project.postedbydesc }}#}\n
                                                                    {% endif %} \n
                                                                    \n
                                                       \n
                                                    </dd>\n
                                                   \n
                                                       {# {% if project.postedbydesc=='Myself' %}\n
                                                            {% if positivefeedbackuser[project.id]>0 %}\n
                                                                 <dd class="font-700">\n
                                                                     <a target="_blank" href="{{ path('frontend_public_duediligence', {'firstname':jobpostedby_myselffname[project.id], 'dot':'.', 'lastname':jobpostedby_myselflname[project.id]}) }}">{{positivefeedbackuser[project.id]}}% positive feedbacks</a>\n
                                                            </dd>\n
                                                            {% endif %}\n
                                                            {% else %}\n
                                                                {% if positivefeedbackcompany[project.id]>0 %}\n
                                                                    <dd class="font-700">\n
                                                                  <a target="_blank" href="{{ path('frontend_companyname_investments_due-diligence', {'companyname':project.postedbydesc}) }}">{{positivefeedbackcompany[project.id]}}% positive feedbacks</a>\n
                                                            </dd>\n
                                                            {% endif %}\n
                                                                {% endif %} #}\n
                                                    \n
                                                    <dt class="font-300 grey-color">Contract type</dt>\n
                                                    <dd>{{ contype[project.contacttype] }}</dd>\n
                                                    {% if senio[project.seniority]!="Not applicable" %}\n
                                                    <dt class="font-300 grey-color">Seniority level </dt>\n
                                                    <dd>{{senio[project.seniority]}}</dd>\n
                                                    {% endif %}\n
                                                    <dt class="font-300 grey-color">Work amount </dt>\n
                                                    <dd>{{ wrkamount[project.workamount] }}</dd>\n
                                                    <dt class="font-300 grey-color">Work area </dt>\n
                                                    <dd>\n
                                                        {# {{project.workarea | wordwrap(70) }}  #}\n
                                                    <div class="Cell Cell1">\n
                                     <div id="tst-selectvechile2-{{project.id}}" style="display:block">\n
                                                  {% set workareavals = project.workarea %}\n
                                                  {% if workareavals!="" %} \n
                                                  {% set selected_area = workareavals|split(',') %}\n
                                                  {% if work_area_arr is defined %} \n
                    {% for veh_arr in work_area_arr %}                        \n
                        {% if veh_arr.children is defined %}\n
                                <ul class="selection-tree" treeareaid="{{project.id}}"> \n
                                    <li class="parent">{{veh_arr.text|raw}}</li>\n
                                    {% for child_node1 in veh_arr.children %}\n
                                        {% if child_node1 is defined %}\n
                                            {% if child_node1.children is defined %} \n
                                                             {% if child_node1.id in selected_area %}\n
                                                              <li class="child">{{child_node1.text|raw}}</li>\n
                                                              {% endif %}\n
                                                                {% for child_node2 in child_node1.children %}\n
                                                                    {% if child_node2 is defined %}\n
                                                                      {% if child_node2.id in selected_area %}\n
                                                                        {% if child_node2.children is defined %}\n
                                                                                    <li class="child">{{child_node2.text|raw }}</li> \n
                                                                                    {% for child_node3 in child_node2.children %}\n
                                                                                        {% if child_node3 is defined %}\n
                                                                                            {% if child_node3.id in selected_area %}\n
                                                                                                    <li class="grand-child">{{child_node3.text|raw}}</li>\n
                                                                                              {% endif %}\n
                                                                                        {% endif%}\n
                                                                                    {% endfor %}                                                              \n
                                                                        {% else %}\n
                                                                        <li class="grand-child">{{child_node2.text|raw }}</li> \n
                                                                        {% endif %} \n
                                                                      {% endif %} \n
    \n
                                                                    {% endif %} \n
                                                                {% endfor %}\n
                                                {% else %}\n
                                                    {% if child_node1.id in selected_area %}\n
                                                        <li class="child">{{child_node1.text|raw}}</li>\t\t\t\t\t\n
                                                    {% endif %}\n
                                                {% endif %} \n
                                        {% endif %}\n
                                    {% endfor %} \n
                                </ul>\n
                                {% endif %}                                            \n
                    {% endfor %} \n
                {% endif %}\n
                \n
                                                  {% endif %}\n
                                                \n
                                              <a href="{{ path('viewjobdetail', {'title': project.title|replace({' ': '-'}), 'id': project.id}) }}" class="pull-left mright50 show-btn show-{{project.id}}">Show details...</a>\n
                                              </div> </div>\n
                                                   \n
                                                    </dd>\n
                                                    {% if project.location is defined and project.location!="" and project.location!=" " and project.location is not null %}\n
                                                    <dt class="font-300 grey-color">Location </dt>\n
                                                    <dd>{{ project.location}}&nbsp;</dd>\n
                                                    {% endif %}\n
                                                   {# {% if project.language is defined and project.language!="" and project.language!=" " and project.language is not null %} #}\n
    \t\t\t\t\t\t\t\t\t\t\t   {% if languagedataarr2[project.id] is defined and languagedataarr2[project.id]!="" and languagedataarr2[project.id]!=" " and languagedataarr2[project.id] is not null %}\n
                                                    <dt class="font-300 grey-color">Language</dt>\n
                                                    <dd>{{languagedataarr2[project.id] }}</dd>\n
                                                    {% endif %}\n
                                                    {# <dt class="font-300 grey-color">Description</dt>\n
                                                    {% if project.jobtype == 'url' %}\n
                                                        <dd><a href="{{ path('viewjobdetail', {'title': project.title|replace({' ': '-'}), 'id': project.id}) }}">{{project.jobdesc}}</a></dd>                                                                                                  \n
                                                    {% else %}\n
                                                        <dd>\n
                                                            {% if project.jobdesc|length > 70 %}\n
                                                                <p class="txt-cont">{{project.jobdesc }}</p><a href="javascript:void(0)" class="blue-btn pull-right show-btn">Show more <i class='fa fa-angle-right'></i></a>   \n
                                                            {% else %}\n
                                                                {{project.jobdesc}}\n
                                                            {% endif %}\n
                                                        </dd>                                                                                                  \n
                                                    {% endif %} #}\n
                                                    <dt></dt>\n
                                                    <dd class="font-300 grey-color"></dd>   \n
                                                </dl>\n
                                            </div>\n
                                        {% endfor %}   \n
    \n
                                        <div class="clearfix"></div>\n
                                        <div class="row"> {{ knp_pagination_render(pagination) }}</div>\n
    \n
                                    </div>\n
    \n
                                    <div class="clearfix"></div>\n
    \n
                                    {#<div class="row">\n
                                      <hr>\n
                                      <div class="clearfix"></div>\n
                                      \n
                                      <!--Pagination start-->\n
                                      \n
                                      <div class="col-sm-12 text-center mtop10">\n
                                        <ul class="pagination">\n
                                          <li> <a href="#" class="text-success"> <i class="fa fa-angle-double-left text-success"></i> </a> </li>\n
                                          <li> <a href="#" class="text-success"> <i class="fa fa-angle-left text-success"></i> </a> </li>\n
                                          <li><a href="#" class="active">1</a></li>\n
                                          <li><a href="#">of</a></li>\n
                                          <li><a href="#">6</a></li>\n
                                          <li> <a href="#" class="text-success"> <i class="fa fa-angle-right text-success"></i> </a> </li>\n
                                          <li> <a href="#" class="text-success"> <i class="fa fa-angle-double-right text-success"></i> </a> </li>\n
                                        </ul>\n
                                      </div>\n
                                      \n
                                      <!--Pagination end--> \n
                                    </div>#}\n
                                </div>\n
                            </div>\n
                        </div>\n
    \n
                        <!--Right Panel End--> \n
                    </div>\n
                </div>\n
            </div>\n
    \n
    \n
            <div class="row"> \n
                <!-- new message modal starts here -->\n
                <div class="modal fade" id="message140" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">\n
                    <div class="modal-dialog" role="document">\n
                        <div class="modal-content padd20">\n
                            <div class="modal-header">\n
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>\n
                                <h2 class="modal-title text-center">Subscribe to search results</h2>\n
                                <p class="text-center"> Receive notification when a new entry matches your criteria</p>\n
                            </div>\n
    \n
                            <div class="clearfix"></div>\n
                            <div class="modal-body">\n
                                \n
                                    <form name="frmname" method="post" >\n
                                    <div class="col-xs-12 col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2">\n
                                         \n
                                        <div class="row">\n
                                            <div class="alert alert-danger invalidsubscc" role="alert" style="display:none">  \n
                                            <span style="font-color:black">You have entered an invalid email address!</span>\n
                                        </div>\n
                                        <div class="alert alert-success validsubscc" role="alert" style="display:none">  \n
                                            <span style="font-color:black">Details has been addded successfully. You will be informed.</span>\n
                                        </div>\n
                                            {% if user_id!="" %}\n
                                                {% else %}\n
                                            <div class="form-group">\n
                                                <label> Your email address </label>\n
                                                <div class="clearfix"></div>\n
                                                <input class="form-control" id="subscribeemail" type="email" required>\n
                                            </div>\n
                                            {% endif %}\n
                                            <div class="form-group">\n
                                                <label> Search subscription name </label>\n
                                                <div class="clearfix"></div>\n
                                                {% if user_id!="" %}\n
                                                    <input class="form-control" id="subscribename" placeholder="My search subscription for investors" type="text" value="My job subscription{{usersubcnt}}" required>\n
                                                {% else %}\n
                                                <input class="form-control" id="subscribename" placeholder="My search subscription for investors" type="text" value="My job subscription" required>\n
                                                {% endif %}\n
                                            </div>\n
                                            <div class="col-xs-12 text-center">\n
                                                \n
                                                <button id="subscribeevent" type="button" class="mtop10 btn padd-btn-all btn-variation text-wrap">Subscribe now</button>\n
                                                \n
                                                <div id="subscribeload">\n
                                                </div>\n
                                            </div>                                        \n
                                            \n
                                            {% if user_id=="" %}\n
                                                <div class="col-xs-12 mtop10">\n
                                                    <div class="row">Already registered? <a href="{{path('app_login')}}"> Login </a></div>\n
                                                </div>\n
                                                <div class="col-xs-12 mtop10">\n
                                                    <div class="row">Not a member? <a href="{{path('app_register')}}"> Register now for free </a></div>\n
                                                </div>\n
                                            {% endif %}\n
                                        </div></div>\n
                                </form>\n
                            </div>\n
                            <div class="clearfix"></div>\n
    \n
                        </div>\n
                    </div>\n
                </div>\n
                <!-- new message modal Ends here -->\n
            </div>              \n
        </div>\n
                                            <span class="storedworkarea" style="display:none"></span>\n
    \t\t\t\t\t\t\t\t\t\t{% if getworkarea is defined and getworkarea!="" %}\n
                                            <span class="getworkarea" style="display:none">{{getworkarea}}</span>\n
    \t\t\t\t\t\t\t\t\t\t\t{% else %}\n
    \t\t\t\t\t\t\t\t\t\t\t<span class="getworkarea" style="display:none"></span>\n
    \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}\n
                                            <span class="pageno" style="display:none"></span>\n
                                            <span class="lastpageno" style="display:none"></span>\n
                                             <span class="selectedlat" style="display:none"></span>\n
                                             {% if searchlocation is defined and searchlocation=="Remote" %}\n
                                            <span class="searchlocation" style="display:none">{{searchlocation}}</span>\n
                                            {% else %}\n
                                                <span class="searchlocation" style="display:none"></span>\n
                                            {% endif %}\n
                    \n
                                             {% if showworkamt is defined and showworkamt=="yes" %}\n
                                                 <span class="showworkamt" style="display:none">{{showworkamt}}</span>\n
                                                 {% else %}\n
                                                     <span class="showworkamt" style="display:none"></span>\n
                                                     {% endif %}\n
                                                     {% if showseniority is defined and showseniority=="yes" %}\n
                                                 <span class="showseniority" style="display:none">{{showseniority}}</span>\n
                                                 {% else %}\n
                                                     <span class="showseniority" style="display:none"></span>\n
                                                     {% endif %}\n
                                                     {% if showcontracttype is defined and showcontracttype=="yes" %}\n
                                                 <span class="showcontracttype" style="display:none">{{showcontracttype}}</span>\n
                                                 {% else %}\n
                                                     <span class="showcontracttype" style="display:none"></span>\n
                                                     {% endif %}\n
                                                     {% if showworkarea is defined and showworkarea=="yes" %}\n
                                                 <span class="showworkarea" style="display:none">{{showworkarea}}</span>\n
                                                 {% else %}\n
                                                     <span class="showworkarea" style="display:none"></span>\n
                                                     {% endif %}\n
                                                      {% if getcontracttype is defined and getcontracttype!="" %}\n
                                                           <span class="getcontracttype" style="display:none">{{getcontracttype}}</span>\n
                                                        {% else %}\n
                                                            <span class="getcontracttype" style="display:none"></span>\n
                                                            {% endif %}\n
                                                            {% if getworkamt is defined and getworkamt!="" %}\n
                                                           <span class="getworkamt" style="display:none">{{getworkamt}}</span>\n
                                                        {% else %}\n
                                                            <span class="getworkamt" style="display:none"></span>\n
                                                            {% endif %}\n
                                                            {% if getseniority is defined and getseniority!="" %}\n
                                                           <span class="getseniority" style="display:none">{{getseniority}}</span>\n
                                                        {% else %}\n
                                                            <span class="getseniority" style="display:none"></span>\n
                                                            {% endif %}\n
                            <span class="selectedlng" style="display:none"></span>\n
                            \n
                            <span class="currentfullurl" style="display:none"></span>\n
                            \n
                             <a href="javascript:void(0)" style="display:none" class="alertbox2" data-toggle="modal" data-target="#alertmodal36"></a>\n
                                         \n
        <input type="hidden" name="mapdeleteid"  id="mapdeleteid" >\n
    \n
        <script language="javascript">\n
    \t$(document).on('click', '.social-share-job a', function(event) { \n
            //$('.social-share-job a').click(function (event) { \n
                event.preventDefault();\n
                if($.trim($(this).text())=='Relevance'){\n
                getjoblist(false,'Relevance');\n
                }\n
                else if($.trim($(this).text())=='Newest') {\n
                getjoblist(false,'Newest');\n
                }\n
            });\n
    \t\t\n
            var city_state = []; // City state array for appending to URL\n
            var url_city_state = [];\n
    \n
            $(document).ready(function () {\n
                \n
                // filter show more from job browsing\n
                 var url44      = window.location.href;\n
                     if(url44=="https://localhost/smartmoneymatchnew4/jobs/global#show-seniority" || url44=="https://testmigration.smartmoneymatch.com/jobs/global#show-seniority" || url44=="https://testingsdna.smartmoneymatch.com/jobs/global#show-seniority" || url44=="https://www.smartmoneymatch.com/jobs/global#show-seniority" || url44=="https://staging.smartmoneymatch.com/jobs/global#show-seniority"){\n
                         $(".showseniorityy").trigger("click");\n
                     }\n
                     else if(url44=="https://localhost/smartmoneymatchnew4/jobs/global#show-workamount" || url44=="https://testmigration.smartmoneymatch.com/jobs/global#show-workamount" || url44=="https://testingsdna.smartmoneymatch.com/jobs/global#show-workamount" || url44=="https://www.smartmoneymatch.com/jobs/global#show-workamount" || url44=="https://staging.smartmoneymatch.com/jobs/global#show-workamount"){\n
                         $(".showworkamtt").trigger("click");\n
                     }\n
                     else if(url44=="https://localhost/smartmoneymatchnew4/jobs/global#show-contract-type" || url44=="https://testmigration.smartmoneymatch.com/jobs/global#show-contract-type" || url44=="https://testingsdna.smartmoneymatch.com/jobs/global#show-contract-type" || url44=="https://www.smartmoneymatch.com/jobs/global#show-contract-type" || url44=="https://staging.smartmoneymatch.com/jobs/global#show-contract-type"){\n
                         $(".showcontrtypee").trigger("click");\n
                     }\n
                     else if(url44=="https://localhost/smartmoneymatchnew4/jobs/global#show-workarea" || url44=="https://testmigration.smartmoneymatch.com/jobs/global#show-workarea" || url44=="https://testingsdna.smartmoneymatch.com/jobs/global#show-workarea" || url44=="https://www.smartmoneymatch.com/jobs/global#show-workarea" || url44=="https://staging.smartmoneymatch.com/jobs/global#show-workarea"){\n
                         $(".area-tooltip").css("display","block");\n
                        $(".tooltip-body-left").css("right","-818px");\n
                        $("#areapopupsearch").css("display","table");\n
                     }\n
                     else if(url44=="https://localhost/smartmoneymatchnew4/jobs/global#show-country" || url44=="https://testmigration.smartmoneymatch.com/jobs/global#show-country" || url44=="https://testingsdna.smartmoneymatch.com/jobs/global#show-country" || url44=="https://www.smartmoneymatch.com/jobs/global#show-country" || url44=="https://staging.smartmoneymatch.com/jobs/global#show-country"){\n
                         $(".counnfilter").trigger("click");\n
                     }\n
                    else if(url44=="https://localhost/smartmoneymatchnew4/jobs/global#show-employer" || url44=="https://testmigration.smartmoneymatch.com/jobs/global#show-employer" || url44=="https://testingsdna.smartmoneymatch.com/jobs/global#show-employer" || url44=="https://www.smartmoneymatch.com/jobs/global#show-employer" || url44=="https://staging.smartmoneymatch.com/jobs/global#show-employer"){\n
                         $(".offeredorgg").trigger("click");\n
                     }\n
                 // end\n
                \n
                $(".defactive").find("a").addClass('text-black');\n
                $(".defactive").find("a").addClass('font-700');\n
                \n
                $('#language').multiselect({\n
                    //includeSelectAllOption: true,            \n
                    //sselectAllText:  'All',\n
                    enableCaseInsensitiveFiltering: false\n
                });\n
    \n
                {#$('#seniority').multiselect({\n
                    //includeSelectAllOption: true,            \n
                    //sselectAllText:  'All',\n
                    enableCaseInsensitiveFiltering: false\n
                });#}\n
                \n
                $('#seniority').multiselect({\n
                    includeSelectAllOption: true,\n
                    selectAllValue: 'All',\n
                    nonSelectedText: 'Please select',\n
                    buttonWidth: '320px'\n
                });\n
    \n
                $('#workamount').multiselect({\n
                    includeSelectAllOption: true,\n
                    selectAllValue: 'All',\n
                    nonSelectedText: 'Please select',\n
                    buttonWidth: '320px'\n
                });\n
    \n
                $('#selecttype').multiselect({\n
                    includeSelectAllOption: true,\n
                    selectAllValue: 'All',\n
                    nonSelectedText: 'Please select',\n
                    buttonWidth: '320px'\n
                });            \n
    \n
                $('#workareasearch').val("");\n
    \n
            });\n
            function getserviceprofile(val) {\n
                if (val == "") {\n
                    $('#areacontent').html("");\n
                    return;\n
                }\n
                var dataString = '';\n
                dataString = 'area=' + val;\n
                $.ajax({\n
                    type: "POST",\n
                    url: '{{ path("frontend_getjobservice") }}',\n
                    data: dataString,\n
                    beforeSend: function () {\n
                        $('#areacontent').html("<p>Please wait. We are loading your area!</p>");\n
                    },\n
                    success: function (data) {\n
                        $('#areacontent').html(data);\n
                        //alert(data);\n
    \n
                    }\n
                });\n
            }\n
                 $(document).ready(function () {\n
                     $('.more').hide();\n
                     setTimeout(function () {\n
                         $('.more').show();\n
                     }, 2500);\n
    \n
                });\n
    \n
                $('#alljob').click(function () {\n
                    $("#activetab").val('all');\n
                    $.ajax\n
                            ({\n
                                url: "{{ path('job_findjob')}}",\n
                                data: {"type": "all"},\n
                                type: 'post',\n
                                beforeSend: function ()\n
                                {\n
                                    $('#rightpanel').html("<div class='text-center white-background padd20'><img width='70' alt='Loading' src='/var/uploads/files/loader.gif'> <div class='clearfix'></div><span class='mtop10'>Please wait, we are loading job results.</span></div>");\n
                                },\n
                                success: function (result)\n
                                {\n
                                    $('#rightpanel').html(result);\n
                                }\n
                            });\n
                });\n
                $('#watchlist').click(function () {\n
    \n
            {% if app.user.getId() is not defined %}\n
                    $("#watchlist").removeClass("active");\n
                    $("#alljob").addClass("active");\n
                    $('#loginmodal').modal('toggle');\n
                    return false;\n
            {% endif %}\n
    \n
                    $("#activetab").val('watchlist');\n
                    $.ajax\n
                            ({\n
                                url: "{{ path('job_findjob')}}",\n
                                data: {"type": "watchlist"},\n
                                type: 'post',\n
                                beforeSend: function ()\n
                                {\n
                                    $('#rightpanel').html("<div class='text-center white-background padd20'><img width='70' alt='Loading' src='/var/uploads/files/loader.gif'> <div class='clearfix'></div><span class='mtop10'>Please wait, we are loading job results.</span></div>");\n
                                },\n
                                success: function (result)\n
                                {\n
                                    $('#rightpanel').html(result);\n
                                }\n
                            });\n
                });\n
                $('#mine').click(function () {\n
                    $("#activetab").val('mine');\n
                    $.ajax\n
                            ({\n
                                url: "{{ path('job_findjob')}}",\n
                                data: {"type": "mine"},\n
                                type: 'post',\n
                                beforeSend: function ()\n
                                {\n
                                    $('#rightpanel').html("<div class='text-center white-background padd20'><img width='70' alt='Loading' src='/var/uploads/files/loader.gif'> <div class='clearfix'></div><span class='mtop10'>Please wait, we are loading job results.</span></div>");\n
                                },\n
                                success: function (result)\n
                                {\n
                                    $('#rightpanel').html(result);\n
                                        var postcount = $(".pagecount").text();\n
                                        $("#cntlabel").html("Find jobs in the investment management industry");\n
                                }\n
                            });\n
                       \n
                });\n
                $(function () {  \n
    \t\t\tvar user_idd2 = "{{user_id}}";\n
                var firstnamess = "{{firstname}}";\n
                var lastnamess = "{{lastname}}";\n
        $.ajax\n
    \t\t\t\t\t\t\t\t({ \n
    \t\t\t\t\t\t\t\t\turl: "{{ path('frontend_getmydoyouknow3')}}",\n
    \t\t\t\t\t\t\t\t\tdata: {"user_idd":user_idd2,"firstnamess":firstnamess,"lastnamess":lastnamess},\n
    \t\t\t\t\t\t\t\t\ttype: 'post',\n
    \t\t\t\t\t\t\t\t\tbeforeSend:function()\n
    \t\t\t\t\t\t\t\t\t{\n
    \t\t\t\t\t\t\t\t\t\t$('.mydoyouknow').html("<div class='text-center'><p><img width='70' alt='Loading' src='/var/uploads/files/loader.gif'></p></div>");            \t\t\t\t\n
    \t\t\t\t\t\t\t\t\t},\n
    \t\t\t\t\t\t\t\t\tsuccess: function(data)\n
    \t\t\t\t\t\t\t\t\t{ \n
    \t\t\t\t\t\t\t\t\t   $(".mydoyouknow").html(data);\n
                                                                               $(".netupic2").each(function(){\n
                                                                                    var netuid = $(this).attr("id");\n
                                                                                     if(netuid!=""){\n
                                                                                      callnetuids2(netuid);\n
                                                                                     }\n
                                                                                });\n
    \t\t\t\t\t\t\t\t\t}\n
    \t\t\t\t\t\t\t\t});\n
    \t\t\t\t\t\t\t\t\n
                var searchlocation = ""; var findtext = "";\n
        searchlocation = "{{searchlocation}}";\n
    \t\t{% if findtext is defined and findtext!="" %}\n
        findtext = "{{findtext}}"; {% endif %} \n
        {% if searchlocation != "" and searchlocation != "global" and searchlocation=="United States" %}\n
                searchlocation = searchlocation+"::::US";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
        {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="United Kingdom" %} \n
                searchlocation = searchlocation+"::::GB";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                    {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="Switzerland" %} \n
                searchlocation = searchlocation+"::::CH";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                    {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="Germany" %} \n
                searchlocation = searchlocation+"::::DE";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                    {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="France" %} \n
                searchlocation = searchlocation+"::::FR";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                    {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="India" %} \n
                searchlocation = searchlocation+"::::IN";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="Luxembourg" %} \n
                searchlocation = searchlocation+"::::LU";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="Hong Kong" %} \n
                searchlocation = "Hong Kong SAR China::::HK";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="Netherlands" %} \n
                searchlocation = searchlocation+"::::NL";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="Canada" %} \n
                searchlocation = searchlocation+"::::CA";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="Singapore" %} \n
                searchlocation = searchlocation+"::::SG";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="United Arab Emirates" %} \n
                searchlocation = searchlocation+"::::AE";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="Remote" %} \n
                searchlocation = "Remote";\n
                $('#service_head_country').multiselect('select', searchlocation);\n
                {% elseif searchlocation != "" and searchlocation != "global" and findtext!="" %} \n
                searchlocation = searchlocation+"::::"+findtext;\n
                $('#service_head_country').multiselect('select', searchlocation); getjoblist(false);\n
        {% endif %}\n
            {% if searchlocation != "" and searchlocation != "global" %}\n
                getjoblist(false);\n
        {% endif %}\n
            \n
                 $('#service_head_country').change(function(){  \n
                    getjoblist(false);\n
                });\n
                var showworkamt = '';\n
                 showworkamt = $(".showworkamt").text();\n
                 if(showworkamt=="yes"){\n
                     $(".showworkamtt").trigger("click");\n
                     $("#workamount").trigger("click");\n
                 }\n
                 var showseniority = '';\n
                 showseniority = $(".showseniority").text();\n
                 if(showseniority=="yes"){\n
                     $(".showseniorityy").trigger("click");\n
                     $("#seniority").trigger("click");\n
                 }\n
                 var showcontracttype = '';\n
                 showcontracttype = $(".showcontracttype").text();\n
                 if(showcontracttype=="yes"){\n
                     $(".showcontrtypee").trigger("click");\n
                     $("#selecttype").trigger("click");\n
                 }\n
                 var showworkarea = '';\n
                 showworkarea = $(".showworkarea").text();\n
                 if(showworkarea=="yes"){\n
                     $(".area-tooltip").css("display","block");\n
                     $(".tooltip-body-left").css("right","-818px");\n
                     $("#areapopupsearch").css("display","table");\n
                 }\n
                 var getcontracttype = '';\n
                 getcontracttype = $(".getcontracttype").text();\n
                 if(getcontracttype!=""){\n
                     $(".showcontrtypee").trigger("click");\n
                     getjoblist(false);\n
                 }\n
                 var getworkamt = '';\n
                 getworkamt = $(".getworkamt").text();\n
                 if(getworkamt!=""){\n
                     $(".showworkamtt").trigger("click");\n
                     getjoblist(false);\n
                 }\n
                 var getseniority = '';\n
                 getseniority = $(".getseniority").text();\n
                 if(getseniority!=""){\n
                     $(".showseniorityy").trigger("click");\n
                     getjoblist(false);\n
                 }\n
                \n
                $(".targeturl").click(function(e){ //e.preventDefault();\n
                    var targeturl = $(this).attr("targetur");\n
                    var bannerid = $(this).attr("bannerid");\n
                    var dataString = '';\n
                    dataString = 'targeturl='+targeturl+'&bannerid='+bannerid;\n
                    $.ajax({\n
                        type: "POST",\n
                        url: '{{ path("frontend_updateclickbanner") }}',\n
                        data: dataString,\n
                        beforeSend: function () {\n
                        },\n
                        success: function (data) { \n
                            \n
                        }\n
                    });\n
                    e.preventDefault();\n
                    e.stopPropagation(); \n
                    if(targeturl.indexOf("https://")>0 || targeturl.indexOf("https://")=='0'){\n
                    } else if(targeturl.indexOf("http://")>0 || targeturl.indexOf("http://")=='0'){\n
                    } else { targeturl = "http://"+targeturl;\n
                    }\n
                    window.open(targeturl, '_blank');\n
                });\n
                \n
                var filtertag =  "";\n
                filtertag = '{{filtertag}}'; if(filtertag=="mine") { $("#alljob").removeClass("active");$("#watchlist").removeClass("active");$("#mine").addClass("active"); } \n
                var countalltreenode = 0; var treevehicleids = []; var arrtree = [];\n
        \n
        $(".selection-tree").each(function(){\n
            if($.inArray($(this).attr("treeareaid"),arrtree)== -1){\n
            treevehicleids.push($(this).attr("treeareaid")); \n
            }\n
            arrtree.push($(this).attr("treeareaid"));\n
        });\n
        \n
        $(".show-btn").hide();\n
        \n
        $(".selection-tree").each(function(){ \n
            var countlist =0;\n
            $(this).find("li").each(function(){\n
            countlist++;\n
            });\n
            if(countlist==1){\n
                $(this).remove();\n
            }\n
        });\n
        for(var i=0;i<treevehicleids.length;i++){ countalltreenode=0;\n
            $("#tst-selectvechile2-"+treevehicleids[i]).find("li").each(function(){ \n
                countalltreenode++;\n
                if(countalltreenode>4){\n
                    $(this).remove();\n
                    $(".show-"+treevehicleids[i]).show();\n
                }\n
            });\n
        }\n
        $(".nowidget").click(function(){\n
           if($(".area-tooltip").is(":visible")){\n
           $(".area-closepopup").trigger("click");\n
           }   \n
        }); \n
            // code to hide vehicle widget popup once clicked outside\n
            $(document).on('click', '.container:not(.area-tooltip)', function(event) { \n
            if(event.target.childElementCount==3 || event.target.childElementCount==1 || event.target.childElementCount==8){\n
                        if(event.target.nodeName!="A" && event.target.nodeName!="SELECT" && event.target.nodeName!="INPUT" && event.target.nodeName!="LABEL"){\n
                            //alert($(event.target).attr("class"));\n
                            if($(event.target).hasClass('tooltip-body-left area-tooltip') || $(event.target).parent().hasClass('col-sm-6') || $(event.target).parent().hasClass('col-sm-12 nopadding')){\n
                            } else {\n
                            $(".area-closepopup").trigger("click");\n
                            $(".area-arrow").hide(); \n
                            $("#areapopupsearch").find("input").val(""); var thsid = "";\n
                            $(".area-tooltip").find("label").each(function(){ \n
                                thsid = $(this).attr("id"); \n
                                if(thsid!==undefined){ \n
                                $(".area-tooltip #"+thsid).css("background-color",""); \n
                                }\n
                            });\n
                            $(".areapopupsearch").css("display","none");\n
                            $(".areapopupsearch").removeClass("open");\n
                            }\n
                        } \n
            }\n
        });\n
        // code end\n
        \n
        $("#job_area").change(function(){\n
         // if all value node selected then this should not be 0\n
        $(".checkallarea").text("0");\n
        });\n
        \n
        var boxclass = "";\n
        $(document).on("click",".panel-body >ul",function() {\n
            boxclass = $(this).attr("class");\n
            if(boxclass!=""){\n
            var boxclassarr = boxclass.split(' '); \n
            var boxclassarr1 = boxclassarr[0].split("_");\n
            if(boxclassarr1[2]!==undefined){\n
            var boxclassdiv = boxclassarr1[1]+"_"+boxclassarr1[2];\n
            }\n
            else {\n
            var boxclassdiv = boxclassarr1[1];\n
            } var j=0; var k=0;\n
            $(this).parent().find(".workarea").each(function(j){ \n
                k= j+1;\n
            }); \n
            if(k==1){\n
            $(this).parent().hide(); \n
            if($(".tooltip-body-left").is(":visible")){\n
                    } else {\n
            $(this).parent().parent().find(".searchstyle").css("display","none");\n
             }\n
            $(this).parent().parent().find("a").each(function(i){\n
                if(i==1){ $(this).hide(); }\n
                if(i==0){ \n
                    if($(".tooltip-body-left").is(":visible")){\n
                    }\n
                    else {\n
                        $(this).addClass("collapsed");\n
                    }\n
                }\n
            });\n
            }\n
            $(this).remove();\n
            $(".area-tooltip #"+boxclassdiv).find("input").prop("checked",false);\n
            $(".area-tooltip #"+boxclassdiv).find("input").removeClass("square");\n
            // find updated stored area text before calling job search function\n
            var workclassarr = []; var workclassarr2 = []; var workclassarr2 = [];var workclassfinalarr = [];var finalvaltosearch = "";\n
                var workareavalfinal = [];\n
                $(".area-selected .workarea").each(function(){\n
                    workclassarr = $(this).attr("class").split(" ");\n
                    workclassarr2 = workclassarr[0].split("_");\n
                    if(workclassarr2[1]!==undefined && workclassarr2[2]!==undefined){\n
                    workclassfinalarr.push(workclassarr2[1]+"_"+workclassarr2[2]);\n
                    }\n
                });\n
                $.each(workclassfinalarr,function(i){\n
                    if(workclassfinalarr[i]==undefined) { } \n
                    else { \n
                    $("#"+workclassfinalarr[i]).find("input").each(function(){\n
                        if($(this).val()!="" && $(this).val()!='allarea' && $(this).val()!='allareasecond' && $(this).prop("checked")==true){\n
                          finalvaltosearch = finalvaltosearch+$(this).val()+",";  \n
                        }\n
                    });\n
                    }\n
                }); $(".storedworkarea").text(finalvaltosearch.slice(0,-1)); \n
                // end\n
                getjoblist(false);  \n
            }\n
        });\n
            $(".area-closepopup").click(function(){ \n
               if($(".area-tooltip").is(":visible")){\n
               $(".area-selector").removeClass("font-700");\n
               $("#areapopupsearch").find("input").val("");\n
               var thsid = "";\n
                            $(".area-tooltip").find("label").each(function(){ \n
                                thsid = $(this).attr("id"); \n
                                if(thsid!==undefined){ \n
                                $("#"+thsid).css("background-color",""); \n
                                }\n
                            });\n
               $("#areapopupsearch").css("display","none");\n
               $(".area-tooltip").find("input").each(function(){\n
                   if($(this).prop("checked")==true){\n
                     $("#areapopupsearch").css("display","table");\n
                     $(".area-selector").show();\n
                     $(".new-area").removeClass("collapsed");\n
                     $(".area-selector").addClass("collapsed");\n
                   }\n
               });\n
               }\n
            });\n
        //format id of open box child element\n
        var defaultareasel = $("#job_area").val();\n
        $(".allarea").attr("id","allarea_"+defaultareasel);\n
        // Get Job area                                            \n
        $(document).on('change', '#job_area', function () { \n
            var val2 = $(this).val();  \n
            $('.job_area').hide();\n
            $('.area-tooltip div[name="' + val2 + '"]').attr('style', 'display:block');\n
            $(".selectedareaval").text("Select all");\n
            $(".allarea").attr("id","allarea_"+val2);\n
            var findclass = "";var formatclass2 = "";\n
        });\n
        \n
        $(".tooltip-body-left").css("width","800px");\n
        $(".new-area").click(function(){\n
        $("#job_area").trigger("change");\n
        var selstr = "";\n
        setTimeout(function(){ \n
            $(".active-tooltip").each(function(){\n
                selstr = $(this).val();\n
                if(selstr.indexOf("Adjust")==-1){\n
                $(this).removeClass('font-700');\n
                }\n
            });\n
            $(".tooltip-body-left").css("right","-818px");\n
            if($(".area-arrow").is(':visible')){\n
             $("#areapopupsearch").css("display","table");\n
             $(".area-selector").hide();\n
             $(".new-area").addClass('font-700');\n
             $(".new-area").removeClass("collapsed");\n
            } else { \n
                $(".new-area").removeClass('font-700');\n
                $(".new-area").addClass("collapsed");\n
                $(".area-tooltip").find("input").each(function(){\n
                    if($(this).prop("checked")==true){\n
                   $(".area-selector").show(); $(".area-selector").removeClass("font-700");\n
                   }\n
                });\n
            }\n
            }, 20); \n
     });\n
     $("#areapopupsearch").find("input").keyup(function(){ \n
    \tvar popupval = $(this).val(); \n
    \tif(popupval!=""){ \n
    \t$(".areapopupsearch").css("display","block");\n
    \t$(".areapopupsearch").addClass("open");\n
    \t\t    $.ajax\n
    \t\t    ({ \n
    \t\t\turl: "{{ path('frontend_jobarea_popup_autocomplete')}}",\n
    \t\t\tdata: {"popupval":popupval},\n
    \t\t\ttype: 'post',\n
    \t\t\tbeforeSend:function()\n
    \t\t\t{\n
    \t\t\t    \n
    \t\t\t},        \n
    \t\t\tsuccess: function(result)\n
    \t\t\t{ \n
    \t\t\t$(".areapopupsearch").css("margin-top","-33px");\n
                            $(".areapopuplist").html(result);\n
    \t\t\t}\n
    \t\t    });\n
    \t}\n
    \telse { \n
    \t$(".areapopupsearch").css("display","none");\n
    \t$(".areapopupsearch").removeClass("open");\n
    \t} \n
     });\n
    \n
     $(document).on('click', '.suggestarea', function(e) { \n
         var areatext = $(this).text(); var thisclsarr = [];var thisclsarr2 = [];var thisclsfinarr = "";\n
         $("#areapopupsearch").find("input").val(areatext);\n
         $(".areapopupsearch").css("margin-top","0px");\n
         $(".tooltip-body-left").css("display","block");\n
         $(".new-area").trigger("click");\n
         var thisnodeclassarr = []; var thisnodeclassfirstarr = []; var thisnodeclassfinarr = [];\n
         if($(this).attr("parentnode")!="#"){\n
         $("#job_area").val($(this).attr("parentnode")).trigger("change");\n
         var thsid = $(this).attr("nodeid");\n
         $(".area-tooltip #"+thsid).css("background-color","#d4d4d4");\n
            $(".area-tooltip").find("label").each(function(){\n
               if($(this).attr("id")!==undefined && $(this).attr("id")!=thsid){\n
                   $(this).css("background-color","");\n
               }    \n
            });\n
         }\n
         else {\n
             thisclsarr = $(this).attr("class").split(" ");\n
             thisclsarr2 = thisclsarr[0].split("_");\n
             thisclsfinarr = thisclsarr2[1]+"_"+thisclsarr2[2];\n
             $("#job_area").val(thisclsfinarr).trigger("change");\n
         }\n
     });\n
     $(".area-label").click(function(){  \n
       var labeltxt = "";var areaselected = $("#job_area").val();\n
       labeltxt = $(this).text(); var parenttext = []; var parentalltext = ""; var margin = "";\n
       // logic for area selection\n
       if(labeltxt!=""){ \n
            var labelfor = $(this).attr("for"); \n
            var formatid = "checkallarea_"+areaselected;\n
            $(".checkallarea").attr("id",formatid);\n
       if(labelfor.indexOf("allarea_")!=-1){\n
           //logic to select all child element inside widget popup\n
           $(this).parent().find("input").each(function(){\n
                     if($("#checkallarea_"+areaselected).text()==0){ \n
                     $(this).prop("checked",true);\n
                     } else { $(this).prop("checked",false); }\n
                     $(this).removeClass("square");\n
           }); \n
           //logic end\n
           $(".area-selected").show(); \n
           var allareatext = "<span style='margin-left:-45px'><b>"+$("#job_area option:selected").text()+"</b></span>";\n
           /* code for selection second and third level of job area in select all */\n
           if($(".area-tooltip #"+areaselected).is(':visible')){\n
            var allareatext2 = ""; var allareatext3 = ""; var counsecond = 0;\n
           $(".area-tooltip #"+areaselected).find(".col-sm-12").each(function(){\n
               $(this).find(".col-sm-6").each(function(){ \n
                 $(this).find("label").each(function(){\n
                   if($(this).text()!=""){ \n
                       if($(this).parent().parent().attr("class")!="mleft20"){\n
                            if($(this).parent().attr("class")=="mleft20"){\n
                                if($(this).text().length>33){\n
                                allareatext3 = allareatext3+ "<div class='"+$(this).attr('id')+"' style='margin-left:-25px'>"+$(this).text().substr(0,33)+" ..."+"</div>";\n
                                }\n
                                else { allareatext3 = allareatext3+ "<div class='"+$(this).attr('id')+"' style='margin-left:-25px'>"+$(this).text()+"</div>"; }\n
                            } else { \n
                                if($(this).text().length>33){\n
                                allareatext3 = allareatext3+"<span class='"+$(this).attr('id')+"' style='margin-left:-35px'>"+$(this).text().substr(0,33)+" ..."+"</span>";\n
                                } else { allareatext3 = allareatext3+"<span class='"+$(this).attr('id')+"' style='margin-left:-35px'>"+$(this).text()+"</span>"; }\n
                            }\n
                            }\n
                        }\n
                 });\n
               }); counsecond = 0; \n
               $(this).find("label").each(function(){ \n
                   if($(this).text()!=""){ \n
                       if($.trim($(this).parent().parent().attr("class"))=="col-sm-12"){ \n
                            if(counsecond == 1){\n
                                if($(this).text().length>33){\n
                                 allareatext2 = allareatext2+"<span class='"+$(this).attr('id')+"' style='margin-left:-35px'>"+$(this).text().substr(0,33)+" ..."+"</span><div class='clearfix'></div>";\n
                                } else { allareatext2 = allareatext2+"<span class='"+$(this).attr('id')+"' style='margin-left:-35px'>"+$(this).text()+"</span><div class='clearfix'></div>"; }\n
                            } else {\n
                                if($(this).text().length>33){\n
                                allareatext2 = allareatext2+ "<span class='"+$(this).attr('id')+"' style='margin-left:-35px'>"+$(this).text().substr(0,33)+" ..."+"</span><div class='clearfix'></div>"; \n
                                } else { allareatext2 = allareatext2+ "<span class='"+$(this).attr('id')+"' style='margin-left:-35px'>"+$(this).text()+"</span><div class='clearfix'></div>";  }\n
                            } counsecond = counsecond+1;\n
                       } else { counsecond = 0; }\n
                    } \n
                });\n
           }); \n
           \n
            allareatext = allareatext+"<div class='clearfix'></div>"+allareatext3+allareatext2;\n
           }  \n
           /* code end for second and third level of liquid type selection in select all */\n
           if($(".areabox_"+areaselected).is(':visible')){\n
           } else {\n
                $(".area-selected").append('<ul class="areabox_'+areaselected+' workarea nopadding"><li><div class="alert bg-warning border-radius nomargin"> <span class="pull-right" style="margin-top:-7px;margin-right:-15px"> <a href="javascript:void(0)" class="delete-ques padd10 text-danger del-ques"><i class="fa fa-close"></i></a></span><span class="checkallarea" id="checkallarea_" style="display:none">1</span><ul><li>'+allareatext+'</li></ul></div></li></ul>');\n
           }\n
           if($("#checkallarea_"+areaselected).text()=="1"){\n
               $("#checkallarea_"+areaselected).text("0");$(".areabox_"+areaselected).remove();\n
           } else { $("#checkallarea_"+areaselected).text("1"); $(".areabox_"+areaselected).css("display","block"); }\n
       }\n
       // end logic for investment job area selection\n
      }\n
    });\n
    \n
        var allnode=0;var countcheck = 0;var sizenode = 0;\n
        $(".tooltip-body-left input").click(function(){\n
         var inputcls = $.trim($(this).parent().attr("class"));\n
         var asetclass = $.trim($(this).attr("class"));\n
         // txtPlaces  // ck1\n
         if($(this).val()!="allvehicle" && $(this).attr("id")!="areapopupsearch"  && $(this).attr("id")!="postedby" && $(this).attr("id")!="jobtitle" && inputcls!="input-group stylish-input-group searchstyle" && asetclass!="txtPlaces" && asetclass!="ck1"){ \n
            var areaselected2 = $("#job_area").val();\n
         var allareatextdefault = "<span style='margin-left:-45px'><b>"+$("#job_area option:selected").text()+"</b></span>";\n
         var checkexist = 0; var allareatext = "";  var thsclass = ""; var clickedtext = ""; var thsclassarr = [];\n
         var clickedclassarr = [];\n
         if($(this).val()=="allareasecond"){ \n
             var allnodechecked = 0; var checkmarked2 = 0; var areaactive =0;  \n
              $(this).parent().find("input").each(function(){\n
                  if($(this).val()!="allareasecond"){\n
                  if($(this).prop("checked")==true && $(this).parent().parent().find("input:first").prop("checked")==false){\n
                      $(this).prop("checked",false);\n
                  } else if($(this).prop("checked")==false && $(this).parent().parent().find("input:first").prop("checked")==true) {\n
                 $(this).prop("checked",true);  }\n
                 }\n
              });\n
              \n
                 if($.trim($(".area-selected").text())==""){\n
                 $(".area-selected").hide(); \n
                 }\n
                 \n
              if($(".area-tooltip").is(":visible")){\n
                  $(".area-selected").show();\n
                  areaactive = 1;\n
                  $(".area-tooltip #"+areaselected2).find("input").each(function(){\n
                       if($(this).val()!="allarea"){\n
                       allnodechecked++;\n
                          if($(this).prop("checked")==true){\n
                              checkmarked2++;\n
                          } \n
                       }\n
                  });\n
              }\n
              \n
              if($(this).prop("checked")==true){\n
                 if(checkmarked2==allnodechecked){\n
                     if(areaactive==1){\n
                         $(".area-tooltip #"+areaselected2).find("input:first").prop("checked",true); \n
                     }\n
                 }\n
                 else {\n
                         if(areaactive==1){\n
                         $(".area-tooltip #"+areaselected2).find("input:first").prop("checked",false);\n
                         }\n
                 }\n
              }\n
              if($(this).prop("checked")==false){\n
                      if(areaactive==1){\n
                      $(".area-tooltip #"+areaselected2).find("input:first").prop("checked",false); \n
                      }\n
                 } \n
              if(checkmarked2==0){ \n
                     if($(".area-tooltip").is(":visible")){\n
                     $('.areabox_'+areaselected2).remove(); }\n
              }\n
                 \n
              var clickedclass = $(this).attr("class"); \n
               var thssecondparenttext = ""; var thssecondparenttextarr = [];\n
              var thsfirstparenttextarr = [];\n
              if($(this).prop("checked")==true){   \n
                  \n
                 if(clickedclass.indexOf('square') != -1)\n
                  {   \n
                      clickedclassarr = clickedclass.split(' ');\n
                      if(areaactive==1){\n
                      $(".areabox_"+areaselected2).find("."+clickedclassarr[0]).remove();\n
                      allareatext = allareatext+"<div class='clearfix'></div><span class='"+clickedclassarr[0]+"' style='margin-left:-35px'>"+$('.area-tooltip #'+clickedclassarr[0]).text()+"</span>";                   \n
                      }\n
                  } \n
                  else { \n
                      if(areaactive==1){\n
                      $(".areabox_"+areaselected2).find("."+clickedclass).remove();\n
                      allareatext = allareatext+"<div class='clearfix'></div><span class='"+clickedclass+"' style='margin-left:-35px'>"+$('.area-tooltip #'+clickedclass).text()+"</span>"; \n
                      }\n
                  } \n
                  $(this).parent().find("input").each(function(i){\n
                      if(clickedclass!=$(this).attr("class")){\n
                          thsclass = $(this).attr("class");    \n
                           if(thsclass.indexOf(' ') != -1)\n
                           { \n
                                thsclassarr = thsclass.split(' ');\n
                                if($(".area-tooltip").is(":visible")){\n
                                $(".areabox_"+areaselected2).find("."+thsclassarr[0]).remove(); }\n
                            \n
                                if($.inArray($('#'+thsclassarr[0]).text(),thsfirstparenttextarr)==-1) { \n
                                if($('#'+thsclassarr[0]).text().length>33){ \n
                                    if(areaactive==1){                                \n
                                    allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsclassarr[0]+"' style='margin-left:-25px'>"+$('.area-tooltip #'+thsclassarr[0]).text().substr(0,33)+"..."+"</span>"; \n
                                    }\n
                                } else { \n
                                    if(areaactive==1){\n
                                    allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsclassarr[0]+"' style='margin-left:-25px'>"+$('.area-tooltip #'+thsclassarr[0]).text()+"</span>"; \n
                                    }\n
                                } \n
                               } \n
                                thsfirstparenttextarr.push($('#'+thsclassarr[0]).text()); \n
                          }\n
                          else { \n
                              \n
                              if($(".area-tooltip").is(":visible")){\n
                                $(".areabox_"+areaselected2).find("."+thsclass).remove(); }\n
                               \n
                               if($.trim($('#'+thsclass).text())=="")\n
                               { \n
                                  $(this).parent().find("label").each(function(){\n
                                  thssecondparenttext = $(this).text();\n
                                  if($.trim($(this).text())!="" && $.inArray(thssecondparenttext,thssecondparenttextarr)==-1) {\n
                                   if(thssecondparenttext.length>33){\n
                                       if(areaactive==1){\n
                                       allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsclass+"' style='margin-left:-25px'>"+thssecondparenttext.substr(0,33)+"..."+"</span>"; \n
                                       }\n
                                   } else {\n
                                        if(areaactive==1){                                     \n
                                        allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsclass+"' style='margin-left:-25px'>"+thssecondparenttext+"</span>"; \n
                                        }\n
                                      } } thssecondparenttextarr.push(thssecondparenttext);\n
                                });\n
                              }\n
                              else { \n
                                if($('#'+thsclass).text().length>33){\n
                                    if(areaactive==1){                                  \n
                                     allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsclass+"' style='margin-left:-25px'>"+$('.area-tooltip #'+thsclass).text().substr(0,33)+"..."+"</span>"; \n
                                    }\n
                               } else { \n
                                      if(areaactive==1){                                  \n
                                      allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsclass+"' style='margin-left:-25px'>"+$('.area-tooltip #'+thsclass).text()+"</span>"; \n
                                      }\n
                               }\n
                             }\n
                          } \n
                      }\n
                  });\n
              }\n
              else {  var thslabelid = ""; \n
                 $(this).parent().find("label").each(function(i){\n
                     //if(i!=0){\n
                         thslabelid = $(this).attr("id"); \n
                         if($(".area-tooltip").is(":visible")){\n
                                $(".areabox_"+areaselected2).find("."+thslabelid).remove(); }\n
                     //}\n
                 });\n
              }\n
               if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){                \n
                   $('.areabox_'+areaselected2+' li div ul li').append(allareatext);\n
                }\n
                else { \n
                    if(allareatext!=""){ allareatext = allareatextdefault+allareatext; \n
                    $(".area-selected").append('<ul class="areabox_'+areaselected2+' workarea nopadding"><li><div class="alert bg-warning border-radius nomargin"> <span class="pull-right" style="margin-top:-7px;margin-right:-15px"> <a href="javascript:void(0)" class="delete-ques padd10 text-danger del-ques"><i class="fa fa-close"></i></a></span><span class="checkallarea" id="checkallarea_" style="display:none">1</span><ul><li>'+allareatext+'</li></ul></div></li></ul>');  \n
                    }\n
                }\n
                \n
                var checkedmark =0; var sizenode = 0;\n
                $(this).parent().find("input").each(function(k){\n
                       if($(this).prop("checked")==true && k!=0){\n
                           checkedmark++;\n
                       }\n
                       if(k!=0){\n
                           sizenode++;\n
                       }\n
                });  \n
                if(sizenode==checkedmark){ $(this).removeClass("square"); $(this).prop("checked",true); }\n
         }\n
         else if($(this).val()!="allarea" && $(this).val()!="allareasecond" && $(this).parent().attr("class")!="row"){ \n
           \n
              var allnodechecked = 0; var checkmarked2 = 0; sizenode = 0; var thsid ="";var thsnodeclass= ""; var thsnodeclassarr = [];\n
              var checkmarked = 0; var thsidarrs = []; var allnodechecked = 0;\n
              var thsnodeclass2arr = []; var thsnodeclass2arr2 = []; var finalnodearr = [];\n
                 countcheck = 0; var areaactive =0; \n
                 \n
                 if($.trim($(".area-selected").text())==""){\n
                 $(".area-selected").hide(); \n
                 }\n
                 if($(".area-tooltip").is(":visible")){ \n
                 $(".area-selected").show(); \n
                 areaactive=1;\n
                 }\n
                 $(this).parent().find("input").each(function(j){ sizenode = j+1;\n
                 });\n
                 $(this).parent().find("input").each(function(i){\n
                  if($(this).prop("checked")==true){ countcheck = countcheck+1; } \n
                 if(countcheck==sizenode){ allnodechecked = 1;\n
                 $(this).parent().parent().find("input:first").prop("checked",true);\n
                 } else { \n
                     $(this).parent().parent().find("input:first").prop("checked",false); \n
                 }\n
                 }); \n
                 if(areaactive==1){\n
                 $(".area-tooltip #"+areaselected2).find("input").each(function(){\n
                     if($(this).val()!="allarea"){\n
                     allnodechecked++;\n
                     if($(this).prop("checked")==true){\n
                         checkmarked2++;\n
                     } \n
                 }\n
                 });\n
                 }\n
                 \n
                 if($(this).prop("checked")==true){\n
                 if(checkmarked2==allnodechecked-1){\n
                     if(areaactive==1){\n
                         $(".area-tooltip #"+areaselected2).find("input:first").prop("checked",true);\n
                     }\n
                 }\n
                 else {\n
                        if(areaactive==1){\n
                         $(".area-tooltip #"+areaselected2).find("input:first").prop("checked",false); \n
                       }\n
                 }\n
                 }\n
                 if($(this).prop("checked")==false){\n
                     if(areaactive==1){\n
                      $(".area-tooltip #"+areaselected2).find("input:first").prop("checked",false);\n
                     }\n
                 } \n
                 if(checkmarked2==0){ \n
                     if(areaactive==1){\n
                     $('.areabox_'+areaselected2).remove(); \n
                     }\n
                 }\n
                 \n
             $(this).parent().parent().parent().parent().find(".col-sm-6").each(function(i){\n
                 \n
                 $(this).find("input").each(function(j){ \n
                  if($(this).prop("checked")==true && j>0){ \n
                    thsnodeclass2arr = $(this).attr("class").split(" "); \n
                    thsnodeclass2arr2 = thsnodeclass2arr[0].split("_");\n
                    if(thsnodeclass2arr2[4]!==undefined){\n
                    finalnodearr.push(thsnodeclass2arr2[0]+"_"+thsnodeclass2arr2[1]+"_"+thsnodeclass2arr2[2]+"_"+thsnodeclass2arr2[3]);\n
                    } else {\n
                     finalnodearr.push(thsnodeclass2arr2[0]+"_"+thsnodeclass2arr2[1]+"_"+thsnodeclass2arr2[2]);   \n
                    }\n
                  }   \n
                 }); \n
                 $(this).find("label").each(function(i){\n
                     thsid = $(this).attr('id');\n
                     if(i==0 && $.inArray(thsid,finalnodearr)!==-1){ \n
                         if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){  \n
                                    allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsid+"' style='margin-left:-35px'>"+$('.area-tooltip #'+thsid).text()+"</span>"; \n
                         }\n
                         \n
                        \n
                         if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){\n
                         \n
                         }\n
                         else { \n
                             if(areaactive==1){ \n
                             allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsid+"' style='margin-left:-35px'>"+$('.area-tooltip #'+thsid).text()+"</span>"; \n
                             }\n
                         }\n
                     \n
                      }                 \n
                 });\n
                 $(this).find(".mleft20").each(function(i){\n
                     $(this).find("input").each(function(){\n
                        if($(this).prop("checked")==true){ \n
                            thsnodeclass= $(this).attr("class");\n
                            thsnodeclassarr = thsnodeclass.split(" "); \n
                            $(".area-selected").find("span").each(function(){\n
                               if($(this).attr("class")==thsnodeclassarr[0]){\n
                                   $(this).remove();\n
                               } \n
                            });\n
                            if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){\n
                                \n
                                if($('.areabox_'+areaselected2+' .'+thsnodeclassarr[0]).is(":visible")){\n
                                    $('.areabox_'+areaselected2+' .'+thsnodeclassarr[0]).remove();\n
                                }\n
                                 else {\n
                                     if($('#'+thsnodeclassarr[0]).text().length>33){\n
                                   allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsnodeclassarr[0]+"' style='margin-left:-25px'>"+$('.area-tooltip #'+thsnodeclassarr[0]).text().substr(0,33)+"..."+"</span>";\n
                                   } else {\n
                                     allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsnodeclassarr[0]+"' style='margin-left:-25px'>"+$('.area-tooltip #'+thsnodeclassarr[0]).text()+"</span>";  \n
                                   }\n
                                 }\n
                            }\n
                            \n
                         if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){\n
                         \n
                         }\n
                         \n
                            else {\n
                            if($('#'+thsnodeclassarr[0]).text().length>33){\n
                                if(areaactive==1){ \n
                                allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsnodeclassarr[0]+"' style='margin-left:-25px'>"+$('.area-tooltip #'+thsnodeclassarr[0]).text().substr(0,33)+"..."+"</span>"; \n
                                }\n
                            } else { \n
                                if(areaactive==1){ \n
                                  allareatext = allareatext+"<div class='clearfix'></div><span class='"+thsnodeclassarr[0]+"' style='margin-left:-25px'>"+$('.area-tooltip #'+thsnodeclassarr[0]).text()+"</span>"; \n
                                }\n
                            } }\n
                        } \n
                     });\n
                 }); }); \n
              \n
                var thsclassarr =""; var allotherareatext = "";\n
                 var thsotherclassarr = [];  \n
                 thsclassarr = $(this).attr("class").split(" ");\n
                 if($(this).prop("checked")==true){\n
                 } else { \n
                     if($('.areabox_'+areaselected2+' .'+thsclassarr[0]).is(":visible") && $(".area-tooltip").is(":visible")){\n
                         $('.areabox_'+areaselected2+' .'+thsclassarr[0]).hide();\n
                     }\n
                 }\n
                    $(this).parent().parent().parent().parent().parent().parent().find(".col-sm-12").each(function(){\n
                        $(this).find("input").each(function(){\n
                            if($(this).prop("checked")==true && $(this).val()!="allareasecond" && $(this).parent().attr("class")!="mleft20"){\n
                              thsotherclassarr = $(this).attr("class").split(" ");\n
                              $(".area-selected").find("span").each(function(){\n
                               if($(this).attr("class")==thsotherclassarr[0]){\n
                                   $(this).remove();\n
                               } \n
                            });\n
                              if($('#'+thsotherclassarr[0]).text().length>33){ \n
                                if(areaactive==1){ \n
                                    allotherareatext = allotherareatext+"<div class='clearfix'></div><span class='"+thsotherclassarr[0]+"' style='margin-left:-35px'>"+$('.area-tooltip #'+thsotherclassarr[0]).text().substr(0,33)+"..."+"</span>"; \n
                                }\n
                                \n
                              } else { \n
                                      if(areaactive==1){ \n
                                       allotherareatext = allotherareatext+"<div class='clearfix'></div><span class='"+thsotherclassarr[0]+"' style='margin-left:-35px'>"+$('.area-tooltip #'+thsotherclassarr[0]).text()+"</span>"; \n
                                      }\n
                              }\n
                             }  \n
                        });\n
                     });\n
                     \n
          \n
          if(allareatext=="" && allotherareatext==""){\n
              allareatext = ""; \n
          }\n
          else { \n
              if(areaactive==1){\n
              allareatext = allareatextdefault+allareatext+allotherareatext;\n
              }\n
          }\n
             \n
                if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){ \n
                $('.areabox_'+areaselected2+' li div ul li').html(allareatext); \n
                }\n
               \n
                    if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){\n
                         \n
                         }\n
                else {  \n
                    if(allareatext!="" && areaactive==1){ \n
                        if($('.areabox_'+areaselected2).is(":visible")){ \n
                        $('.areabox_'+areaselected2).remove(); }\n
                    $(".area-selected").append('<ul class="areabox_'+areaselected2+' workarea nopadding"><li><div class="alert bg-warning border-radius nomargin"> <span class="pull-right" style="margin-top:-7px;margin-right:-15px"> <a href="javascript:void(0)" class="delete-ques padd10 text-danger del-ques"><i class="fa fa-close"></i></a></span><span class="checkallarea" id="checkallarea_" style="display:none">1</span><ul><li>'+allareatext+'</li></ul></div></li></ul>');  \n
                    }\n
               }\n
                \n
                var checkedmark =0;\n
                $(this).parent().find("input").each(function(){\n
                       if($(this).prop("checked")==true){\n
                           checkedmark++;\n
                       } \n
                }); \n
                if($(this).prop("checked")==true){ \n
                    if(checkedmark!=sizenode && checkedmark!=0){\n
                        $(this).parent().parent().find("input:first").addClass("square");\n
                    } else { $(this).parent().parent().find("input:first").removeClass("square"); }\n
                }\n
                else { \n
                    if(checkedmark!=sizenode && checkedmark!=0){\n
                        $(this).parent().parent().find("input:first").addClass("square");\n
                    } else { $(this).parent().parent().find("input:first").removeClass("square"); }\n
                } \n
         }\n
         else if($(this).val()!="allarea" && $(this).val()!="allareasecond" && $(this).parent().attr("class")=="row"){ \n
            \n
             var allnodechecked = 0; sizenode = 0; var thsnodeclass= ""; var thsnodeclassarr = [];\n
              var checkmarked = 0; \n
              var thsclassarr =[]; var allotherareatext = "";\n
              var areaactive =0; \n
              \n
                 if($.trim($(".area-selected").text())==""){\n
                 $(".area-selected").hide(); \n
                 }\n
                 \n
                 if($(".area-tooltip").is(":visible")){\n
                 $(".area-selected").show();\n
                 areaactive =1;\n
                 $(".area-tooltip #"+areaselected2).find("input").each(function(){\n
                     if($(this).val()!="allarea"){\n
                     allnodechecked++;\n
                     if($(this).prop("checked")==true){\n
                         checkmarked++;\n
                     } \n
                 }\n
                 });\n
                 }\n
                 \n
                 if(checkmarked==allnodechecked){\n
                         $(this).parent().parent().parent().find("input:first").prop("checked",true);\n
                 }\n
                 if($(this).prop("checked")==false){\n
                     if(areaactive==1){\n
                      $(".area-tooltip #"+areaselected2).find("input:first").prop("checked",false);\n
                     }\n
                 }\n
                 if(checkmarked==0){\n
                     if($(".area-tooltip").is(":visible")){\n
                     $('.areabox_'+areaselected2).remove(); }\n
                 }\n
                 \n
                 thsclassarr = $(this).attr("class").split(" "); \n
                 if($(this).prop("checked")==true){ \n
                     if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){ \n
    \t\t\t\t\t if($('.areabox_'+areaselected2+' .'+thsclassarr[0]).is(":visible")){\n
                             $('.areabox_'+areaselected2+' .'+thsclassarr[0]).remove();\n
                         } else { \n
                             if($('#'+thsclassarr[0]).text().length>33){\n
                         allotherareatext = allotherareatext+"<div class='clearfix'></div><span class='"+thsclassarr[0]+"' style='margin-left:-35px'>"+$('.area-tooltip #'+thsclassarr[0]).text().substr(0,33)+"..."+"</span>";\n
                         } else { allotherareatext = allotherareatext+"<div class='clearfix'></div><span class='"+thsclassarr[0]+"' style='margin-left:-35px'>"+$('.area-tooltip #'+thsclassarr[0]).text()+"</span>"; }\n
                         }\n
                     } \n
                     \n
                     if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){\n
                         \n
                     }\n
                     else { \n
                     if($('#'+thsclassarr[0]).text().length>33){\n
                            if(areaactive==1){ \n
                            allotherareatext = allotherareatext+"<div class='clearfix'></div><span class='"+thsclassarr[0]+"' style='margin-left:-35px'>"+$('.area-tooltip #'+thsclassarr[0]).text().substr(0,33)+"..."+"</span>"; \n
                            }\n
                         } else { \n
                             if(areaactive==1){                        \n
                             allotherareatext = allotherareatext+"<div class='clearfix'></div><span class='"+thsclassarr[0]+"' style='margin-left:-35px'>"+$('.area-tooltip #'+thsclassarr[0]).text()+"</span>"; \n
                             }\n
                         }\n
                      } \n
                 } else { \n
                     allotherareatext = ""; \n
                     if($('.areabox_'+areaselected2+' .'+thsclassarr[0]).is(":visible") && $(".area-tooltip").is(":visible")){\n
                         $('.areabox_'+areaselected2+' .'+thsclassarr[0]).remove();\n
                     }\n
                 }\n
                   \n
                if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){ \n
                 if(allotherareatext!=""){ \n
                 $('.areabox_'+areaselected2+' li div ul li').append(allotherareatext); \n
                 }\n
                }\n
                if($('.areabox_'+areaselected2).is(":visible") && $(".area-tooltip").is(":visible")){\n
                         \n
                     }\n
                else { \n
                    if(allotherareatext!=""){\n
                        allotherareatext = allareatextdefault+allotherareatext;\n
                        $(".area-selected").append('<ul class="areabox_'+areaselected2+' workarea nopadding"><li><div class="alert bg-warning border-radius nomargin"> <span class="pull-right" style="margin-top:-7px;margin-right:-15px"> <a href="javascript:void(0)" class="delete-ques padd10 text-danger del-ques"><i class="fa fa-close"></i></a></span><span class="checkallarea" id="checkallarea_" style="display:none">1</span><ul><li>'+allotherareatext+'</li></ul></div></li></ul>');  \n
                    }\n
                 } \n
         }\n
         \n
        }     \n
     });\n
     \n
        \n
                    var tt = $($('.pagination').children()[3]).text();\n
                    if ($.trim(tt) == "Of") {\n
                        $($('.pagination').children()[3]).find("a").removeAttr("href");\n
                        $($('.pagination').children()[3]).find("a").removeAttr("style");\n
                        $($('.pagination').children()[3]).find("a").addClass("ofstyle");\n
                    }\n
    \n
                    //filter click events\n
                    $(".show-filter").click(function () {\n
                        $('#rightpanel').addClass('hide-for-sm');\n
                        $('#left-filter').removeClass("hide-for-sm");\n
                        $('.show-filter').addClass('hidden');\n
                        $('#rightpanel').css("display","block");\n
                    });\n
    \n
                    $(".back-to-page").click(function () {\n
                        $('.hide-for-sm').addClass('hide-for-sm');\n
                        $('#rightpanel').removeClass("hide-for-sm");\n
                        $('.show-filter').removeClass('hidden');\n
    \n
                    });\n
    \n
                });\n
                $(function () {\n
                    var current_urls = '{{ app.request.uri }}'; \n
                    if(current_urls =="https://testingsdna.smartmoneymatch.com/jobs/global" || current_urls =="testingsdna.smartmoneymatch.com/jobs/global" || current_urls =="http://testingsdna.smartmoneymatch.com/jobs/global")\n
                    {\n
                    getjoblist(false); \n
                    }\n
                    else if(current_urls =="https://www.smartmoneymatch.com/jobs/global" || current_urls =="www.smartmoneymatch.com/jobs/global")\n
                    {\n
                    getjoblist(false); }\n
                \n
                    $('.pagination a').each(function(i){\n
                        if(i=='3'){ \n
                        $(this).parent().html('<span style="color:#1a1a1a;padding-left:18px;padding-top:5px;padding-bottom:5px">of</span>');\n
                        }\n
                        if(i=='2'){ $(".pageno").text($(this).text());\n
                        }\n
                        if(i=='4'){ $(".lastpageno").text($(this).text()); }\n
    \n
                    });\n
                    \n
                    $('.pagination a').click(function (event) { \n
                event.preventDefault(); \n
                   var gethref = "{{baseurlsss}}";\n
                   var currcountt = 1;\n
                   if($.trim($(this).html())=='<i class="fa fa-angle-right text-success"></i>'){\n
                   currcountt = $(".pagination").find(".active").text();\n
                   currcountt = parseInt(currcountt)+1;\n
                   }\n
                   else if($.trim($(this).html())=='<i class="fa fa-angle-double-right text-success"></i>'){\n
                   $(".pagination").find("li").each(function(m){\n
                       if(m=='4'){ currcountt = $.trim($(this).text()); }\n
                   });\n
                   currcountt = parseInt(currcountt)+1;\n
                   }\n
                   else if($.trim($(this).html())=='<i class="fa fa-angle-left text-success"></i>'){\n
                   currcountt = $(".pagination").find(".active").text();\n
                   if(currcountt>1){\n
                   currcountt = parseInt(currcountt)-1;\n
                   } else { currcountt = 1; }\n
                   }\n
                   else if($.trim($(this).html())=='<i class="fa fa-angle-double-left text-success"></i>'){\n
                   currcountt = 1;\n
                   }\n
    \t\tgethref = gethref+"/job/advancesearch?page="+currcountt; \n
    \t\tvar geclass = $(this).attr('class');\n
                    if(gethref.indexOf('page')>0){\n
                     var postedby = $('#postedby').val();\n
                     var types = $('#selecttype').val();\n
                     var seniority = $('#seniority').val();\n
                     var workamount = $('#workamount').val();\n
                     var language = $('#language').val();\n
                     var activetab = $("#activetab").val();\n
                     if (activetab == "") {\n
                         activetab = "all";\n
                     }\n
                      var sortname = "";\n
                     var jobtitle = $('#jobtitle').val();\n
                     var area = $(".storedworkarea").text();\n
                     var locationdata = '';\n
                     var serviceheadcountry = $('#service_head_country').val();\n
                         var organizesearch = "";\n
                         $("#assetdata").find("p").each(function(){\n
                             if($.trim($(this).text())!=""){\n
                              organizesearch =organizesearch+$(this).text()+"::::";\n
                             }\n
                         });\n
    \n
                         var setemployersearch = "no";\n
                         if($("#ck1").prop("checked")==true){ \n
                             var setemployersearch = "yes";\n
                         }\n
                         var selectedlat = ''; var selectedlng = '';\n
                   var sorttype='';\n
                   if($(".relevancesort").find("a").hasClass('text-black')){\n
                       sorttype = "Relevance";\n
                   }\n
                   else if($(".newestsort").find("a").hasClass('text-black')){\n
                       sorttype = "Newest";\n
                   }\n
                   var searchlocationss = $(".searchlocation").text();\n
                    var remotejob='';\n
                    if(searchlocationss=="Remote"){\n
                        remotejob = "yes"; \n
                    }\n
                     $.ajax({\n
                         url: gethref,\n
                         data: {"remotejob": remotejob,"serviceheadcountry": serviceheadcountry,"sorttype":sorttype,"selectedlat":selectedlat,"selectedlng":selectedlng,"setemployersearch": setemployersearch,"activetab": activetab, "postedby": organizesearch, "sortname": sortname, "type": types, "seniority": seniority, "workamount": workamount, "language": language, "jobtitle": jobtitle, "area": area, "locationdata": locationdata},\n
                         type: 'post',\n
                         beforeSend: function ()\n
                         {\n
                            $('#rightpanel').html("<div class='text-center white-background padd20'><img width='70' alt='Loading' src='/var/uploads/files/loader.gif'> <div class='clearfix'></div><span class='mtop10'>Please wait, we are loading job results.</span></div>");\n
                            $('#rightpanel').css("display","block");\n
                         },\n
                         success: function (response) {\n
                             $('#rightpanel').html(response);\n
                         }\n
                     });\n
                     return false; \n
                 }\n
                 if(geclass=="active"){\n
    \t\t\tvar getactivetext = $(this).text();\n
    \t\t\t$(this).parent().html('<input type="text" style="margin-right:1px;width:50px;display:block" class="pull-left gotopageno" value='+getactivetext+' />');\n
    \t\t}\n
            });\n
                    \n
                     $(document).on('keypress', '.gotopageno', function (e) { \n
                    if(e.which == 13) {   \n
                        var gotopageno =  $(".gotopageno").val();\n
                        var pageno = $(".pageno").text();\n
    \t\t    var lastpageno = $(".lastpageno").text();\n
                        if($.isNumeric(gotopageno) && (parseInt(lastpageno)==parseInt(gotopageno) || parseInt(lastpageno)>parseInt(gotopageno))){ \n
                            if(pageno!=gotopageno){ \n
    \t\t\t\t\t\tvar paginationlink = "{{baseurlsss}}";\n
    \t\t\t\t\t    paginationlink = paginationlink+"/job/advancesearch?page="+gotopageno;\n
                    var postedby = $('#postedby').val();\n
                     var types = $('#selecttype').val();\n
                     var seniority = $('#seniority').val();\n
                     var workamount = $('#workamount').val();\n
                     var language = $('#language').val();\n
                     var activetab = $("#activetab").val();\n
                     if (activetab == "") {\n
                         activetab = "all";\n
                     }\n
                      var sortname = "";\n
                     var jobtitle = $('#jobtitle').val();\n
                     var area = $(".storedworkarea").text(); \n
                     var locationdata = "";\n
                     var serviceheadcountry = $('#service_head_country').val();\n
                         // collecting employer data to search\n
                         var organizesearch = "";\n
                         $("#assetdata").find("p").each(function(){\n
                             if($.trim($(this).text())!=""){\n
                              organizesearch =organizesearch+$(this).text()+"::::";\n
                             }\n
                         });\n
                         // end\n
                         // checking set employer search check box is selected or not\n
                         var setemployersearch = "no";\n
                         if($("#ck1").prop("checked")==true){ \n
                             var setemployersearch = "yes";\n
                         }\n
                         // end\t\n
                         var selectedlat = ''; var selectedlng = '';\n
                   var sorttype='';\n
                   if($(".relevancesort").find("a").hasClass('text-black')){\n
                       sorttype = "Relevance";\n
                   }\n
                   else if($(".newestsort").find("a").hasClass('text-black')){\n
                       sorttype = "Newest";\n
                   }\n
                   var searchlocationss = $(".searchlocation").text();\n
                    var remotejob='';\n
                    if(searchlocationss=="Remote"){\n
                        remotejob = "yes"; \n
                    }\n
    \t\t\t\t\t\t\t$.ajax({\n
    \t\t\t\t\t\t\t\turl: paginationlink,\n
                                                                    data: {"remotejob": remotejob,"serviceheadcountry": serviceheadcountry,"sorttype":sorttype,"selectedlat":selectedlat,"selectedlng":selectedlng,"setemployersearch": setemployersearch,"activetab": activetab, "postedby": organizesearch, "sortname": sortname, "type": types, "seniority": seniority, "workamount": workamount, "language": language, "jobtitle": jobtitle, "area": area, "locationdata": locationdata},\n
                                                                    type: 'post',\n
                                                                    beforeSend: function ()\n
                                                                    {\n
                                                                      $('#rightpanel').html("<div class='text-center white-background padd20'><img width='70' alt='Loading' src='/var/uploads/files/loader.gif'> <div class='clearfix'></div><span class='mtop10'>Please wait, we are loading job results.</span></div>");\n
                                                                      $('#rightpanel').css("display","block");\n
                                                                    },\n
    \t\t\t\t\t\t\t\tsuccess: function(response) {\n
    \t\t\t\t\t\t\t\t\t//alert(response)\n
    \t\t\t\t\t\t\t\t\t $('#rightpanel').html(response); e.preventDefault();\n
    \t\t\t\t\t\t\t\t}\n
    \t\t\t\t\t\t\t });\n
                            }\n
                        }\n
                        else {\n
                         $(".alertbox2").trigger("click");\n
                         }\n
                    }\n
                 });\n
                                // gettting work area from job browsing page and open the selected workarea widget\n
                                 var getworkarea = $.trim($(".getworkarea").text());  \n
                                 if(getworkarea!=""){  \n
                                     $(".area-tooltip").css("display","block");\n
                                      $(".tooltip-body-left").css("right","-818px");\n
                                      $("#areapopupsearch").css("display","table");\n
                                      var workareaval = "";\n
                                      if(getworkarea=='Accounting and Finance'){\n
                                          workareaval = "j2_1";\n
                                      }\n
                                      else if (getworkarea=='Investment Managment'){\n
                                          workareaval = "j2_11";\n
                                      }\n
                                      else if (getworkarea=='Banking'){\n
                                          workareaval = "j2_66";\n
                                      }\n
                                      else if (getworkarea=='Insurance services'){\n
                                          workareaval = "j2_123";\n
                                      }\n
                                      else if (getworkarea=='Risk Management'){\n
                                          workareaval = "j2_141";\n
                                      }\n
                                      else if (getworkarea=='Back Office'){\n
                                          workareaval = "j2_147";\n
                                      }\n
                                      else if (getworkarea=='Legal and Compliance'){\n
                                          workareaval = "j2_175";\n
                                      }\n
                                      else if (getworkarea=='HR and Recruitment'){ \n
                                          workareaval = "j2_177";\n
                                      }\n
                                      else if (getworkarea=='Information Technology'){\n
                                          workareaval = "j2_198";\n
                                      }\n
                                      if(workareaval!=""){ //alert(workareaval); \n
                                      $("#job_area").val(workareaval).trigger('change');\n
                                      $("#"+workareaval).find("label:first").trigger("click");\n
                                      $(".area-closepopup").trigger("click");\n
                                      }\n
                                 }\n
                                 // end\n
                    setTimeout(function () {\n
                        $("#notificationmessage").hide('blind', {}, 500)\n
                    }, 5000);\n
    \n
                    setTimeout(function () {\n
    \n
                        // Configure/customize these variables.\n
                        var showChar = 113;  // How many characters are shown by default\n
                        var ellipsestext = "...";\n
                        var moretext = "Read more ..";\n
                        var lesstext = "Show less";\n
    \n
    \n
                        $('.more').each(function () {\n
                            var content = $(this).html();\n
                            if (content.length > showChar) {\n
    \n
                                var c = content.substr(0, showChar);\n
                                var h = content.substr(showChar, content.length - showChar);\n
    \n
                                var html = c + '<span class="moreellipses">' + ellipsestext + '&nbsp;</span><span class="morecontent"><span>' + h + '</span>&nbsp;&nbsp;<a href="" class="morelink">' + moretext + '</a></span>';\n
    \n
                                $(this).html(html);\n
                            }\n
    \n
                        });\n
    \n
                        $(".morelink").click(function () {\n
                            if ($(this).hasClass("less")) {\n
                                $(this).removeClass("less");\n
                                $(this).html(moretext);\n
                            } else {\n
                                $(this).addClass("less");\n
                                $(this).html(lesstext);\n
                            }\n
                            $(this).parent().prev().toggle();\n
                            $(this).prev().toggle();\n
                            return false;\n
                        });\n
                    }, 1000);\n
                });\n
                $('.btn-group-justified .btn-group button').on('click', function () {\n
                    $(".btn-group-justified .btn-group button").removeClass("active");\n
                    $(this).addClass('active');\n
                });\n
               // initialize();\n
    \n
            $(".area-closepopup").click(function(){ \n
                var workclassarr = []; var workclassarr2 = []; var workclassarr2 = [];var workclassfinalarr = [];var finalvaltosearch = "";\n
                var workareavalfinal = [];\n
                $(".area-selected .workarea").each(function(){\n
                    workclassarr = $(this).attr("class").split(" ");\n
                    workclassarr2 = workclassarr[0].split("_");\n
                    if(workclassarr2[1]!==undefined && workclassarr2[2]!==undefined){\n
                    workclassfinalarr.push(workclassarr2[1]+"_"+workclassarr2[2]);\n
                    }\n
                });\n
                $.each(workclassfinalarr,function(i){\n
                    if(workclassfinalarr[i]==undefined) { } \n
                    else { \n
                    $("#"+workclassfinalarr[i]).find("input").each(function(){\n
                        if($(this).val()!="" && $(this).val()!='allarea' && $(this).val()!='allareasecond' && $(this).prop("checked")==true){\n
                          finalvaltosearch = finalvaltosearch+$(this).val()+",";  \n
                        }\n
                    });\n
                    }\n
                }); $(".storedworkarea").text(finalvaltosearch.slice(0,-1));  getjoblist(false);\n
            });\n
    \n
            {% if app.request.get('sen') != "" %} \n
                $('#seniority').val("{{app.request.get('sen')}}");\n
                getjoblist(false);\n
            {% endif %}\n
    \n
            {% if app.request.get('tle') != "" %}\n
                $('#jobtitle').val("{{app.request.get('tle')}}");\n
                getjoblist(false);\n
            {% endif %}\n
    \n
            {% if app.request.get('loc') != "" %} \n
                codeAddress("{{app.request.get('loc')}}");\n
            {% endif %}\n
               \n
        $("#alljob").addClass("active");\n
                {% if app.request.get('result') == 'mine' %}\n
                $("#activetab").val("mine");\n
                 {% endif %}\n
        </script>\n
    \n
        <script type="text/javascript">\n
            function getjoblist(sort,sorttype='') { \n
                var postedby = $('#postedby').val();\n
                var types = $('#selecttype').val();\n
                var seniority = $('#seniority').val();\n
                var workamount = $('#workamount').val();\n
                var language = $('#language').val();\n
                var activetab = $("#activetab").val();\n
                if (activetab == "") {\n
                    activetab = "all";\n
                }\n
                   \n
    \t\t\t   if(sorttype!=""){\n
                   sorttype=sorttype;\n
                   } else {\n
    \t\t\t\t   if($(".relevancesort").hasClass('text-black')){\n
                       sorttype = "Relevance";\n
                   }\n
                   else if($(".newestsort").hasClass('text-black')){\n
                       sorttype = "Newest";\n
                   }\n
    \t\t\t   }\n
                \n
                if (sort == false)\n
                    var sortname = "";\n
                else\n
                    var sortname = 1;\n
                var jobtitle = $('#jobtitle').val();\n
    \n
                var checkedVals = $('.fa-141:checkbox:checked').map(function () {\n
                    return this.value;\n
                }).get();\n
                var area = $(".storedworkarea").text(); \n
                 var locationdata = ""; \n
    \n
                var current_url = '{{ app.request.uri }}'; // get the current URL\n
                var search_job_loc = '{{searchlocation}}';  \n
                \n
                var serviceheadcountry = $('#service_head_country').val();\n
                if (search_job_loc !== '') {\n
                    current_url = current_url.substr(0, current_url.lastIndexOf("/"));\n
                    current_url = current_url.substr(0, current_url.lastIndexOf("/"));\n
                }\n
    \n
    \n
                console.log(url_city_state);\n
                var searched_city_state = '';\n
                if (typeof url_city_state !== 'undefined' && url_city_state.length > 0 && url_city_state != '')  //if(city_state.length !== 0 && city_state[1] !== '')\n
                {\n
                    $.each(url_city_state, function (index, value) {\n
                        searched_city_state = searched_city_state + value.name + '--';\n
                        ;\n
                    });\n
                    searched_city_state = searched_city_state.substring(0, searched_city_state.length - 2);\n
                }\n
                \n
                var workareacheckexisttext ="";var workareafound = "no";\n
                $(".workarea").each(function(){\n
                    if($(this).is(":visible")){\n
                        $(this).find("span").each(function(i){\n
                            if(i==2 && $(this).text()!=""){ workareacheckexisttext = $(this).text(); workareafound = "yes";\n
                            }\n
                        });\n
                    }\n
                });\n
                if(workareafound=="no"){ workareacheckexisttext = ""; }\n
                     // find organizer search text\n
                    var organizeselectedsearch = "";\n
                    $("#assetdata").find("p").each(function(){\n
                        if($.trim($(this).text())!=""){\n
                         organizeselectedsearch =$(this).text();\n
                        }\n
                    });\n
                    // end\n
                    var defcurrurlallarr = []; var frombrowse = "no";\n
                    defcurrurlallarr = current_url.split('jobs/');\n
                    if(defcurrurlallarr[1] !==undefined){\n
                    } else { frombrowse = "yes";\n
                    }\n
                if (searched_city_state != '' && current_url.indexOf('all')==-1)\n
                {   \n
                    \n
                    // changed routing based on organizer search text and work area selected\n
                    if(organizeselectedsearch!="" && workareacheckexisttext==""){ \n
                        if(current_url.indexOf('global')>0){\n
                        current_url = current_url.replace('global', searched_city_state);\n
                        }\n
                        //current_url = current_url + '/' + searched_city_state+'/'+organizeselectedsearch;\n
                        if(frombrowse=="no")\n
                        current_url = current_url +'/'+organizeselectedsearch;\n
                    }\n
                    else if(organizeselectedsearch!="" && workareacheckexisttext!=""){\n
                        //current_url = current_url.replace('/global', '');\n
                        if(current_url.indexOf('global')>0){\n
                         current_url = current_url.replace('global', searched_city_state);\n
                        }\n
                       // current_url = current_url + '/' + searched_city_state+'/'+organizeselectedsearch+'/'+workareacheckexisttext;\n
                       if(frombrowse=="no")\n
                        current_url = current_url + '/'+organizeselectedsearch+'/'+workareacheckexisttext;\n
                    }\n
                    else if(organizeselectedsearch=="" && workareacheckexisttext!=""){\n
                        //current_url = current_url.replace('/global', '');\n
                        if(current_url.indexOf('global')>0){\n
                        current_url = current_url.replace('global', searched_city_state);\n
                        }\n
                        //current_url = current_url + '/' + searched_city_state+'/all/'+workareacheckexisttext;\n
                        if(frombrowse=="no")\n
                        current_url = current_url + '/all/'+workareacheckexisttext;\n
                    }\n
                    else {  \n
                        if(current_url.indexOf('global')>0){ current_url = current_url.replace('global', searched_city_state);\n
                        }\n
                    //current_url = current_url + '/' + searched_city_state;\n
                    }\n
                }\n
                else if (postedby != '' && current_url.indexOf('all')==-1)\n
                {   \n
                    // changed routing based on organizer search text and work area selected\n
                    if(postedby!="" && workareacheckexisttext==""){ \n
                        if(frombrowse=="no")\n
                        current_url = current_url+'/'+postedby; \n
                    }\n
                    else if(postedby!="" && workareacheckexisttext!=""){ \n
                        if(frombrowse=="no")\n
                        current_url = current_url + '/' +postedby+'/'+workareacheckexisttext;\n
                    }\n
                }\n
                else if (workareacheckexisttext != '' && current_url.indexOf('all')==-1)\n
                {   \n
                    // changed routing based on organizer search text and work area selected\n
                        if(frombrowse=="no")\n
                        current_url = current_url + '/all/'+workareacheckexisttext;\n
                }\n
                \n
                if (searched_city_state != '' && current_url.indexOf('all')>0)\n
                {   \n
                    if(current_url.indexOf('global')>0)\n
                    current_url = current_url.replace('/global', '/'+searched_city_state);\n
                    // changed routing based on organizer search text and work area selected\n
                    if(organizeselectedsearch!=""){ \n
                        if(frombrowse=="no")\n
                        current_url = current_url.replace('/all', '/'+organizeselectedsearch);\n
                    }\n
                }\n
                if (searched_city_state != '' && postedby != '' && current_url.indexOf('all')>0)\n
                {   \n
                    if(current_url.indexOf('global')>0)\n
                    current_url = current_url.replace('/global', '/'+searched_city_state);\n
                    // changed routing based on organizer search text and work area selected \n
                    if(frombrowse=="no")\n
                        current_url = current_url.replace('/all', '/'+postedby);\n
                }\n
                else if (postedby != '' && current_url.indexOf('all')>0)\n
                {   \n
                    // changed routing based on organizer search text and work area selected\n
                    if(frombrowse=="no")\n
                    current_url = current_url.replace('/all', '/'+postedby);\n
                }\n
                \n
                var currurlallarr = []; var currurlallformatarr = []; var currformaturl = ""; var existarr = []; var currenturls = "";\n
                currurlallarr = current_url.split('jobs/');\n
                if(currurlallarr[1] !==undefined){\n
                    if(currurlallarr[1].indexOf('/')>0)\n
                    currurlallformatarr = currurlallarr[1].split('/');\n
                currenturls = currurlallarr[0]+'jobs/';\n
                    for(var jj=0;jj<currurlallformatarr.length;jj++){\n
                        if($.inArray(currurlallformatarr[jj].replace(' ','%20'),existarr)==-1){ //alert(currurlallformatarr[jj]);\n
                            if(jj==0){\n
                            current_url = currenturls+currurlallformatarr[jj];\n
                             } else { current_url = current_url+'/'+currurlallformatarr[jj];\n
                             }\n
                         }\n
                        existarr.push(currurlallformatarr[jj].replace(' ','%20'));\n
                    }\n
                } else {\n
                    if(searched_city_state!=""){\n
                        if(organizeselectedsearch!="" && workareacheckexisttext==""){\n
                            current_url = current_url+"/jobs/"+searched_city_state+"/"+organizeselectedsearch;\n
                        }\n
                        else if(organizeselectedsearch=="" && workareacheckexisttext!=""){\n
                            current_url = current_url+"/jobs/"+searched_city_state+"/all/"+workareacheckexisttext;\n
                        }\n
                        else if(organizeselectedsearch!="" && workareacheckexisttext!=""){\n
                            current_url = current_url+"/jobs/"+searched_city_state+"/"+organizeselectedsearch+"/"+workareacheckexisttext;\n
                        }\n
                        else { current_url = current_url+"/jobs/"+searched_city_state\n
                        }\n
                     }\n
                    \n
                }\n
                                   \n
            {#if (typeof city_state !== 'undefined' && city_state.length > 0 && city_state != '')  //if(city_state.length !== 0 && city_state[1] !== '')\n
            {\n
                //alert('12345');                \n
                //alert(current_url);\n
                current_url = current_url.replace('/global', '');\n
                current_url = current_url + '/' + city_state.join("--");\n
                console.log(city_state);\n
            }#}\n
                    // collecting employer data to search\n
                    var organizesearch = "";\n
                    $("#assetdata").find("p").each(function(){\n
                        if($.trim($(this).text())!=""){\n
                         organizesearch =organizesearch+$(this).text()+"::::";\n
                        }\n
                    });\n
                    // end\n
                    // checking set employer search check box is selected or not\n
                    var setemployersearch = "no";\n
                    if($("#ck1").prop("checked")==true){ \n
                        var setemployersearch = "yes";\n
                    }\n
                    // end\n
                    \n
                    var selectedlat = ''; var selectedlng = '';\n
                    var searchlocationss = $(".searchlocation").text();\n
                    var remotejob='';\n
                    if(searchlocationss=="Remote"){\n
                        remotejob = "yes"; \n
                    }  \n
                    $.ajax\n
                            ({\n
                                url: "{{ path('job_advanceserch')}}",\n
                                data: {"remotejob": remotejob,"serviceheadcountry": serviceheadcountry,"sorttype":sorttype,"selectedlat":selectedlat,"selectedlng":selectedlng,"setemployersearch": setemployersearch,"activetab": activetab, "postedby": organizesearch, "sortname": sortname, "type": types, "seniority": seniority, "workamount": workamount, "language": language, "jobtitle": jobtitle, "area": area, "locationdata": locationdata},\n
                                type: 'post',\n
                                beforeSend: function ()\n
                                {\n
                                     //$('#rightpanel').show();\n
                                    $('#rightpanel').html("<div class='text-center white-background padd20'><img width='70' alt='Loading' src='/var/uploads/files/loader.gif'> <div class='clearfix'></div><span class='mtop10'>Please wait, we are loading job results.</span></div>");\n
                                },\n
                                success: function (result)\n
                                { //alert(result);\n
                                     //$('#rightpanel').show();\n
                                    $('#rightpanel').html(result);\n
                                    //current_url = current_url+"/all";\n
                                    //current_url = makeSortString(current_url); //alert(current_url);\n
                                    // commented for consistency of the routing url\n
                                    var assetdataselectedtext = $("#assetdata").text();\n
                                    var locationdataselectedtext = $("#locationdata").text();\n
                                    var locationdatatext =  "no";\n
                                    $("#locationdata").find("p").each(function(i){\n
                                        if(i==1){ locationdatatext = "yes"; } \n
                                    });\n
                                    var assetsdatatext =  "no";\n
                                    $("#assetdata").find("p").each(function(i){\n
                                        if(i==1){ assetsdatatext = "yes"; } \n
                                    });\n
                                    \n
                                    var matchedjobs = "no";\n
                                    if ((assetsdatatext=='yes') || (locationdatatext=="yes"))\n
                                    {\n
                                        var postcount = $(".pagecount").text();\n
                                        //$("#cntlabel").html(postcount+" matching jobs");\n
                                        $("#cntlabel").html("Find jobs in the investment management industry");\n
                                        var matchedjobs = "yes";\n
                                    }\n
                                    if(assetdataselectedtext=="" && locationdataselectedtext==""){\n
                                        var postcount = $(".pagecount").text();\n
                                        //$("#cntlabel").html("Choose from "+postcount+" listed jobs");\n
                                        $("#cntlabel").html("Find jobs in the investment management industry");\n
                                        var matchedjobs = "yes";\n
                                    }\n
                                     if (organizeselectedsearch != '' && searched_city_state == '' && matchedjobs=="no")\n
                                    {  \n
                                        var posteddesc = $("#postedby").val();\n
                                        var postcount = $(".pagecount").text();\n
                                         //$("#cntlabel").html("All <span class='pagecount2'>"+postcount+"</span> jobs from "+organizeselectedsearch);\n
                                         $("#cntlabel").html("Find jobs in the investment management industry");\n
                                         \n
                                    }\n
                                    if (searched_city_state != '' && organizeselectedsearch == '' && matchedjobs=="no")\n
                                    { \n
                                        var postcount = $(".pagecount").text();\n
                                        searched_city_state = searched_city_state.replace(/--/g, ', ');\n
                                        var searched_city_state_arr = [];\n
                                        if(searched_city_state.indexOf(",")>0){\n
                                            searched_city_state_arr = searched_city_state.split(",");\n
                                            searched_city_state = searched_city_state_arr[0];\n
                                        }\n
                                        else if(searched_city_state.indexOf("-")>0){\n
                                            searched_city_state_arr = searched_city_state.split("-");\n
                                            searched_city_state = searched_city_state_arr[0];\n
                                        }\n
                                        // $("#cntlabel").html("All <span class='pagecount2'>"+postcount+"</span>"+" "+searched_city_state+" jobs");\n
                                        //$("#cntlabel").html("Find jobs in the investment management industry");\n
    \t\t\t\t\t\t\t\t\t$("#cntlabel").html("Investment Management Jobs in "+ searched_city_state);\n
                                     }\n
                                    if (searched_city_state != '' && organizeselectedsearch != '' && matchedjobs=="no")\n
                                    { \n
                                        var postcount = $(".pagecount").text();\n
                                        searched_city_state = searched_city_state.replace(/--/g, ', ');\n
                                        var searched_city_state_arr = [];\n
                                        if(searched_city_state.indexOf(",")>0){\n
                                            searched_city_state_arr = searched_city_state.split(",");\n
                                            searched_city_state = searched_city_state_arr[0];\n
                                        }\n
                                        else if(searched_city_state.indexOf("-")>0){\n
                                            searched_city_state_arr = searched_city_state.split("-");\n
                                            searched_city_state = searched_city_state_arr[0];\n
                                        }\n
                                         //$("#cntlabel").html("All <span class='pagecount2'>"+postcount+"</span>"+" "+searched_city_state+" jobs from "+organizeselectedsearch);\n
                                         //$("#cntlabel").html("Find jobs in the investment management industry");\n
    \t\t\t\t\t\t\t\t\t $("#cntlabel").html("Investment Management Jobs in "+ searched_city_state);\n
                                    }\n
                                    if(activetab=="mine"){\n
                                        var postcount = $(".pagecount").text();\n
                                        //$("#cntlabel").html("Choose from "+postcount+" listed jobs");\n
                                        $("#cntlabel").html("Find jobs in the investment management industry");\n
                                    }\n
                                     $("#postedby").val("");\n
                                    if(organizeselectedsearch!="1" && organizeselectedsearch!=""){\n
                                        $(".offeredorgg").trigger("click");\n
                                    }\n
                                    \n
                                        \n
                                }\n
                            });\n
                            if(sorttype!="") { return false; }\n
                }\n
                \n
                 $(document).keypress(function(e) {\n
                 if($(".modal").hasClass("in")){\n
                    } else {\n
                            if(e.which == 13) {   \n
                                   getjoblist(false);\n
                            }\n
                        }\n
                 });\n
                function makeSortString(s) {\n
                  if(!makeSortString.translate_re) makeSortString.translate_re = /[öäüÖÄÜ]/g;\n
                  var translate = {\n
                    "ä": "a", "ö": "o", "ü": "u", "ï": "i", "ÿ": "y",\n
                    "Ä": "A", "Ö": "O", "Ü": "U",\n
                    'à': 'a', 'á': 'a', 'â': 'a', 'ã': 'a', 'ä': 'a', 'å': 'a', // a\n
                    'ç': 'c',                                                   // c\n
                    'è': 'e', 'é': 'e', 'ê': 'e', 'ë': 'e',                     // e\n
                    'ì': 'i', 'í': 'i', 'î': 'i', 'ï': 'i',                     // i\n
                    'ñ': 'n',                                                   // n\n
                    'ò': 'o', 'ó': 'o', 'ô': 'o', 'õ': 'o', 'ö': 'o', 'ø': 'o', // o\n
                    'ß': 's',                                                   // s\n
                    'ù': 'u', 'ú': 'u', 'û': 'u', 'ü': 'u',                     // u\n
                    'ÿ': 'y' // probably more to come\n
                  };\n
                  \n
                  return ( s.replace(makeSortString.translate_re, function(match) { \n
                    return translate[match]; \n
                  }) );\n
                }\n
                \n
                function getassetsval(val) {     \n
                    val = "workarea_" + val;\n
                    $('.jobs_work_area').hide();\n
                    $('div[name="' + val + '"]').attr('style', 'display:block');                                \n
                }\n
            {% if title != '' %}    \n
                $('#offereby').trigger('click');\n
            {% endif %}\n
            $('#subscribeevent').click(function () {\n
                    var name = $('#subscribename').val();\n
                     var email = '';\n
                     if($('#subscribeemail').is(":visible")){\n
                    var email = $('#subscribeemail').val();\n
                    if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))\n
                    {                  \n
                    }else{\n
                      $(".validsubscc").hide();\n
                         $(".invalidsubscc").show().delay(3000).fadeOut();\n
                          return (false);                 \n
                    } \n
                }\n
                var postedby = $('#postedby').val();\n
                var types = $('#selecttype').val();\n
                var seniority = $('#seniority').val();\n
                var workamount = $('#workamount').val();\n
                var language = $('#language').val();\n
                var jobtitle = $('#jobtitle').val();\n
                 var locationdata = ""; \n
                var search_job_loc = '{{searchlocation}}'; \n
                var serviceheadcountry = $('#service_head_country').val();\n
                     // find organizer search text\n
                    var organizeselectedsearch = "";\n
                    // end\n
                    // collecting employer data to search\n
                    var organizesearch = "";\n
                    $("#assetdata").find("p").each(function(){\n
                        if($.trim($(this).text())!=""){\n
                         organizesearch =organizesearch+$(this).text()+"::::";\n
                        }\n
                    });\n
                    // end\n
                    // checking set employer search check box is selected or not\n
                    var setemployersearch = "no";\n
                    if($("#ck1").prop("checked")==true){ \n
                        var setemployersearch = "yes";\n
                    }\n
                    // end\n
                    var selectedlat = ''; var selectedlng = '';\n
                    var searchlocationss = $(".searchlocation").text();\n
                    var remotejob='';\n
                    if(searchlocationss=="Remote"){\n
                        remotejob = "yes"; \n
                    }\n
                    var area = $(".storedworkarea").text();\n
                    $.ajax\n
                            ({\n
                                url: "{{ path('job_subscribe')}}",\n
                                data: {"area": area,"name2": jobtitle,"name": name,"email": email,"type": 'Job',"remotejob": remotejob,"serviceheadcountry": serviceheadcountry,"selectedlat":selectedlat,"selectedlng":selectedlng,"setemployersearch": setemployersearch, "postedby": organizesearch, "type": types, "seniority": seniority, "workamount": workamount, "language": language, "jobtitle": jobtitle, "locationdata": locationdata},\n
                                type: 'post',\n
                                beforeSend: function ()\n
                                {\n
                                },\n
                                success: function (result)\n
                                {  \n
                                    $('#subscribeload').html("");                                                                \n
                                   $(".invalidsubscc").hide();\n
                                    $(".validsubscc").show().delay(3000).fadeOut();\n
                                    $('#message140').modal('toggle'); \n
                                }\n
                            });\n
                }); \n
       \n
        </script>\n
    {% endblock %}\n
    """
}
  1.             searchlocation = searchlocation+"::::AE";
  2.             $('#service_head_country').multiselect('select', searchlocation);
  3.             {% elseif searchlocation != "" and searchlocation != "global" and searchlocation=="Remote" %} 
  4.             searchlocation = "Remote";
  5.             $('#service_head_country').multiselect('select', searchlocation);
  6.             {% elseif searchlocation != "" and searchlocation != "global" and findtext!="" %} 
  7.             searchlocation = searchlocation+"::::"+findtext;
  8.             $('#service_head_country').multiselect('select', searchlocation); getjoblist(false);
  9.     {% endif %}
  10.         {% if searchlocation != "" and searchlocation != "global" %}
  11.             getjoblist(false);
  1.             echo 
  2.             searchlocation = \"Remote\";
  3.             \$('#service_head_country').multiselect('select', searchlocation);
  4.             ";
  5.         } elseif ((((        // line 1661
  6. (isset($context["searchlocation"]) || array_key_exists("searchlocation"$context) ? $context["searchlocation"] : (function () { throw new RuntimeError('Variable "searchlocation" does not exist.'1661$this->source); })()) != "") && ((isset($context["searchlocation"]) || array_key_exists("searchlocation"$context) ? $context["searchlocation"] : (function () { throw new RuntimeError('Variable "searchlocation" does not exist.'1661$this->source); })()) != "global")) && ((isset($context["findtext"]) || array_key_exists("findtext"$context) ? $context["findtext"] : (function () { throw new RuntimeError('Variable "findtext" does not exist.'1661$this->source); })()) != ""))) {
  7.             echo 
  8.             searchlocation = searchlocation+\"::::\"+findtext;
  9.             \$('#service_head_country').multiselect('select', searchlocation); getjoblist(false);
  10.     ";
  11.         }
in vendor/twig/twig/src/Template.php -> block_body (line 171)
  1.             throw new \LogicException('A block must be a method on a \Twig\Template instance.');
  2.         }
  3.         if (null !== $template) {
  4.             try {
  5.                 $template->$block($context$blocks);
  6.             } catch (Error $e) {
  7.                 if (!$e->getSourceContext()) {
  8.                     $e->setSourceContext($template->getSourceContext());
  9.                 }
  1.      ";
  2.         // line 365
  3.         $this->displayBlock('header'$context$blocks);
  4.         // line 548
  5.         echo "        ";
  6.         $this->displayBlock('body'$context$blocks);
  7.         echo 
  8. <!-- wrapper content --> 
  9. ";
  10.         // line 550
  11.         $this->displayBlock('footer'$context$blocks);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
  1.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  2.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Job/searchlist.html.twig"));
  3.         $this->parent $this->loadTemplate("baserfp.html.twig""Job/searchlist.html.twig"1);
  4.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  5.         
  6.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  7.         
  8.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
in vendor/twig/twig/src/Template.php -> doDisplay (line 394)
  1.     }
  2.     protected function displayWithErrorHandling(array $context, array $blocks = [])
  3.     {
  4.         try {
  5.             $this->doDisplay($context$blocks);
  6.         } catch (Error $e) {
  7.             if (!$e->getSourceContext()) {
  8.                 $e->setSourceContext($this->getSourceContext());
  9.             }
in vendor/twig/twig/src/Template.php -> displayWithErrorHandling (line 367)
  1.         return $this->blocks;
  2.     }
  3.     public function display(array $context, array $blocks = [])
  4.     {
  5.         $this->displayWithErrorHandling($this->env->mergeGlobals($context), array_merge($this->blocks$blocks));
  6.     }
  7.     public function render(array $context)
  8.     {
  9.         $level ob_get_level();
in vendor/twig/twig/src/Template.php -> display (line 379)
  1.             ob_start();
  2.         } else {
  3.             ob_start(function () { return ''; });
  4.         }
  5.         try {
  6.             $this->display($context);
  7.         } catch (\Throwable $e) {
  8.             while (ob_get_level() > $level) {
  9.                 ob_end_clean();
  10.             }
  1.         $this->template $template;
  2.     }
  3.     public function render(array $context = []): string
  4.     {
  5.         return $this->template->render($context);
  6.     }
  7.     public function display(array $context = [])
  8.     {
  9.         // using func_get_args() allows to not expose the blocks argument
  1.      * @throws SyntaxError  When an error occurred during compilation
  2.      * @throws RuntimeError When an error occurred during rendering
  3.      */
  4.     public function render($name, array $context = []): string
  5.     {
  6.         return $this->load($name)->render($context);
  7.     }
  8.     /**
  9.      * Displays a template.
  10.      *
  1.             if ($v instanceof FormInterface) {
  2.                 $parameters[$k] = $v->createView();
  3.             }
  4.         }
  5.         return $this->container->get('twig')->render($view$parameters);
  6.     }
  7.     /**
  8.      * Renders a view.
  9.      *
  1.      * If an invalid form is found in the list of parameters, a 422 status code is returned.
  2.      * Forms found in parameters are auto-cast to form views.
  3.      */
  4.     protected function render(string $view, array $parameters = [], ?Response $response null): Response
  5.     {
  6.         $content $this->renderView($view$parameters);
  7.         $response ??= new Response();
  8.         if (200 === $response->getStatusCode()) {
  9.             foreach ($parameters as $v) {
  10.                 if ($v instanceof FormInterface && $v->isSubmitted() && !$v->isValid()) {
AbstractController->render() in src/Controller/JobController.php (line 5262)
  1.                                                     $usersubcnt 0;
  2.                                                     $usersubcnt $eventcnt[0]['cnt'];
  3.                                                     $usersubcnt " "."(".$usersubcnt.")";
  4.                                                         }
  5.                                                     }
  6.         return $this->render('Job/searchlist.html.twig', ['usersubcnt' => $usersubcnt,'user_id' => $user_id,'country' => $countryArr,'getseniority'=>$getseniority,'getworkamt'=>$getworkamt,'getcontracttype'=>$getcontracttype,'firstname'=>$firstname,'lastname'=>$lastname,'final_know_users' => $final_know_users,'sorttype'=>$sorttype,'positivefeedbackuser'=>$positivefeedbackuser,'positivefeedbackcompany'=>$positivefeedbackcompany,'baseurlsss' => $baseurls,'getworkarea' =>$getworkarea,'workareaselected' => $workarea,'companysearch'=>$companytag,'filtertag' => $filtertag,'jobpostedby_myselffname' =>$jobpostedby_myselffname,'jobpostedby_myselflname' =>$jobpostedby_myselflname,'jobpostedby_myselfname' =>$jobpostedby_myselfname,'work_area_nodes' => $work_area_nodes'work_area_arr' => $work_area_arr,'user_results' => $user_results'title' => $title'searchlocation' => $location'language' => $languageArr'pagination' => $pagination'senio' => $senio'contype' => $contype'wrkamount' => $wrkamount]);
  7.     }
  8.     
  9.     /**
  10.      * @Route("/jobs/", name="jon_search2")
  11.      */
in vendor/symfony/http-kernel/HttpKernel.php -> jobsbymiscAction (line 181)
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response$event);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  2.         $this->requestStack->push($request);
  3.         $response null;
  4.         try {
  5.             return $response $this->handleRaw($request$type);
  6.         } catch (\Throwable $e) {
  7.             if ($e instanceof \Error && !$this->handleAllThrowables) {
  8.                 throw $e;
  9.             }
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.     ) {
  2.     }
  3.     public function run(): int
  4.     {
  5.         $response $this->kernel->handle($this->request);
  6.         if (Kernel::VERSION_ID >= 60400) {
  7.             $response->send(false);
  8.             if (\function_exists('fastcgi_finish_request') && !$this->debug) {
in vendor/autoload_runtime.php -> run (line 29)
  1. $app $app(...$args);
  2. exit(
  3.     $runtime
  4.         ->getRunner($app)
  5.         ->run()
  6. );
require_once('/usr/www/users/smartm/vendor/autoload_runtime.php') in public/index.php (line 5)
  1. <?php
  2. umask(0000);
  3. use App\Kernel;
  4. require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
  5. return function (array $context) {
  6.     return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
  7. };

Stack Trace

RuntimeError
Twig\Error\RuntimeError:
Variable "findtext" does not exist.

  at templates/Job/searchlist.html.twig:1661
  at __TwigTemplate_8824801783721f8b25855decf729401b->{closure}()
     (var/cache/dev/twig/3e/3effcaa57225477e4be2c9895da65f85.php:2838)
  at __TwigTemplate_8824801783721f8b25855decf729401b->block_body()
     (vendor/twig/twig/src/Template.php:171)
  at Twig\Template->displayBlock()
     (var/cache/dev/twig/2b/2bff03775e9f219a288cb1eaa38a7230.php:180)
  at __TwigTemplate_e9b20df47f7b9744e081c6ef864bccf0->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (var/cache/dev/twig/3e/3effcaa57225477e4be2c9895da65f85.php:49)
  at __TwigTemplate_8824801783721f8b25855decf729401b->doDisplay()
     (vendor/twig/twig/src/Template.php:394)
  at Twig\Template->displayWithErrorHandling()
     (vendor/twig/twig/src/Template.php:367)
  at Twig\Template->display()
     (vendor/twig/twig/src/Template.php:379)
  at Twig\Template->render()
     (vendor/twig/twig/src/TemplateWrapper.php:38)
  at Twig\TemplateWrapper->render()
     (vendor/twig/twig/src/Environment.php:280)
  at Twig\Environment->render()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:243)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->renderView()
     (vendor/symfony/framework-bundle/Controller/AbstractController.php:254)
  at Symfony\Bundle\FrameworkBundle\Controller\AbstractController->render()
     (src/Controller/JobController.php:5262)
  at App\Controller\JobController->jobsbymiscAction()
     (vendor/symfony/http-kernel/HttpKernel.php:181)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:76)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:197)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35)
  at Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run()
     (vendor/autoload_runtime.php:29)
  at require_once('/usr/www/users/smartm/vendor/autoload_runtime.php')
     (public/index.php:5)