Changeset 571e0df


Ignore:
Timestamp:
02/06/22 18:19:53 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Parents:
6fe77af
Message:

final presentation

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">
    175
    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  
    1212            <td>
    1313                <button pButton pRipple type="button" icon="pi pi-heart" class="p-button-rounded p-button-help"
    14                     (click)="selectPlanner(planner)" ></button>
     14                    (click)="selectPlanner(planner)"></button>
    1515            </td>
    1616        </tr>
    1717    </ng-template>
    1818</p-table>
    19 
  • trip-planner-front/src/app/location/add-location/add-location.component.ts

    r6fe77af r571e0df  
    114114      if(this.name !== null && this.desc !== null && this.address !== null
    115115        && this.trivia != null  && this.priority !== null && this.cityId !== 0 && this.regionId !== 0){
    116           this.isCompleted = true;
    117        
     116          this.isCompleted = true;       
    118117          this.locationService.save(this.locationDto).subscribe(
    119118            data => {
  • trip-planner-front/src/app/location/location.component.html

    r6fe77af r571e0df  
    44<p-toast></p-toast>
    55<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>
    78<table class="table">
    89  <thead>
     
    2829  </tbody>
    2930</table>
    30 
  • trip-planner-front/src/app/locations-form/locations-form.component.ts

    r6fe77af r571e0df  
    130130
    131131
    132 
    133132  createMyPlanner() {
    134133    this.categoryIds = this.chipsSeletion.join(',');
  • trip-planner/src/main/java/finki/diplomska/tripplanner/models/dto/LocationDto.java

    r6fe77af r571e0df  
    4848        this.categories = categories;
    4949    }
    50 
    5150    public LocationDto() {
    5251    }
  • trip-planner/src/main/java/finki/diplomska/tripplanner/security/SecurityConfig.java

    r6fe77af r571e0df  
    8181                .antMatchers("/api/all").permitAll()
    8282                .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()
    8883                .anyRequest().authenticated();
    8984        http.addFilterBefore(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class);
Note: See TracChangeset for help on using the changeset viewer.