Created
November 30, 2015 07:50
-
-
Save qrobin/dc36ebea4ca8152212b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="addTransfer"> | |
<div class="content container"> | |
<div class="row"> | |
<div class="col s6"> | |
<form id='myForm'> | |
{{> textfield label='Город отправления' id='transfer-city-from'}} | |
{{> textfield label='Район отправления' id='transfer-district-from'}} | |
{{> textfield label='Город прибытия' id='transfer-city-to'}} | |
{{> textfield label='Район прибытия' id='transfer-district-to'}} | |
<div class="row"> | |
<div class="col s6">{{> timepick label='Время отбытия' id='transfer-time-from'}} </div> | |
<div class="col s6">{{> timepick label='Время прибытия' id='transfer-time-to'}} </div> | |
</div> | |
{{> pricefield label='Стоимость для взрослых' id='adult-price'}} | |
{{> pricefield label='Стоимость для детей' id='child-price'}} | |
{{> pricefield label='Net для взрослых' id='adult-price-net'}} | |
{{> pricefield label='Net для детей' id='child-price-net'}} | |
<div class="row"> | |
<div class="col s6">{{> switch descr='Доставка на лодке' yes='есть' no='нет' id='transfer-boat' | |
name='transfer-boat'}} </div> | |
<div class="col s6">{{> switch descr='Бесплатные места для детей' yes='есть' no='нет' id='transfer-free' | |
name='transfer-free'}}</div> | |
</div> | |
{{> textfield label='Провайдер услуги' id='transfer-provider'}} | |
{{> textarea label='Краткое описание трансфера (инфо для оператора)' id='transfer-info'}} | |
<div style="margin-top: 50px"></div> | |
{{> confirm add='новый трансфер' toast='Пока что не работает, нету базы данных.'}} | |
</form> | |
</div> | |
<div class="col s6" style="text-align: center;"> | |
</div> | |
</div> | |
</div> | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Other templates ore build by the same way as \addTransfer.html\ | |
I have deployed the app here | |
http://ae-partner.meteor.com/addTransfer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template name="layout"> | |
<div class="wrap"> | |
{{> nav}} | |
{{> yield}} | |
</div> | |
{{> footer}} | |
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<meta charset="utf-8"> | |
<meta title="App"> | |
</head> | |
<body onselectstart="return false"> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Router.configure({ | |
layoutTemplate: 'layout' | |
}); | |
Router.route('/', { | |
name: 'home', | |
template: 'home' | |
}); | |
Router.route('/addTransfer', { | |
name: 'addTransfer', | |
template: 'addTransfer' | |
}); | |
Router.route('/addTaxi', { | |
name: 'addTaxi', | |
template: 'addTaxi' | |
}); | |
Router.route('/addTour', { | |
name: 'addTour', | |
template: 'addTour' | |
}); | |
Router.route('/orderTransfer', { | |
name: 'orderTransfer', | |
template: 'orderTransfer' | |
}); | |
Router.route('/orderTaxi', { | |
name: 'orderTaxi', | |
template: 'orderTaxi' | |
}); | |
Router.route('/orderTour', { | |
name: 'orderTour', | |
template: 'orderTour' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment