Skip to content

Instantly share code, notes, and snippets.

QR qrobin

Block or report user

Report or block qrobin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View product.tpl
<?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 } ?>
<div class="row"><?php echo $column_left; ?>
<?php if ($column_left && $column_right) { ?>
<?php $class = 'col-sm-6'; ?>
View addTransfer.html
<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'}}
View addTour.html
<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>
View addPlace.html
<template name="addPlace">
<div class="containerr">
<div class="roww">
<div class="coll spann_6">
{{> quickForm collection="Places" id="insertPlaces" type="insert" autocomplete="off"}}
<div class="coll spann_18">
{{> reactiveTable id="a123321" settings=settings showColumnToggles=true}}
View schema.js
Transfer_Orders = new Mongo.Collection('transfer_orders');
Transfer_Orders.attachSchema(new SimpleSchema({
transfer: {
type: String,
label: "Выберите трансфер",
optional: true,
autoform: {
type: "select",
firstOption: "",
View client.js'contenteditable', 'name', Places, Template.tableInsider, function(e, r) {
console.log('e', e);
console.log('r', r);
View doesnt_work.js
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: '',
View оо.js
contentDistrictChooseMul: function(data_attr, collection, template) {
with(this.datafields(data_attr)) {
events[clickData] = function(e) {
let oldVal =',');
let arr = [];
for (var i = 0; i < oldVal.length; i++) {
let id = Districts.findOne({ name: oldVal[i] })._id;
View callMethod.js
data_attr: 'prices',
collection: Transfers,
template: Template.tableInsiderTransfers,
editTargetObj: { ru: "цена" },
type: String
You can’t perform that action at this time.