Ejemplo n.º 1
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)) {
Ejemplo n.º 2
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>
Ejemplo n.º 3
0
        <li><?php 
echo filter_by_status(__('Enabled'), RecurringInvoice::ENABLED, $status = $form['status']->getValue());
?>
 |</li>
        <li><?php 
echo filter_by_status(__('Disabled'), RecurringInvoice::DISABLED, $status);
?>
 |</li>
        <li><?php 
echo filter_by_status(__('Pending'), RecurringInvoice::PENDING, $status);
?>
 |</li>
        <li><?php 
echo filter_by_status(__('Finished'), RecurringInvoice::FINISHED, $status);
?>
</li>
      </ul>
      <?php 
include_partial('search/tagsSwitch', array('selected_tags' => $selected_tags));
?>
    </div>
  </div>
  <span class="buttons">
    <?php 
echo gButton(__('Search'), 'id=search-form-submit type=submit') . gButton(__('Reset'), 'id=search-form-reset type=reset');
?>
  </span>
</form>

<?php 
include_partial('search/tags', array('tags' => $tags, 'selected_tags' => $selected_tags));
Ejemplo n.º 4
0
    
    <div id="password-form-contents">
      <p><?php 
echo __('Please type your username or email and we will send you an email with the activation link.');
?>
</p>
      <ul>
        <li>
          <label for="username_email"><?php 
echo __('Username or email');
?>
</label>
          <input type="text" name="username_email" id="username_email">
        </li>
        <li class="buttons">
        <?php 
echo gButton(__("Send"), 'type=submit id=send', 'button=true');
?>
        <?php 
echo image_tag('ajax-bar.gif', 'class=indicator style=display:none;');
?>
        </li>
      </ul>
      <?php 
echo image_tag('ajax-bar.gif', 'class=indicator style=display:none;');
?>
    </div>
    
  </form>
  <a id="siwapp_site_link" href="http://www.siwapp.org" target="_new">Siwapp Invoice System</a>
</div>
Ejemplo n.º 5
0
        ?>
</td>
            <td class="right"><?php 
        if ($customer->getDueAmount($sf_data->getRaw('date_range')) != 0) {
            echo format_currency($customer->getDueAmount($sf_data->getRaw('date_range')), $currency);
        }
        ?>
</td>
              <td class="right">
               <?php 
        echo format_currency($customer->getGrossAmount($sf_data->getRaw('date_range')), $currency);
        ?>
              </td>
              <td class="action payments">
                <?php 
        echo gButton(__("Invoices"), array('id' => 'load-invoices-for-' . $id, 'type' => 'button', 'class' => 'invoices action-clear', 'href' => '@invoices?search[customer_id]=' . $id));
        ?>
              </td>
            </tr>
          <?php 
    }
    ?>
        </tbody>

        <tfoot>
          <tr class="noborder">
            <td colspan="10" class="listing-options">
              <?php 
    echo gButton_to_function(__("Delete"), "do_batch('delete')", array('class' => 'batch delete action-clear', 'confirm' => __('Are you sure?')));
    ?>
            </td>
Ejemplo n.º 6
0
	    </li>
	    <li>| <?php 
    echo link_to(__('Next'), $url . $pager->getNextPage());
    ?>
 |</li>
	    <li><?php 
    echo link_to(__('Last'), $url . $pager->getLastPage());
    ?>
 |</li>
	    <li>
	      <?php 
    echo __('go to ');
    ?>
<input type="text" name="page" id="page" size="2">&nbsp;
	      <?php 
    echo gButton(__('Go'), 'type=submit class=btn primary', 'button=true');
    ?>
	    </li>
	  </ul>
  </form>
<?php 
}
?>

  <div class="small">
    <?php 
echo __('Showing [1]-[2] of [3] results', array('[1]' => $pager->getFirstIndice(), '[2]' => $pager->getLastIndice(), '[3]' => '<strong>' . $pager->getNbResults() . '</strong>'));
?>
  </div>
</div>
Ejemplo n.º 7
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>
Ejemplo n.º 8
0
        if ($invoice->getDraft()) {
            ?>
                  <span class="draftAmount" title="<?php 
            echo __('This amount is not reflected in the total');
            ?>
"></span>
                <?php 
        }
        ?>
                <?php 
        echo format_currency($invoice->getGrossAmount(), $currency);
        ?>
              </td>
              <td class="action payments">
                <?php 
        echo gButton(__("Payments"), "id=load-payments-for-{$id} type=button rel=payments:show class=payment action-clear {$invoice->getStatus()}");
        ?>
              </td>
            </tr>
          <?php 
    }
    ?>
        </tbody>

        <tfoot>
          <tr class="noborder">
            <td colspan="10" class="listing-options">
              <?php 
    include_partial('batchActions');
    ?>
            </td>
Ejemplo n.º 9
0
function gButton_to_function($text, $javascript = null, $html_options = null, $button_options = array())
{
    $html_options = _parse_attributes($html_options);
    if (array_key_exists('confirm', $html_options)) {
        $txt = $html_options['confirm'];
        $javascript = sprintf("if(confirm('{$txt}')){ %s; }", $javascript ? $javascript : "return true");
    }
    $html_options['onclick'] = $javascript . ";return false;";
    return gButton($text, $html_options, $button_options);
}
Ejemplo n.º 10
0
<form action="<?php 
echo url_for('payments/form');
?>
" method="post" class="payments-form">
  <ul class="payments">
    <?php 
echo $form;
?>
  </ul>
  <input type="hidden" name="invoice_id" class="invoice_id" value="<?php 
echo $invoice_id;
?>
">
  <div class="buttons text-right">
    <?php 
echo gButton(__('Add payment'), "class=action add-payment rel=payments:add");
?>
    <?php 
echo gButton(__('Cancel'), 'class=action cancel rel=payments:cancel');
?>
    <?php 
echo gButton(__('Save'), "type=submit class=action save rel=payments:save");
?>
  </div>
</form>
Ejemplo n.º 11
0
" method="post">
  <?php 
echo '<input type="hidden" name="finished_install" id="finished_install" value="1" />';
?>
  <div id="header">
    <h2><?php 
echo __('Finish installation');
?>
</h2>
    <ul>
      <li class="buttons">
        <?php 
echo gButton_to(__("Back"), $prev, 'type=button id=back', 'button=true');
?>
        <?php 
echo gButton(__("Finish"), 'type=submit id=finish', 'button=true');
?>
      </li>
    </ul>
  </div>
  
  <?php 
include_partial('sidebar', array('step' => $step));
?>
  
  <div id="content">
    <?php 
if (count($downloads) == 0) {
    ?>
    <h3><?php 
    echo __('Congratulations! Siwapp is now installed');
Ejemplo n.º 12
0
    echo $template->getName();
    ?>
</td>
            <td><?php 
    echo format_date($template->getUpdatedAt());
    ?>
</td>
          </tr>
        <?php 
}
?>
      </tbody>
      <tfoot>
        <tr class="noborder">
          <td colspan="5" class="listing-options">
            <?php 
echo gButton(__('Create new template'), 'id=createNew type=button class=action create rel=templates:add');
?>
            <?php 
echo gButton(__('Delete selected'), 'id=deleteSelected type=button class=action delete rel=templates:delete');
?>
            <?php 
echo gButton(__('Save'), 'id=save type=submit class=action save rel=templates:save');
?>
          </td>
        </tr>
      </tfoot>
    </table>
  </form>
  
</div>