Announcement

Collapse
No announcement yet.

Custom HTML not add script link

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom HTML not add script link

    Hello,

    I have a custom html for team start and end date.I want to change the format. For example; 21.06.2018


    HTML Code:
    <div class="row">
        <div class="cell col-sm-3 form-group">
            <label class="control-label"><span class="label-text">Start Date</span></label>
            <div class="input-group">
                <input class="main-element form-control datepicker" name="startdate" type="text" value="{{startDate}}" placeholder="Tarih Seçiniz" autocomplete="off">
            </div>
        </div>
        <div class="cell col-sm-3 form-group">
            <label class="control-label"><span class="label-text">End Date</span></label>
            <div class="input-group">
                <input class="main-element form-control datepicker" name="enddate" type="text" value="{{endDate}}" placeholder="Tarih Seçiniz" autocomplete="off">
            </div>
        </div>
    </div>
    <script src="https://code.jquery.com/jquery-1.12.4.js"></script>
    <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
    <script>
        $(function() {
            $( ".datepicker" ).datepicker({ dateFormat: 'dd-mm-yy' });
        });
    </script>
    But I'm getting this error at the console;
    Code:
    [COLOR=#FF0000]http://www.espo.crm/api/v1/https://code.jquery.com/ui/1.12.1/jquery-ui.js?_=1529575847824 403 (Forbidden)[/COLOR]

  • #2

    datepicker is included in EspoCRM. you don't need to add extra script source

    Comment


    • #3
      Originally posted by tanya View Post
      datepicker is included in EspoCRM. you don't need to add extra script source
      Because the format changing feature is not working.

      Code:
       $( ".datepicker" ).datepicker({ dateFormat: 'dd-mm-yy' });
      Result;
      06/21/2018
      i don't want this

      Comment


      • #4
        I share this file with you before...
        EspoCRM – Open Source CRM Application. Contribute to espocrm/espocrm development by creating an account on GitHub.


        Espo used bootstrap datepicker

        If you have working feature, just check how is it implemented

        Comment


        • #5
          Originally posted by tanya View Post
          I share this file with you before...
          https://github.com/espocrm/espocrm/b...s/date.js#L138

          Espo used bootstrap datepicker

          If you have working feature, just check how is it implemented
          I only use HTML. No JS files. It should not be that hard.

          Comment


          • #6
            Okay tanya , I solved it. You not read the I sent codes.

            I changed;
            Code:
            $( ".datepicker" ).datepicker({ [B]dateFormat[/B]: 'dd/mm/yyyy' });
            Code:
            $( ".datepicker" ).datepicker({ [B]format[/B]: 'dd/mm/yyyy' });

            Comment

            Working...
            X