Changeset 571e0df
- Timestamp:
- 02/06/22 18:19:53 (3 years ago)
- Branches:
- master
- Parents:
- 6fe77af
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trip-planner-front/src/app/create-initial-planner/create-initial-planner.component.html
r6fe77af r571e0df 1 <div mat-dialog-content> 2 <p>Planner name</p> 3 <mat-form-field appearance="fill"> 4 <input matInput type="text" [(ngModel)]="plannerDto.name" name="plannerName" placeholder="Planner name"> 5 6 </mat-form-field> 7 <p>Planner description</p> 8 <mat-form-field appearance="fill"> 9 <textarea matInput name="description" [(ngModel)]="plannerDto.description" type="text" 10 placeholder="Planner description"></textarea> 11 </mat-form-field> 12 </div> 13 <div mat-dialog-actions> 14 <button pButton pRipple type="button" label="Save" 15 class="p-button-outlined p-button-rounded p-button-help" (click)="onFormSubmitPlanner(plannerDto)"></button> 16 </div> 1 <div mat-dialog-content> 2 <p>Planner name</p> 3 <mat-form-field appearance="fill"> 4 <input matInput type="text" [(ngModel)]="plannerDto.name" name="plannerName" placeholder="Planner name"> 17 5 18 6 </mat-form-field> 7 <p>Planner description</p> 8 <mat-form-field appearance="fill"> 9 <textarea matInput name="description" [(ngModel)]="plannerDto.description" type="text" 10 placeholder="Planner description"></textarea> 11 </mat-form-field> 12 </div> 13 <div mat-dialog-actions> 14 <button pButton pRipple type="button" label="Save" class="p-button-outlined p-button-rounded p-button-help" 15 (click)="onFormSubmitPlanner(plannerDto)"></button> 16 </div> -
trip-planner-front/src/app/location/add-location-to-planner-panel/add-location-to-planner-panel.component.html
r6fe77af r571e0df 12 12 <td> 13 13 <button pButton pRipple type="button" icon="pi pi-heart" class="p-button-rounded p-button-help" 14 (click)="selectPlanner(planner)" 14 (click)="selectPlanner(planner)"></button> 15 15 </td> 16 16 </tr> 17 17 </ng-template> 18 18 </p-table> 19 -
trip-planner-front/src/app/location/add-location/add-location.component.ts
r6fe77af r571e0df 114 114 if(this.name !== null && this.desc !== null && this.address !== null 115 115 && this.trivia != null && this.priority !== null && this.cityId !== 0 && this.regionId !== 0){ 116 this.isCompleted = true; 117 116 this.isCompleted = true; 118 117 this.locationService.save(this.locationDto).subscribe( 119 118 data => { -
trip-planner-front/src/app/location/location.component.html
r6fe77af r571e0df 4 4 <p-toast></p-toast> 5 5 <h3>Here are all locations</h3> 6 <button pButton pRipple type="button" icon="pi pi-bell" class="p-button-rounded p-button-warning" label="Back to my Planners" (click)="onClickBackToMyPlanners()"></button> 6 <button pButton pRipple type="button" icon="pi pi-bell" class="p-button-rounded p-button-warning" 7 label="Back to my Planners" (click)="onClickBackToMyPlanners()"></button> 7 8 <table class="table"> 8 9 <thead> … … 28 29 </tbody> 29 30 </table> 30 -
trip-planner-front/src/app/locations-form/locations-form.component.ts
r6fe77af r571e0df 130 130 131 131 132 133 132 createMyPlanner() { 134 133 this.categoryIds = this.chipsSeletion.join(','); -
trip-planner/src/main/java/finki/diplomska/tripplanner/models/dto/LocationDto.java
r6fe77af r571e0df 48 48 this.categories = categories; 49 49 } 50 51 50 public LocationDto() { 52 51 } -
trip-planner/src/main/java/finki/diplomska/tripplanner/security/SecurityConfig.java
r6fe77af r571e0df 81 81 .antMatchers("/api/all").permitAll() 82 82 .antMatchers("/api/places").permitAll() 83 .antMatchers("/create/planner").permitAll()84 .antMatchers("/create/planner/{id}").permitAll()85 .antMatchers("/create/locations").permitAll()86 .antMatchers("/create/trip/locations").permitAll()87 .antMatchers("/create").permitAll()88 83 .anyRequest().authenticated(); 89 84 http.addFilterBefore(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class);
Note:
See TracChangeset
for help on using the changeset viewer.