Пример #1
0
      <span class="_50"><?php 
echo render_tag($customerForm['contact_person']);
?>
</span>
      <span class="_50"><?php 
echo render_tag($customerForm['email']);
?>
</span>
    </li>
    <li>
      <span class="_50"><?php 
echo render_tag($customerForm['invoicing_address']);
?>
</span>
      <span class="_50"><?php 
echo render_tag($customerForm['shipping_address']);
?>
</span>
    </li>
  </ul>
</div>
  <div id="saving-options" class="block">
    <?php 
if ($customer->getId()) {
    echo gButton_to(__('Delete'), "customers/delete?id=" . $customer->getId(), array('class' => 'action delete', 'post' => true, 'confirm' => __('Are you sure?')), 'button=false') . " ";
}
echo gButton(__('Save'), 'type=submit class=action primary save', 'button=true');
?>
  </div>
  </form>
</div>
Пример #2
0
</h3>
  <ul>
    <li>
      <span class="_75"><?php 
echo render_tag($productForm['reference']);
?>
</span>
      <span class="_25"><?php 
echo render_tag($productForm['price']);
?>
</span>
    </li>

    <li>
      <span class="_50"><?php 
echo render_tag($productForm['description']);
?>
</span>     
    </li>
  </ul>
</div>
  <div id="saving-options" class="block" style="margin-top: 20px">
    <?php 
if ($product->getId()) {
    echo gButton_to(__('Delete'), "products/delete?id=" . $product->getId(), array('class' => 'action delete', 'post' => true, 'confirm' => __('Are you sure?')), 'button=false') . " ";
}
echo gButton(__('Save'), 'type=submit class=action primary save', 'button=true');
?>
  </div>
  </form>
</div>
Пример #3
0
?>
</span>
    </li>
    <li>
      <span class="_50"><?php 
echo render_tag($invoiceForm['contact_person']);
?>
</span>
      <span class="_50"><?php 
echo render_tag($invoiceForm['customer_email']);
?>
</span>
    </li>
    <li>
      <span class="_50"><?php 
echo render_tag($invoiceForm['invoicing_address']);
?>
</span>
      <span class="_50"><?php 
echo render_tag($invoiceForm['shipping_address']);
?>
</span>
    </li>
  </ul>
</div>
<?php 
use_helper('JavascriptBase');
$urlAjax = url_for('common/ajaxCustomerAutocomplete');
echo javascript_tag("\n  \$('#" . $invoiceForm['customer_name']->renderId() . "')\n    .autocomplete('" . $urlAjax . "', jQuery.extend({}, {\n      dataType: 'json',\n      parse:    function(data) {\n        var parsed = [];\n        for (key in data) {\n          parsed[parsed.length] = { data: [ data[key].customer, \n            data[key].customer_identification, \n            data[key].contact_person,\n            data[key].customer_email,\n            data[key].invoicing_address,\n            data[key].shipping_address\n          ], value: data[key].customer, result: data[key].customer };\n        }\n        return parsed;\n      },\n      minChars: 2,\n      matchContains: true\n    }))\n    .result(function(event, item) {\n      \$('#" . $invoiceForm['customer_identification']->renderId() . "').val(item[1]);\n      \$('#" . $invoiceForm['contact_person']->renderId() . "').val(item[2]);\n      \$('#" . $invoiceForm['customer_email']->renderId() . "').val(item[3]);\n      \$('#" . $invoiceForm['invoicing_address']->renderId() . "').val(item[4]);\n      \$('#" . $invoiceForm['shipping_address']->renderId() . "').val(item[5]);\n    });\n");
$isnew = $invoiceForm->isNew() ? 'true' : 'false';
echo javascript_tag(" \$('#customer-data input[type=text], #customer-data textarea, #recurring-data input[type=text], #recurring-data select').SiwappFormTips({is_new:{$isnew}});");