예제 #1
0
<form id="step6Form" class="installerForm" action="<?php 
echo url_for('@step6');
?>
" method="post">
  <div id="header">
    <h2><?php 
echo __('Finish installation');
?>
</h2>
    <ul>
      <li class="buttons">
        <?php 
echo gButton_to(__("Back"), '@step5', 'type=button id=back', 'button=true');
?>
      </li>
    </ul>
  </div>
  
  <?php 
include_partial('sidebar', array('step' => $step));
?>
  
  <div id="content">
    <h3><?php 
echo __('Oops, there are some problems');
?>
</h3>
    <p><?php 
__("Please review the following error messages carefully and try to correct them before you continue.");
?>
</p>
예제 #2
0
<form id="step3Form" class="installerForm" action="<?php 
echo url_for($thisPage);
?>
" method="post">
  <div id="header">
    <h2><?php 
echo __('License Agreement');
?>
</h2>
    <ul>
      <li class="buttons">
        <?php 
echo gButton_to(__("Back"), $prev, 'type=button id=back', 'button=true');
?>
        <?php 
echo gButton(__("Next"), 'type=submit id=next', 'button=true');
?>
      </li>
    </ul>
  </div>
  
  <?php 
include_partial('sidebar', array('step' => $step));
?>
  
  <div id="content">
    <div id="license">
      <?php 
$licenseDir = sfConfig::get('sf_app_module_dir') . '/static/templates/';
$license = 'mit_' . substr($sf_user->getCulture(), 0, 2) . '.html';
if (file_exists($licenseDir . $license)) {
예제 #3
0
    <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>
<?php 
echo javascript_tag(" \$('#product-data input[type=text], #product-data textarea').SiwappFormTips();");
예제 #4
0
?>
        <?php 
echo $invoiceForm['days_to_due']->renderRow();
?>
      </ul>
      <?php 
include_partial('common/items', array('invoice' => $invoice, 'invoiceForm' => $invoiceForm, 'currency' => $currency));
?>
    </div>

    <?php 
include_partial('common/termsAndNotes', array('invoiceForm' => $invoiceForm));
?>
  
    <?php 
include_partial('common/tagsDataBlock', array('invoice' => $invoice, 'invoiceForm' => $invoiceForm));
?>

    <div id="saving-options">
      <?php 
if ($invoice->getId()) {
    echo gButton_to(__('Delete'), "recurring/delete?id=" . $invoice->getId(), array('class' => 'action delete', 'post' => true, 'confirm' => __('Are you sure?')), 'button=false');
}
?>
       <?php 
echo gButton(__('Save'), 'type=submit class=action primary save', 'button=true');
?>
    </div>
  </form>
  
</div>
예제 #5
0
        ?>
            <?php 
        echo $tag . ($ctags == ++$i ? null : ', ');
        ?>
          <?php 
    }
    ?>
        </p>
      </div>
    <?php 
}
?>

  </div>

  <div id="saving-options">
    <?php 
echo gButton_to_function(__('Print'), "Tools.popup(siwapp_urls.printHtml + '?ids[]=" . $invoice->getId() . "')", 'class=action print');
?>
    <?php 
echo gButton_to_function(__('Save PDF'), "window.location=siwapp_urls.printPdf + '?ids[]=" . $invoice->getId() . "'", 'class=action pdf');
?>
    <?php 
echo gButton_to(__('Send'), 'invoices/send?id=' . $invoice->getId(), 'class=action send');
?>
    <?php 
echo gButton_to(__('Edit'), 'invoices/edit?id=' . $invoice->getId(), 'class=action edit');
?>
  </div>
  
</div>
예제 #6
0
  <form id="template-form" name="template_form" method="post"
    action="<?php 
echo url_for('@templates?action=edit' . ($form->getObject()->isNew() ? null : '&id=' . $form->getObject()->getId()));
?>
">
    <?php 
if (!$form->getObject()->isNew()) {
    ?>
      <input type="hidden" name="sf_method" value="put" />
    <?php 
}
?>
    <fieldset>
      <ul>
        <?php 
echo $form;
?>
        <li class="text-right">
          <?php 
echo gButton_to('Cancel', '@templates', 'class=action cancel');
?>
 <?php 
echo gButton('Save', 'type=submit class=action save');
?>
 
        </li>
      </ul>
    </fieldset>
  </form>
  
</div>
예제 #7
0
<?php

echo gButton_to_function(__("Delete"), "do_batch('delete')", array('class' => 'batch delete action-clear', 'confirm' => __('Are you sure?')));
echo gButton_to_function(__("Print"), "", 'class=batch print action-clear rel=print:html');
echo gButton_to_function(__("PDF"), "", 'class=batch pdf action-clear rel=print:pdf');
echo gButton_to_function(__("Send"), "", 'class=batch send action-clear rel=batch:email');
echo gButton_to(__("Download as CSV"), '@invoices_export', 'class="csv action-clear"');
예제 #8
0
include_partial('common/items', array('invoice' => $estimate, 'invoiceForm' => $estimateForm, 'currency' => $currency));
?>
  </div>  <!-- div#payment-data -->

  <?php 
include_partial('common/termsAndNotes', array('invoiceForm' => $estimateForm));
?>

  <?php 
include_partial('common/tagsDataBlock', array('invoice' => $estimate, 'invoiceForm' => $estimateForm));
?>
  
  <div id="saving-options" class="block">
    <?php 
if ($estimate->getId()) {
    echo gButton_to(__('Delete'), "estimates/delete?id=" . $estimate->getId(), array('class' => 'action delete', 'post' => true, 'confirm' => __('Are you sure?')), 'button=false') . "&nbsp;&nbsp;&nbsp;&nbsp;";
}
if (!$estimate->isNew()) {
    echo gButton_to_function(__('Print'), "Tools.popup(siwapp_urls.printHtml + '?ids[]=" . $estimate->getId() . "')", 'class=action print') . " ";
    echo gButton_to_function(__('PDF'), "window.location=siwapp_urls.printPdf + '?ids[]=" . $estimate->getId() . "'", 'class=action pdf') . "&nbsp;&nbsp;&nbsp;&nbsp;";
}
if ($estimate->isNew() || $db_draft) {
    echo gButton_to_function(__('Save as draft'), "\$('form.invoice').saveInvoiceAsDraft()", 'class=action save-draft');
}
if (!$estimate->isNew()) {
    echo gButton_to_function(__('Save and create invoice'), "\$('form.invoice').setValueAndSendForm('#generate_invoice', 1);", 'class=action create-invoice') . " ";
}
echo gButton_to_function(__('Save and send by e-mail'), "\$('form.invoice').saveInvoiceAndEmail();", 'class=action send save-email') . "&nbsp;&nbsp;";
echo gButton(__('Save'), 'type=submit class=action primary save', 'button=true');
?>
  </div>
예제 #9
0
          <?php 
    }
    ?>
        </tbody>

        <tfoot>
          <tr class="noborder">
            <td colspan="3" class="listing-options">
              <?php 
    echo gButton_to_function(__("Delete"), "do_batch('delete')", array('class' => 'batch delete action-clear', 'confirm' => __('Are you sure?')));
    ?>
            </td>
            <td colspan="4" class="text-right">
              <?php 
    if ($pending) {
        echo gButton_to(__('Generate pending invoices now'), 'recurring/generate', 'id=pendingButton class="action generate-pending"');
    }
    ?>
            </td>
          </tr>
        </tfoot>
      </table>

    </form>
    
    <?php 
    include_partial('global/pager', array('pager' => $pager, 'route' => '@recurring'));
    ?>
    
  <?php 
} else {