?>
<h1><?php 
\pi18n("Edit a provider", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post" enctype="multipart/form-data">
    <?php 
\Pasteque\form_hidden("edit", $provider, "id");
?>
	<?php 
\Pasteque\form_input("edit", "Provider", $provider, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "Provider", $provider, "dispOrder", "numeric");
?>
	<div class="row">
		<label for="image"><?php 
\pi18n("Image", PLUGIN_NAME);
?>
</label>
		<div style="display:inline-block">
			<input type="hidden" id="clearImage" name="clearImage" value="0" />
		<?php 
Exemple #2
0
?>
<h1><?php 
\pi18n("Edit an user", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post">
    <?php 
\Pasteque\form_hidden("edit", $user, "id");
?>
	<?php 
\Pasteque\form_input("edit", "User", $user, "name", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "User", $user, "roleId", "pick", array("model" => "Role"));
?>
	<div class="row actions">
		<?php 
\Pasteque\form_save();
?>
	</div>
</form>
<?php 
if ($user !== null) {
?>
<h1><?php 
\pi18n("Edit a customer tax", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post">
	<?php 
\Pasteque\form_hidden("edit", $custTax, "id");
?>
	<?php 
\Pasteque\form_input("edit", "CustTaxCat", $custTax, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "CustTaxCat", $custTax, "taxCatId", "pick", array("model" => "Tax", "nullable" => true));
?>
	<div class="row actions">
		<?php 
\Pasteque\form_save();
?>
	</div>
</form>
<?php 
if ($custTax !== NULL) {
?>
<h1><?php 
\pi18n("Edit a product", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post" enctype="multipart/form-data">
    <?php 
\Pasteque\form_hidden("edit", $product, "id");
?>
    <fieldset>
    <legend><?php 
\pi18n("Display", PLUGIN_NAME);
?>
</legend>
    <?php 
\Pasteque\form_input("edit", "Product", $product, "label", "string", array("required" => true));
?>
    <?php 
\Pasteque\form_input("edit", "Product", $product, "categoryId", "pick", array("model" => "Category"));
?>
    <?php 
if ($providers) {
    \Pasteque\form_input("edit", "Product", $product, "providerId", "pick", array("model" => "Provider"));
?>
<h1><?php 
\pi18n("Edit a cash register", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post" enctype="multipart/form-data">
    <?php 
\Pasteque\form_hidden("edit", $cashReg, "id");
?>
	<?php 
\Pasteque\form_input("edit", "CashRegister", $cashReg, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "CashRegister", $cashReg, "locationId", "pick", array("model" => "Location"));
?>

	<div class="row actions">
		<?php 
\Pasteque\form_save();
?>
	</div>
</form>
<?php 
<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<!-- Attribute edit -->
<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post">
	<fieldset>
		<legend><?php 
\pi18n("Attribute", PLUGIN_NAME);
?>
</legend>
		<?php 
\Pasteque\form_hidden("edit", $attribute, "id");
?>
		<?php 
\Pasteque\form_input("edit", "Attribute", $attribute, "label", "string", array("required" => true));
?>
	</fieldset>
	<table cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th><?php 
\pi18n("AttributeValue.value");
?>
</th>
				<th></th>
			</tr>
		</thead>
?>
<h1><?php 
\pi18n("Edit a profile", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post" enctype="multipart/form-data">
    <?php 
\Pasteque\form_hidden("edit", $profile, "id");
?>
	<?php 
\Pasteque\form_input("edit", "DiscountProfile", $profile, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "DiscountProfile", $profile, "rate", "float", array("required" => true));
?>

	<div class="row actions">
		<?php 
\Pasteque\form_save();
?>
	</div>
</form>
<?php 
Exemple #8
0
?>
<h1><?php 
\pi18n("Tariff area", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" id="edit" method="post">
	<?php 
\Pasteque\form_hidden("edit", $area, "id");
?>
	<?php 
\Pasteque\form_input("edit", "TariffArea", $area, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "TariffArea", $area, "dispOrder", "numeric", array("required" => true));
?>

    <div id="catalog-picker"></div>

	<table cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th></th>
				<th><?php 
?>
<h1><?php 
\pi18n("Edit a category", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post" enctype="multipart/form-data">
    <?php 
\Pasteque\form_hidden("edit", $category, "id");
?>
	<?php 
\Pasteque\form_input("edit", "Category", $category, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "Category", $category, "reference", "string", array("required" => false));
?>
	<?php 
\Pasteque\form_input("edit", "Category", $category, "parentId", "pick", array("model" => "Category", "nullable" => TRUE));
?>
	<?php 
\Pasteque\form_input("edit", "Category", $category, "dispOrder", "numeric");
?>
	<div class="row">
		<label for="image"><?php 
Exemple #10
0
<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<!-- Tax category edit -->
<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post">
	<fieldset>
		<legend><?php 
\pi18n("TaxCategory");
?>
</legend>
		<?php 
\Pasteque\form_hidden("edit", $taxCat, "id");
?>
		<?php 
\Pasteque\form_input("edit", "TaxCat", $taxCat, "label", "string", array("required" => true));
?>
	</fieldset>
	<table cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th><?php 
\pi18n("Tax.label");
?>
</th>
				<th><?php 
\pi18n("Tax.rate");
?>
'/>
    </form>
<?php 
}
?>

<form class="edit" id="data-compo" method="post" onsubmit="return submitData();" action="<?php 
echo \Pasteque\get_current_url();
?>
" enctype="multipart/form-data">
<div>
    <div id="composition" class="row">
    <fieldset>
        <legend>Composition</legend>
        <?php 
\Pasteque\form_hidden("edit", $composition, "id");
?>
        <fieldset>
        <legend><?php 
\pi18n("Display", PLUGIN_NAME);
?>
</legend>
        <?php 
\Pasteque\form_input("edit", "Product", $composition, "label", "string", array("required" => true));
?>
        <div class="row">
        <label for="image"><?php 
\pi18n("Image");
?>
</label>
        <div style="display:inline-block">
?>
<h1><?php 
\pi18n("Edit a currency", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post" enctype="multipart/form-data">
    <?php 
\Pasteque\form_hidden("edit", $currency, "id");
?>
	<?php 
\Pasteque\form_input("edit", "Currency", $currency, "label", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "Currency", $currency, "rate", "numeric", array());
?>
	<?php 
\Pasteque\form_input("edit", "Currency", $currency, "symbol", "string", array("required" => true));
?>
	<?php 
\Pasteque\form_input("edit", "Currency", $currency, "decimalSeparator", "string");
?>
	<?php 
\Pasteque\form_input("edit", "Currency", $currency, "thousandsSeparator", "string");
Exemple #13
0
<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<!-- Attribute edit -->
<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post">
	<fieldset>
		<legend><?php 
\pi18n("Attribute set", PLUGIN_NAME);
?>
</legend>
		<?php 
\Pasteque\form_hidden("edit", $set, "id");
?>
		<?php 
\Pasteque\form_input("edit", "AttributeSet", $set, "label", "string", array("required" => true));
?>
	</fieldset>
	<table cellpadding="0" cellspacing="0">
		<thead>
			<tr>
				<th><?php 
\pi18n("AttributeSet.label");
?>
</th>
			</tr>
		</thead>
		<tbody id="list">
?>
<h1><?php 
\pi18n("Edit a location", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post" enctype="multipart/form-data">
    <?php 
\Pasteque\form_hidden("edit", $location, "id");
?>
	<?php 
\Pasteque\form_input("edit", "Location", $location, "label", "string", array("required" => true));
?>

	<div class="row actions">
		<?php 
\Pasteque\form_save();
?>
	</div>
</form>
<?php 
if ($location !== NULL) {
    ?>
<form action="<?php 
Exemple #15
0
?>
<h1><?php 
\pi18n("Edit a role", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post">
    <?php 
\Pasteque\form_hidden("edit", $role, "id");
?>
	<?php 
\Pasteque\form_input("edit", "Role", $role, "name", "string", array("required" => true));
?>
	<h2><?php 
\pi18n("Permissions", PLUGIN_NAME);
?>
</h2>
    <?php 
foreach ($ALL_PERMS as $perm) {
    ?>
    <?php 
    $checked = isset($role) && $role->hasPermission($perm) ? ' checked="true"' : "";
    ?>
    <div class="row">
<h1><?php 
\pi18n("Resources", PLUGIN_NAME);
?>
</h1>

<?php 
\Pasteque\tpl_msg_box($message, $error);
?>

<form id="form" class="edit" action="<?php 
echo \Pasteque\get_current_url();
?>
" method="post" enctype="multipart/form-data">
	<?php 
\Pasteque\form_hidden("edit", $resource, "id");
?>
	<div class="row">
		<?php 
\Pasteque\form_input("edit", "Resource", $resource, "label", "string", array("required" => true));
?>
	</div>
	<div id="selector">
		<div class="row">
			<select id="type-selector">
				<option selected="true" value="<?php 
echo \Pasteque\Resource::TYPE_TEXT;
?>
"><?php 
\pi18n("Text", PLUGIN_NAME);
?>