Completed
Push — master ( 9d10c2...bf46e5 )
by Lars
05:14
created
src/Intraface/modules/debtor/Controller/templates/settings.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,8 +77,11 @@
 block discarded – undo
77 77
         <input type="hidden" name="scan_in_contact" value="<?php e($scan_in_contact->get('id')); ?>" />
78 78
         <?php elseif (empty($scan_in_contact) or !is_object($scan_in_contact)) : ?>
79 79
         <input type="submit" name="add_scan_in_contact" value="<?php e(t('Choose contact')); ?>" />
80
-        <?php else : ?>
81
-        <strong>Kontakt</strong>: <?php e($scan_in_contact->get('name') . ' <'.$scan_in_contact->address->get('email').'>'); ?> <input type="submit" name="delete_scan_in_contact" value="Slet kontakt" />
80
+        <?php else {
81
+    : ?>
82
+        <strong>Kontakt</strong>: <?php e($scan_in_contact->get('name') . ' <'.$scan_in_contact->address->get('email').'>');
83
+}
84
+?> <input type="submit" name="delete_scan_in_contact" value="Slet kontakt" />
82 85
         <?php endif; ?>
83 86
     </fieldset>
84 87
 
Please login to merge, or discard this patch.
src/Intraface/modules/debtor/Controller/templates/edit.tpl.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -10,14 +10,20 @@
 block discarded – undo
10 10
         $module_administration = $context->getKernel()->useModule('administration');
11 11
         ?>
12 12
         <a href="<?php e($module_administration->getPath().'intranet_edit.php'); ?>"><?php e(t('Fill out address')); ?></a>.
13
-    <?php else : ?>
14
-        <?php e(t('You do not have access to fill out an adress. Please ask an administrator to do that.')); ?>
13
+    <?php else {
14
+    : ?>
15
+        <?php e(t('You do not have access to fill out an adress. Please ask an administrator to do that.'));
16
+}
17
+?>
15 18
     <?php endif; ?>
16 19
     </p>
17
-<?php else : ?>
20
+<?php else {
21
+    : ?>
18 22
 
19 23
 
20
-<?php echo $context->getDebtor()->error->view(); ?>
24
+<?php echo $context->getDebtor()->error->view();
25
+}
26
+?>
21 27
 
22 28
 <form action="<?php e(url(null, array($context->subview(), 'contact_id' => $context->getContact()->get('id')))); ?>" method="post">
23 29
 
Please login to merge, or discard this patch.
src/Intraface/modules/payment/Controller/templates/index.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,11 @@
 block discarded – undo
65 65
         <td><?php e($payment['amount']); ?></td>
66 66
         <?php if ($payment['is_stated']) : ?>
67 67
         <td><?php e(t('Yes')); ?></td>
68
-        <?php else : ?>
69
-        <td><a href="<?php e(url($payment['id'] . '/state')); ?>"><?php e(t('No')); ?></a></td>
68
+        <?php else {
69
+    : ?>
70
+        <td><a href="<?php e(url($payment['id'] . '/state'));
71
+}
72
+?>"><?php e(t('No')); ?></a></td>
70 73
         <?php endif; ?>
71 74
 
72 75
     </tr>
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/tpl/variations-edit.tpl.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,9 +12,12 @@  discard block
 block discarded – undo
12 12
 
13 13
 <?php if (count($groups) == 0) : ?>
14 14
     <p><?php e(t('No attribute groups has been selected.')); ?> <a href="<?php e(url('select_attribute_group')); ?>"><?php e(t('Choose attribute groups')); ?></a>.</p>
15
-<?php else : ?>
15
+<?php else {
16
+    : ?>
16 17
 
17
-<form action="<?php e(url(null, array($context->subview()))); ?>" method="post">
18
+<form action="<?php e(url(null, array($context->subview())));
19
+}
20
+?>" method="post">
18 21
 <input type="hidden" name="id" value="<?php e($product->getId()); ?>" />
19 22
     <table summary="<?php e(t('Variations')); ?>" id="variations_table" class="stripe">
20 23
         <caption><?php e(t('Variations')); ?></caption>
@@ -70,8 +73,10 @@  discard block
 block discarded – undo
70 73
                         </td>
71 74
                         <td><?php if ($variation !== null) :
72 75
                             e($variation->getNumber());
73
-else :
76
+else {
77
+    :
74 78
     e('-');
79
+}
75 80
 endif; ?>
76 81
                         </td>
77 82
                         <td>
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/tpl/productattributegroup.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,9 +11,12 @@
 block discarded – undo
11 11
 
12 12
 <?php if ($groups->count() == 0) : ?>
13 13
     <p><?php e(t('No attribute groups has been created.')); ?> <a href="attribute_group_edit.php"><?php e(t('Create attribute group')); ?></a>.</p>
14
-<?php else : ?>
14
+<?php else {
15
+    : ?>
15 16
 
16
-<form action="<?php e(url()); ?>" method="post">
17
+<form action="<?php e(url());
18
+}
19
+?>" method="post">
17 20
 <input type="hidden" name="id" value="<?php e($product->getId()); ?>" />
