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
<?php echo $header; ?> | |
<div class="container"> | |
<ul class="breadcrumb"> | |
<?php foreach ($breadcrumbs as $breadcrumb) { ?> | |
<li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li> | |
<?php } ?> | |
</ul> | |
<div class="row"><?php echo $column_left; ?> | |
<?php if ($column_left && $column_right) { ?> | |
<?php $class = 'col-sm-6'; ?> |
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'}} |
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="addTour"> | |
<label class="control-label col-xs-4" for="tour-dropdown">Программа</label> | |
<div class="dropdown col-xs-8 form-group form-horisontal"> | |
<select class="form-control" id="tour-dropdown"> | |
<option value="a">A</option> | |
<option value="b">B</option> | |
<option value="c">C</option> | |
<option value="d">D</option> | |
<option value="e">E</option> | |
<option value="f">F</option> |
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="addPlace"> | |
<div class="containerr"> | |
<div class="roww"> | |
<div class="coll spann_6"> | |
{{> quickForm collection="Places" id="insertPlaces" type="insert" autocomplete="off"}} | |
</div> | |
<div class="coll spann_18"> | |
{{> reactiveTable id="a123321" settings=settings showColumnToggles=true}} | |
</div> | |
</div> |
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
Transfer_Orders = new Mongo.Collection('transfer_orders'); | |
Transfer_Orders.attachSchema(new SimpleSchema({ | |
transfer: { | |
type: String, | |
label: "Выберите трансфер", | |
optional: true, | |
autoform: { | |
type: "select", | |
firstOption: "", |
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
Meteor.call('contenteditable', 'name', Places, Template.tableInsider, function(e, r) { | |
console.log('e', e); | |
console.log('r', r); | |
}); |
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
myMethods = { | |
datafields: { | |
data: `span[data-field= ${this.dataAttrMeth}]`, | |
clickData: `click span[data-field= ${this.dataAttrMeth}]`, | |
keyData: `keypress span[data-field= ${this.dataAttrMeth}]`, | |
blurData: `blur span[data-field= ${this.dataAttrMeth}]`, | |
events: {}, | |
oldVal: '', | |
newVal: '', |
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
contentDistrictChooseMul: function(data_attr, collection, template) { | |
with(this.datafields(data_attr)) { | |
events[clickData] = function(e) { | |
let oldVal = e.target.innerText.split(','); | |
let arr = []; | |
for (var i = 0; i < oldVal.length; i++) { | |
let id = Districts.findOne({ name: oldVal[i] })._id; | |
arr.push(oldVal[i]) |
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
tableMethods.contenteditable2({ | |
data_attr: 'prices', | |
collection: Transfers, | |
template: Template.tableInsiderTransfers, | |
editTargetObj: { ru: "цена" }, | |
type: String | |
}); |
OlderNewer