Refactoring white space
authorNik Okuntseff <support@anuko.com>
Mon, 21 Mar 2016 18:37:20 +0000 (11:37 -0700)
committerNik Okuntseff <support@anuko.com>
Mon, 21 Mar 2016 18:37:20 +0000 (11:37 -0700)
12 files changed:
WEB-INF/templates/admin_teams.tpl
WEB-INF/templates/cf_custom_field_add.tpl
WEB-INF/templates/cf_custom_field_delete.tpl
WEB-INF/templates/cf_custom_field_edit.tpl
WEB-INF/templates/cf_custom_fields.tpl
WEB-INF/templates/cf_dropdown_option_add.tpl
WEB-INF/templates/cf_dropdown_option_delete.tpl
WEB-INF/templates/cf_dropdown_option_edit.tpl
WEB-INF/templates/cf_dropdown_options.tpl
WEB-INF/templates/clients.tpl
WEB-INF/templates/expense_delete.tpl
WEB-INF/templates/expense_edit.tpl

index c418466..5111378 100644 (file)
@@ -15,8 +15,8 @@
     <td class="tableHeader">{$i18n.label.edit}</td>
     <td class="tableHeader">{$i18n.label.delete}</td>
   </tr>
-  {if $teams}
-    {foreach $teams as $team}
+{if $teams}
+  {foreach $teams as $team}
   <tr bgcolor="{cycle values="#f5f5f5,#dedee5"}">
     <td>{$team.id}</td>
     <td>{$team.name|escape:'html'}</td>
     <td><a href="admin_team_edit.php?id={$team.id}">{$i18n.label.edit}</a></td>
     <td><a href="admin_team_delete.php?id={$team.id}">{$i18n.label.delete}</a></td>
   </tr>
-    {/foreach}
-  {/if}
+  {/foreach}
+{/if}
 </table>
-    
+
 <table width="100%">
   <tr>
     <td align="center">
index f1fffc2..82c6d83 100644 (file)
@@ -2,7 +2,7 @@
 <table cellspacing="4" cellpadding="7" border="0">
   <tr>
     <td>
-      {if $user->canManageTeam()}
+{if $user->canManageTeam()}
       <table cellspacing="1" cellpadding="2" border="0">
         <tr>
           <td align="right">{$i18n.label.thing_name} (*):</td>
@@ -24,7 +24,7 @@
           <td colspan="2" align="center" height="50">{$forms.fieldForm.btn_add.control}</td>
         </tr>
       </table>
-    {/if}
+{/if}
     </td>
   </tr>
 </table>
index 80fb155..18fa457 100644 (file)
@@ -2,7 +2,7 @@
 <table cellspacing="4" cellpadding="7" border="0">
   <tr>
     <td>
-      {if $user->canManageTeam()}
+{if $user->canManageTeam()}
       <table cellspacing="0" cellpadding="0" border="0">
         <tr>
           <td colspan="2" align="center"><b>{$field|escape:'html'}</b></td>
@@ -15,7 +15,7 @@
           <td align="left">&nbsp;{$forms.fieldDeleteForm.btn_cancel.control}</td>
         </tr>
       </table>
-      {/if}
+{/if}
     </td>
   </tr>
 </table>
index 4c312ed..44669a1 100644 (file)
@@ -2,7 +2,7 @@
 <table cellspacing="4" cellpadding="7" border="0">
   <tr>
     <td>
-      {if $user->canManageTeam()}
+{if $user->canManageTeam()}
       <table cellspacing="1" cellpadding="2" border="0">
         <tr>
           <td align="right">{$i18n.label.thing_name} (*):</td>
@@ -24,7 +24,7 @@
           <td colspan="2" align="center" height="50">{$forms.fieldForm.btn_save.control}</td>
         </tr>
       </table>
-      {/if}
+{/if}
     </td>
   </tr>
 </table>
index 601c4fc..94be51f 100644 (file)
@@ -2,8 +2,8 @@
 <table cellspacing="0" cellpadding="7" border="0" width="720">
   <tr>
     <td valign="top">
-      {if $user->canManageTeam()}
-         <table cellspacing="1" cellpadding="3" border="0" width="100%">
+{if $user->canManageTeam()}
+      <table cellspacing="1" cellpadding="3" border="0" width="100%">
         <tr>
           <td width="50%" class="tableHeader">{$i18n.label.thing_name}</td>
           <td class="tableHeader">{$i18n.label.type}</td>
           <td class="tableHeader">{$i18n.label.edit}</td>
           <td class="tableHeader">{$i18n.label.delete}</td>
         </tr>
-        {if $custom_fields}
-          {foreach $custom_fields as $field}
+  {if $custom_fields}
+    {foreach $custom_fields as $field}
         <tr bgcolor="{cycle values="#f5f5f5,#dedee5"}">
           <td>{$field['label']|escape:'html'}</td>
-          {if CustomFields::TYPE_TEXT == $field['type']}
+      {if CustomFields::TYPE_TEXT == $field['type']}
           <td>{$i18n.label.type_text}</td>
           <td></td>
-          {else if CustomFields::TYPE_DROPDOWN == $field['type']}
+      {else if CustomFields::TYPE_DROPDOWN == $field['type']}
           <td>{$i18n.label.type_dropdown}</td>
           <td><a href="cf_dropdown_options.php?field_id={$field['id']}">{$i18n.label.configure}</a></td>
-          {/if}
+      {/if}
           <td><a href="cf_custom_field_edit.php?id={$field['id']}">{$i18n.label.edit}</a></td>
           <td><a href="cf_custom_field_delete.php?id={$field['id']}">{$i18n.label.delete}</a></td>
         </tr>
-          {/foreach}
-        {/if}
+    {/foreach}
+  {/if}
       </table>
