Changeset 9280859 for src/main/resources


Ignore:
Timestamp:
02/01/23 22:35:56 (22 months ago)
Author:
Gjoko <goko_kostadinov@…>
Branches:
master
Children:
cc52b09
Parents:
044bd76
Message:

Adding search by date on homepage.

Location:
src/main/resources
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/static/js/homepage.js

    r044bd76 r9280859  
    4545            right: 'prev,next today'
    4646        },
    47         editable: true,
     47        editable: false,
    4848        edit: function (start, end, allDay) {
    4949
    5050        },
    5151        firstDay: 1, //  1(Monday) this can be changed to 0(Sunday) for the USA system
    52         selectable: true,
     52        selectable: false,
    5353        defaultView: 'agendaWeek',
    5454
     
    8282            calendar.fullCalendar('unselect');
    8383        },
    84         droppable: true, // this allows things to be dropped onto the calendar !!!
     84        droppable: false, // this allows things to be dropped onto the calendar !!!
    8585        drop: function(date, allDay) { // this function is called when something is dropped
    8686
  • src/main/resources/templates/homepage.html

    r044bd76 r9280859  
    77    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    88
     9    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet" />
     10    <!-- Google Fonts -->
     11    <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
     12    <!-- MDB -->
     13    <link href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.css" rel="stylesheet" />
    914
    1015    <link href='css/fullcalendar.css' rel='stylesheet'/>
    1116    <link href='css/fullcalendar.print.css' rel='stylesheet' media='print'/>
     17    <link href="css/homepage.css" rel="stylesheet" />
    1218</head>
    1319<body>
     
    1521    <div id='calendar'></div>
    1622    <div style='clear:both'></div>
     23</div>
     24
     25<div class="">
     26    <div class="card">
     27        <div class="card-body py-5 px-md-5">
     28            <form th:action="@{/search}" method="get" th:object="${search}">
     29                <div>
     30                    <label for="student-birth-date">Date of search:</label>
     31                    <input type="date" th:field="${search.date}" id="student-birth-date"/>
     32                </div>
     33                <div>
     34                    <button type="submit" class="button">Search</button>
     35                </div>
     36            </form>
     37        </div>
     38    </div>
    1739</div>
    1840<script src='js/jquery-1.10.2.js' type="text/javascript"></script>
Note: See TracChangeset for help on using the changeset viewer.