summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtemplates/edit_xref_key_seal.tpl81
-rwxr-xr-xtemplates/list_xref_generic.tpl3
-rwxr-xr-xtemplates/view_xref_address_item.tpl (renamed from templates/view_xref_address_record.tpl)0
-rwxr-xr-xtemplates/view_xref_bank_item.tpl (renamed from templates/view_xref_bank_record.tpl)0
-rwxr-xr-xtemplates/view_xref_contact_item.tpl (renamed from templates/view_xref_contact_record.tpl)0
-rwxr-xr-xtemplates/view_xref_date_item.tpl (renamed from templates/view_xref_date_record.tpl)0
-rwxr-xr-xtemplates/view_xref_image_item.tpl (renamed from templates/view_xref_image_record.tpl)0
-rwxr-xr-xtemplates/view_xref_inc_report_item.tpl (renamed from templates/view_xref_inc_report_record.tpl)0
-rwxr-xr-xtemplates/view_xref_key_seal_record.tpl39
-rwxr-xr-xtemplates/view_xref_locate_item.tpl (renamed from templates/view_xref_locate_record.tpl)0
-rwxr-xr-xtemplates/view_xref_phone_item.tpl (renamed from templates/view_xref_phone_record.tpl)0
-rwxr-xr-xtemplates/view_xref_sig_item.tpl (renamed from templates/view_xref_sig_record.tpl)0
-rwxr-xr-xtemplates/view_xref_text_item.tpl (renamed from templates/view_xref_text_record.tpl)0
13 files changed, 2 insertions, 121 deletions
diff --git a/templates/edit_xref_key_seal.tpl b/templates/edit_xref_key_seal.tpl
deleted file mode 100755
index 3118ac6..0000000
--- a/templates/edit_xref_key_seal.tpl
+++ /dev/null
@@ -1,81 +0,0 @@
-{strip}
-<div class="floaticon">{bithelp}</div>
-<div class="edit contact_xref">
- <div class="header">
- <h1>{tr}Edit Key Seal{/tr}: {$title|escape}-{$xref_title|escape}</h1>
- </div>
-
- {formfeedback hash=$feedback}
- {formfeedback warning=$errors.title}
-
- <div class="body">
- {form enctype="multipart/form-data" id="writexref"}
- <input type="hidden" name="content_id" value="{$xrefInfo.content_id}" />
- <input type="hidden" name="xref_id" value="{$xrefInfo.xref_id}" />
-
- {jstabs}
- {jstab title="Key Seal Details"}
- {legend legend="Contents"}
- <div class="form-group">
- {formlabel label="Key Seal Code" for="xkey"}
- {forminput}
- <input type="text" name="xkey" id="xkey" value="{$xrefInfo.xkey|escape}" />
- {formhelp note="Key Seal Code from key management system."}
- {/forminput}
- <div class="clear"></div>
- </div>
-
- <div class="form-group">
- {formlabel label="Contract Number" for="xkey_ext"}
- {forminput}
- <input type="text" name="xkey_ext" id="xkey_ext" value="{$xrefInfo.xkey_ext|escape}" />
- {formhelp note="Contract number."}
- {/forminput}
- <div class="clear"></div>
- </div>
-
- {formlabel label="Key Seal Notes" for="data"}
- {capture assign=textarea_help}
- {tr}Keep the text attached to reference items short and use comment records to add larger volumns of text. This should be reserved for simple notes such 'as use after 5PM' or the link.{/tr}
- {/capture}
- {textarea rows=5 noformat=1 id="edittext" nowysiwyg="yes" edit=$xrefInfo.data}
- {/legend}
- {/jstab}
-
- {jstab title="Time period"}
- {legend legend="Start and Stop Dates"}
- <div class="form-group">
- <input type="hidden" name="startDateInput" value="1" />
- &nbsp;Ignore Date <input type="checkbox" name="ignore_start_date" {if $xrefInfo.ignore_start_date eq "y"}checked{/if} />
- {formlabel label="Start Date" for=""}
- {forminput}
- {html_select_date prefix="start_" time=$xrefInfo.start_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
- <span dir="ltr">{html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
- {formhelp note="This key seal record becomes valid on this date."}
- {/forminput}
- <div class="clear"></div>
- </div>
-
- <div class="form-group">
- <input type="hidden" name="endDateInput" value="1" />
- &nbsp;Ignore Date <input type="checkbox" name="ignore_end_date" {if $xrefInfo.ignore_end_date eq "y"}checked{/if} />
- {formlabel label="End Date" for=""}
- {forminput}
- {html_select_date prefix="end_" time=$xrefInfo.end_date start_year="-5" end_year="+10"} {tr}at{/tr}&nbsp;
- <span dir="ltr">{html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false}&nbsp;{$siteTimeZone}</span>
- {formhelp note="This key seal record finishes on this date."}
- {/forminput}
- <div class="clear"></div>
- </div>
- {/legend}
- {/jstab}
-
- <div class="form-group submit">
- <input type="submit" name="fCancel" value="{tr}Cancel{/tr}" />&nbsp;
- <input type="submit" name="fSaveXref" value="{tr}Save{/tr}" />
- </div>
- {/jstabs}
- {/form}
- </div><!-- end .body -->
-</div><!-- end .article -->
-{/strip}
diff --git a/templates/list_xref_generic.tpl b/templates/list_xref_generic.tpl
index 7104449..74af33d 100755
--- a/templates/list_xref_generic.tpl
+++ b/templates/list_xref_generic.tpl
@@ -24,8 +24,9 @@
</thead>
<tbody>
{section name=xref loop=$gContent->mInfo.$source}
+ {assign var=_rowTpl value=$gContent->mInfo.$source[xref].template}
<tr class="{cycle values="even,odd"}" title="{$gContent->mInfo.title|escape}">
- {include file="bitpackage:contact/view_xref_`$gContent->mInfo.$source[xref].template`_record.tpl"}
+ {include file=$gContent->getXrefRecordTemplate($_rowTpl)}
</tr>
{sectionelse}
<tr class="norecords">
diff --git a/templates/view_xref_address_record.tpl b/templates/view_xref_address_item.tpl
index f8a217c..f8a217c 100755
--- a/templates/view_xref_address_record.tpl
+++ b/templates/view_xref_address_item.tpl
diff --git a/templates/view_xref_bank_record.tpl b/templates/view_xref_bank_item.tpl
index 3581d36..3581d36 100755
--- a/templates/view_xref_bank_record.tpl
+++ b/templates/view_xref_bank_item.tpl
diff --git a/templates/view_xref_contact_record.tpl b/templates/view_xref_contact_item.tpl
index 01a7095..01a7095 100755
--- a/templates/view_xref_contact_record.tpl
+++ b/templates/view_xref_contact_item.tpl
diff --git a/templates/view_xref_date_record.tpl b/templates/view_xref_date_item.tpl
index 3581d36..3581d36 100755
--- a/templates/view_xref_date_record.tpl
+++ b/templates/view_xref_date_item.tpl
diff --git a/templates/view_xref_image_record.tpl b/templates/view_xref_image_item.tpl
index 9784fd9..9784fd9 100755
--- a/templates/view_xref_image_record.tpl
+++ b/templates/view_xref_image_item.tpl
diff --git a/templates/view_xref_inc_report_record.tpl b/templates/view_xref_inc_report_item.tpl
index 2c5ee03..2c5ee03 100755
--- a/templates/view_xref_inc_report_record.tpl
+++ b/templates/view_xref_inc_report_item.tpl
diff --git a/templates/view_xref_key_seal_record.tpl b/templates/view_xref_key_seal_record.tpl
deleted file mode 100755
index 931d0a0..0000000
--- a/templates/view_xref_key_seal_record.tpl
+++ /dev/null
@@ -1,39 +0,0 @@
-{strip}
-<td>
- {$gContent->mInfo.$source[xref].source_title|escape}
-</td>
-<td>
- {if isset($gContent->mInfo.$source[xref].xref) && $gContent->mInfo.$source[xref].xref <> '' && $gContent->mInfo.$source[xref].xref > 100 }
- {$gContent->mInfo.$source[xref].xref|escape}
- {smartlink ititle="Link to" ifile="display_contact.php" booticon="icon-note-edit" content_id=$gContent->mInfo.$source[xref].xref}
- {else}
- &nbsp;
- {/if}
-</td>
-<td>
- {$gContent->mInfo.$source[xref].xkey|escape} {$gContent->mInfo.$source[xref].xkey_ext|escape}
-</td>
-<td>
- {$gContent->mInfo.$source[xref].data|escape}
-</td>
-<td>
-{if $source ne 'history' }
- {$gContent->mInfo.$source[xref].start_date|bit_short_date}
-{else}
- {$gContent->mInfo.$source[xref].end_date|bit_short_date}
-{/if}
-</td>
-{if $gBitSystem->isFeatureActive( 'contact_list_last_modified' )}
- <td>
- {$gContent->mInfo.xref[xref].last_update_date|bit_long_date}
- </td>
-{/if}
-<td>
- <span class="actionicon">
- {if $gBitUser->hasPermission( 'p_contact_update' ) && $source ne 'history' }
- {smartlink ititle="Callout" ifile="edit_key_break.php" booticon="icon-redo" expunge=0 content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
- {smartlink ititle="Reseal" ifile="edit_key_break.php" booticon="icon-undo" expunge=2 content_id=$gContent->mInfo.content_id xref_id=$gContent->mInfo.$source[xref].xref_id}
- {/if}
- </span>
-</td>
-{/strip}
diff --git a/templates/view_xref_locate_record.tpl b/templates/view_xref_locate_item.tpl
index 3581d36..3581d36 100755
--- a/templates/view_xref_locate_record.tpl
+++ b/templates/view_xref_locate_item.tpl
diff --git a/templates/view_xref_phone_record.tpl b/templates/view_xref_phone_item.tpl
index dfaf036..dfaf036 100755
--- a/templates/view_xref_phone_record.tpl
+++ b/templates/view_xref_phone_item.tpl
diff --git a/templates/view_xref_sig_record.tpl b/templates/view_xref_sig_item.tpl
index 3581d36..3581d36 100755
--- a/templates/view_xref_sig_record.tpl
+++ b/templates/view_xref_sig_item.tpl
diff --git a/templates/view_xref_text_record.tpl b/templates/view_xref_text_item.tpl
index 01a7095..01a7095 100755
--- a/templates/view_xref_text_record.tpl
+++ b/templates/view_xref_text_item.tpl