-    
+
       <table width="100%">
         <tr><td align="center"><br>{$forms.customFieldsForm.btn_add.control}</td></tr>
-         </table>
-      {/if}
+      </table>
+{/if}
     </td>
   </tr>
 </table>
index b1deae9..8ef5286 100644 (file)
@@ -2,7 +2,7 @@
 <table cellspacing="4" cellpadding="7" border="0">
   <tr>
     <td>
-      {if $user->canManageTeam()}
+{if $user->canManageTeam()}
       <table cellspacing="1" cellpadding="2" border="0">
         <tr>
           <td align="right">{$i18n.label.thing_name} (*):</td>
@@ -20,7 +20,7 @@
            <td colspan="2" align="center" height="50">{$forms.optionAddForm.btn_add.control}</td>
         </tr>
       </table>
-      {/if}
+{/if}
     </td>
   </tr>
 </table>
index 0e60c96..214306a 100644 (file)
@@ -2,7 +2,7 @@
 <table cellspacing="4" cellpadding="7" border="0">
   <tr>
     <td>
-      {if $user->canManageTeam()}
+{if $user->canManageTeam()}
       <table cellspacing="0" cellpadding="0" border="0">
         <tr>
           <td colspan="2" align="center"><b>{$option|escape:'html'}</b></td>
@@ -15,7 +15,7 @@
           <td align="left">&nbsp;{$forms.optionDeleteForm.btn_cancel.control}</td>
         </tr>
       </table>
-      {/if}
+{/if}
     </td>
   </tr>
 </table>
index f0e57f9..d56b054 100644 (file)
@@ -2,7 +2,7 @@
 <table cellspacing="4" cellpadding="7" border="0">
   <tr>
     <td>
-      {if $user->canManageTeam()}
+{if $user->canManageTeam()}
       <table cellspacing="1" cellpadding="2" border="0">
         <tr>
           <td align="right">{$i18n.label.thing_name} (*):</td>
@@ -20,7 +20,7 @@
          <td colspan="2" align="center" height="50">{$forms.optionEditForm.btn_save.control}</td>
         </tr>
       </table>
-      {/if}
+{/if}
     </td>
   </tr>
 </table>
index 32d1aab..833cd7c 100644 (file)
@@ -6,24 +6,24 @@
 <table cellspacing="0" cellpadding="7" border="0" width="720">
   <tr>
     <td valign="top">
-      {if $user->canManageTeam()}
+{if $user->canManageTeam()}
       <table cellspacing="1" cellpadding="3" border="0" width="100%">
         <tr>
           <td width="70%" class="tableHeader">{$i18n.label.thing_name}</td>
           <td class="tableHeader">{$i18n.label.edit}</td>
           <td class="tableHeader">{$i18n.label.delete}</td>
         </tr>
-        {if $options}
-          {foreach $options as $key=>$val}
+  {if $options}
+    {foreach $options as $key=>$val}
         <tr bgcolor="{cycle values="#f5f5f5,#dedee5"}">
           <td>{$val|escape:'html'}</td>
           <td><a href="cf_dropdown_option_edit.php?id={$key}">{$i18n.label.edit}</a></td>
           <td><a href="cf_dropdown_option_delete.php?id={$key}">{$i18n.label.delete}</a></td>
         </tr>
-          {/foreach}
-        {/if}
+    {/foreach}
+  {/if}
       </table>
-      
+
       <table width="100%">
         <tr>
           <td align="center">
@@ -34,7 +34,7 @@
           </td>
         </tr>
       </table>
-      {/if}
+{/if}
     </td>
   </tr>
 </table>
index 95e59d5..eb46259 100644 (file)
@@ -29,7 +29,7 @@
       <table width="100%">
         <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add_client}"></form></td></tr>
       </table>
-      
+
   {if $inactive_clients}
       <table cellspacing="1" cellpadding="3" border="0" width="100%">
         <tr><td class="sectionHeaderNoBorder">{$i18n.form.clients.inactive_clients}</td></tr>
         </tr>
     {/foreach}
       </table>
-      
+
       <table width="100%">
         <tr><td align="center"><br><form><input type="button" onclick="chLocation('client_add.php');" value="{$i18n.button.add_client}"></form></td></tr>
       </table>
-  {/if}      
+  {/if}
 {/if}
     </td>
   </tr>
index 3a3172b..fd5dc4e 100644 (file)
@@ -11,7 +11,7 @@
 {if ($smarty.const.MODE_PROJECTS == $user->tracking_mode || $smarty.const.MODE_PROJECTS_AND_TASKS == $user->tracking_mode)}
     <td class="tableHeader" align="center">{$i18n.label.project}</td>
 {/if}
-       <td class="tableHeader" align="center">{$i18n.label.item}</td>
+    <td class="tableHeader" align="center">{$i18n.label.item}</td>
     <td class="tableHeader" align="center">{$i18n.label.cost}</td>
   </tr>
   <tr bgcolor="{cycle values="#f5f5f5,#ccccce"}">
index ddf0d28..79be818 100644 (file)
@@ -42,7 +42,7 @@ function fillProjectDropdown(id) {
   // Populate project dropdown.
   if (!id) {
     // If we are here, client is not selected.
-       var len = projects.length;
+    var len = projects.length;
     for (var i = 0; i < len; i++) {
       dropdown.options[i+1] = new Option(projects[i][1], projects[i][0]);
       if (dropdown.options[i+1].value == selected_item)
@@ -74,7 +74,7 @@ function get_date() {
   <td>
   <table width = "100%">
   <tr>
-       <td valign="top">
+    <td valign="top">
     <table border="0">
 {if in_array('cl', explode(',', $user->plugins))}
     <tr>