diff --git a/src/presenter/trip-presenter.js b/src/presenter/trip-presenter.js index 7fb15c8..749408e 100644 --- a/src/presenter/trip-presenter.js +++ b/src/presenter/trip-presenter.js @@ -5,18 +5,18 @@ import TripView from '../view/point-list-view.js'; import { render } from '../render.js'; export default class TripPresenter { - constructor(tripContainer) { - this.tripContainer = tripContainer; - this.pointList = new TripView(); - } + constructor(tripContainer) { + this.tripContainer = tripContainer; + this.pointList = new TripView(); + } - init() { - render(new SortView(), this.tripContainer); - render(this.pointList, this.tripContainer); - render(new EditPointView(), this.pointList.getElement()); + init() { + render(new SortView(), this.tripContainer); + render(this.pointList, this.tripContainer); + render(new EditPointView(), this.pointList.getElement()); - for (let i = 0; i < 3; i++) { - render(new PointView(), this.pointList.getElement()); - } + for (let i = 0; i < 3; i++) { + render(new PointView(), this.pointList.getElement()); } + } } \ No newline at end of file diff --git a/src/view/edit-point-view.js b/src/view/edit-point-view.js index e58867c..0da1726 100644 --- a/src/view/edit-point-view.js +++ b/src/view/edit-point-view.js @@ -1,186 +1,186 @@ import { createElement } from '../render.js'; -const createEditPointTemplate = () => { - return ( - `