18 21
     <table summary="<?php e(t('Attribute groups')); ?>" id="attribute_group_table" class="stripe">
19 22
         <caption><?php e(t('Attribute groups')); ?></caption>
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/tpl/show.tpl.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -128,10 +128,12 @@  discard block
 block discarded – undo
128 128
         <ul class="options">
129 129
             <li><a href="<?php e(url('variations/select_attribute_groups')); ?>"><?php e(t('Select attributes for product')); ?></a></li>
130 130
         </ul>
131
-    <?php else : ?>
131
+    <?php else {
132
+    : ?>
132 133
         <?php
133 134
         try {
134 135
             $variations = $product->getVariations();
136
+}
135 137
             $variation_is_present = true;
136 138
         } catch (Intraface_Gateway_Exception $e) {
137 139
             $variation_is_present = false;
@@ -142,9 +144,12 @@  discard block
 block discarded – undo
142 144
             <ul class="options">
143 145
                 <li><a href="<?php e(url('variations', array('edit'))); ?>"><?php e(t('Create variations for the product')); ?></a></li>
144 146
             </ul>
145
-        <?php else : ?>
147
+        <?php else {
148
+    : ?>
146 149
 
147
-            <table summary="<?php e(t('Variations')); ?>" id="variations_table" class="stripe">
150
+            <table summary="<?php e(t('Variations'));
151
+}
152
+?>" id="variations_table" class="stripe">
148 153
                 <caption><?php e(t('Variations')); ?></caption>
149 154
                 <thead>
150 155
                     <tr>
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/tpl/index.tpl.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,9 +13,12 @@  discard block
 block discarded – undo
13 13
 
14 14
 <?php if (!$context->getProduct()->isFilledIn()) : ?>
15 15
     <p><?php e(t('No products has been created.')); ?> <a href="<?php e(url(null, array('create'))); ?>"><?php e(t('create product')); ?></a>.</p>
16
-<?php else : ?>
16
+<?php else {
17
+    : ?>
17 18
 
18
-<form action="<?php e(url()); ?>" method="get" class="search-filter">
19
+<form action="<?php e(url());
20
+}
21
+?>" method="get" class="search-filter">
19 22
     <fieldset>
20 23
         <legend><?php e(t('Search')); ?></legend>
21 24
         <!--
@@ -65,9 +68,12 @@  discard block
 block discarded – undo
65 68
 
66 69
     <?php if (count($context->getProducts()) == 0) : ?>
67 70
         <p><?php e(t('no products in search')); ?>.</p>
68
-    <?php else : ?>
71
+    <?php else {
72
+    : ?>
69 73
 
70
-    <table summary="<?php e(t('products')); ?>" id="product_table" class="stripe">
74
+    <table summary="<?php e(t('products'));
75
+}
76
+?>" id="product_table" class="stripe">
71 77
         <caption><?php e(t('products')); ?> (<?php e(t('prices excl. vat')); ?>)</caption>
72 78
         <thead>
73 79
             <tr>
Please login to merge, or discard this patch.
Intraface/modules/product/Controller/tpl/select-attribute-groups.tpl.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,8 +15,11 @@
 block discarded – undo
15 15
 
16 16
 <?php if ($groups->count() == 0) : ?>
17 17
     <p><?php e(t('No attribute groups has been created.')); ?> <a href="<?php e(url(null, array('create'))); ?>"><?php e(t('Create attribute group')); ?></a>.</p>
18
-<?php else : ?>
18
+<?php else {
19
+    : ?>
19 20
 
20
-    <?php echo $content; ?>
21
+    <?php echo $content;
22
+}
23
+?>
21 24
 
22 25
 <?php endif; ?>
Please login to merge, or discard this patch.
src/Intraface/modules/product/Controller/tpl/selectproductvariation.tpl.php 1 patch
Braces   +8 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,8 +6,11 @@  discard block
 block discarded – undo
6 6
 
7 7
 <?php if (count($variations) == 0) : ?>
8 8
     <p><?php e(t('No variations created for the product')); ?>.</p>
9
-<?php else : ?>
10
-    <form action="<?php e(url(null)); ?>" method="post">
9
+<?php else {
10
+    : ?>
11
+    <form action="<?php e(url(null));
12
+}
13
+?>" method="post">
11 14
         <input type="hidden" name="product_id" value="<?php e($product->getId()); ?>" />
12 15
         <input type="hidden" name="set_quantity" value="<?php e($context->quantity); ?>" />
13 16
         <table summary="<?php e(t('Variations')); ?>" id="variations_table" class="stripe">
@@ -16,8 +19,10 @@  discard block
 block discarded – undo
16 19
                 <tr>
17 20
                     <th><?php if ($context->multiple && $context->quantity) :
18 21
                         e(t('Quantity'));
19
-else :
22
+else {
23
+    :
20 24
     echo e(t('Choose'));
25
+}
21 26
 endif; ?></th>
22 27
                     <th>#</th>
23 28
                     <th><?php e(t('Variation')); ?></th>
Please login to merge, or discard this patch.