move up, remove ids
This commit is contained in:
parent
2ee89a2412
commit
234b2dfdaf
1 changed files with 15 additions and 19 deletions
|
|
@ -104,19 +104,31 @@ class CreateOfferModal {
|
||||||
parentElement: amountDiv,
|
parentElement: amountDiv,
|
||||||
});
|
});
|
||||||
|
|
||||||
//Continue moving components up here
|
this.amountInput.render();
|
||||||
|
|
||||||
const placeTimeDiv = document.createElement('div');
|
const placeTimeDiv = document.createElement('div');
|
||||||
placeTimeDiv.id = 'place-and-time-area';
|
|
||||||
placeTimeDiv.className = 'create-offer-step';
|
placeTimeDiv.className = 'create-offer-step';
|
||||||
const placeTimeHeading = document.createElement('h3');
|
const placeTimeHeading = document.createElement('h3');
|
||||||
placeTimeHeading.textContent = '¿Dónde y cuándo?';
|
placeTimeHeading.textContent = '¿Dónde y cuándo?';
|
||||||
placeTimeDiv.appendChild(placeTimeHeading);
|
placeTimeDiv.appendChild(placeTimeHeading);
|
||||||
const placeTimeContentDiv = document.createElement('div');
|
const placeTimeContentDiv = document.createElement('div');
|
||||||
placeTimeContentDiv.id = 'place-and-time-boxes';
|
|
||||||
placeTimeDiv.appendChild(placeTimeContentDiv);
|
placeTimeDiv.appendChild(placeTimeContentDiv);
|
||||||
controls.appendChild(placeTimeDiv);
|
controls.appendChild(placeTimeDiv);
|
||||||
|
|
||||||
|
this.placeInput = new PlaceInput({
|
||||||
|
parentElement: placeTimeContentDiv,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.placeInput.render();
|
||||||
|
|
||||||
|
this.timeInput = new TimeInput({
|
||||||
|
parentElement: placeTimeContentDiv,
|
||||||
|
});
|
||||||
|
|
||||||
|
this.timeInput.render();
|
||||||
|
|
||||||
|
//Continue moving components up here
|
||||||
|
|
||||||
const bitcoinMethodsDiv = document.createElement('div');
|
const bitcoinMethodsDiv = document.createElement('div');
|
||||||
bitcoinMethodsDiv.id = 'bitcoin-methods-area';
|
bitcoinMethodsDiv.id = 'bitcoin-methods-area';
|
||||||
bitcoinMethodsDiv.className = 'create-offer-step';
|
bitcoinMethodsDiv.className = 'create-offer-step';
|
||||||
|
|
@ -176,22 +188,6 @@ class CreateOfferModal {
|
||||||
|
|
||||||
this.parentElement.appendChild(this.element);
|
this.parentElement.appendChild(this.element);
|
||||||
|
|
||||||
this.amountInput.render();
|
|
||||||
|
|
||||||
this.placeInput = new PlaceInput({
|
|
||||||
parentElement: document.getElementById('place-and-time-boxes'),
|
|
||||||
id: 'place-input',
|
|
||||||
});
|
|
||||||
|
|
||||||
this.placeInput.render();
|
|
||||||
|
|
||||||
this.timeInput = new TimeInput({
|
|
||||||
parentElement: document.getElementById('place-and-time-boxes'),
|
|
||||||
id: 'time-input',
|
|
||||||
});
|
|
||||||
|
|
||||||
this.timeInput.render();
|
|
||||||
|
|
||||||
this.btcMethodCheckboxes = new BitcoinMethodCheckboxes({
|
this.btcMethodCheckboxes = new BitcoinMethodCheckboxes({
|
||||||
parentElement: document.getElementById('bitcoin-methods-checkboxes'),
|
parentElement: document.getElementById('bitcoin-methods-checkboxes'),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue