Famcy/_items_/with_btn_calendar/with_btn_calendar.py
def generate_template_content(cls, fblock_type=None):
        """
        This is the function that
        returns the template content 
        for the given fblock. 
        - Return a content dictionary
        """
        return {
            "title": "Selected dates / times:",
            "mandatory": False,
            "action_after_post": "clean",                    # (clean / save)
            "weekdays": ['SUN', 'MON', 'TUE', 'WED', 'THURS', 'FRI', 'SAT'],
            "months": ['JAN', 'FEB', 'MARCH', 'APRIL', 'MAY', 'JUNE', 'JULY', 'AUG', 'SEPT', 'OCT', 'NOV', 'DEC'],
            "week_avail": [
                            [
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00']
                            ],
                            [
                                ['2:00', '5:00'],
                                ['4:00', '5:00', '6:00', '7:00', '8:00'],
                                ['4:00', '5:00'],
                                ['2:00', '5:00'],
                                ['2:00', '5:00'],
                                ['2:00', '5:00'],
                                ['2:00', '5:00']
                            ]
                        ],
            "special_avail_dict": [{
                "year": "2021",
                "month": "SEPT",
                "first_date": "7",
                "mode": 1
            }]
        }

        This is the function that
        returns the template content 
        for the given fblock. 
        - Return a content dictionary
        
This is the function that
returns the template content
for the given fblock.
Return a content dictionary
This is the function that returns the template content for the given fblock . Return a content dictionary
def generate_template_content(cls, fblock_type=None):
        return {
            "title": "Selected dates / times:",
            "mandatory": False,
            "action_after_post": "clean",                    
            "weekdays": ['SUN', 'MON', 'TUE', 'WED', 'THURS', 'FRI', 'SAT'],
            "months": ['JAN', 'FEB', 'MARCH', 'APRIL', 'MAY', 'JUNE', 'JULY', 'AUG', 'SEPT', 'OCT', 'NOV', 'DEC'],
            "week_avail": [
                            [
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00'],
                                ['1:00', '2:00', '3:00', '4:00', '5:00']
                            ],
                            [
                                ['2:00', '5:00'],
                                ['4:00', '5:00', '6:00', '7:00', '8:00'],
                                ['4:00', '5:00'],
                                ['2:00', '5:00'],
                                ['2:00', '5:00'],
                                ['2:00', '5:00'],
                                ['2:00', '5:00']
                            ]
                        ],
            "special_avail_dict": [{
                "year": "2021",
                "month": "SEPT",
                "first_date": "7",
                "mode": 1
            }]
        }
def generate_template_content ( cls , fblock_type = None ) : return { "title" : "Selected dates / times:" , "mandatory" : False , "action_after_post" : "clean" , "weekdays" : [ 'SUN' , 'MON' , 'TUE' , 'WED' , 'THURS' , 'FRI' , 'SAT' ] , "months" : [ 'JAN' , 'FEB' , 'MARCH' , 'APRIL' , 'MAY' , 'JUNE' , 'JULY' , 'AUG' , 'SEPT' , 'OCT' , 'NOV' , 'DEC' ] , "week_avail" : [ [ [ '1:00' , '2:00' , '3:00' , '4:00' , '5:00' ] , [ '1:00' , '2:00' , '3:00' , '4:00' , '5:00' ] , [ '1:00' , '2:00' , '3:00' , '4:00' , '5:00' ] , [ '1:00' , '2:00' , '3:00' , '4:00' , '5:00' ] , [ '1:00' , '2:00' , '3:00' , '4:00' , '5:00' ] , [ '1:00' , '2:00' , '3:00' , '4:00' , '5:00' ] , [ '1:00' , '2:00' , '3:00' , '4:00' , '5:00' ] ] , [ [ '2:00' , '5:00' ] , [ '4:00' , '5:00' , '6:00' , '7:00' , '8:00' ] , [ '4:00' , '5:00' ] , [ '2:00' , '5:00' ] , [ '2:00' , '5:00' ] , [ '2:00' , '5:00' ] , [ '2:00' , '5:00' ] ] ] , "special_avail_dict" : [ { "year" : "2021" , "month" : "SEPT" , "first_date" : "7" , "mode" : 1 } ] }
This is the function that
returns the template content
for the given fblock.
This is the function that returns the template content for the given fblock .
"""
        This is the function that
        returns the template content 
        for the given fblock. 
        - Return a content dictionary
        """ # (clean / save)
cls
fblock_type