diff options
| author | Lester Caine <lsces@lsces.co.uk> | 2011-03-10 15:35:55 +0000 |
|---|---|---|
| committer | Lester Caine <lsces@lsces.co.uk> | 2011-03-10 15:35:55 +0000 |
| commit | aa9f4bd0cf158b1eebe6031ce0939ae11f85e9ff (patch) | |
| tree | d42871857e540ca25bd20e84ed22bafd205aff05 /templates | |
| parent | b595f3d931e2610415f799215ac7f3d68fa568f5 (diff) | |
| download | contact-aa9f4bd0cf158b1eebe6031ce0939ae11f85e9ff.tar.gz contact-aa9f4bd0cf158b1eebe6031ce0939ae11f85e9ff.tar.bz2 contact-aa9f4bd0cf158b1eebe6031ce0939ae11f85e9ff.zip | |
Add xref type specific templates in parallal with the xref generic view and edit functions
Template field has been added to CONTACT_XREF_SOURCE table.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/edit_xref_address.tpl | 77 | ||||
| -rw-r--r-- | templates/edit_xref_key_seal.tpl | 77 | ||||
| -rw-r--r-- | templates/edit_xref_phone.tpl | 69 | ||||
| -rw-r--r-- | templates/view_xref.tpl | 8 | ||||
| -rw-r--r-- | templates/view_xref_address.tpl | 70 | ||||
| -rw-r--r-- | templates/view_xref_key_seal.tpl | 70 | ||||
| -rw-r--r-- | templates/view_xref_phone.tpl | 58 |
7 files changed, 424 insertions, 5 deletions
diff --git a/templates/edit_xref_address.tpl b/templates/edit_xref_address.tpl new file mode 100644 index 0000000..0d54ba3 --- /dev/null +++ b/templates/edit_xref_address.tpl @@ -0,0 +1,77 @@ +{strip} +<div class="floaticon">{bithelp}</div> +<div class="edit contact_xref"> + <div class="header"> + <h1>{tr}Edit{/tr} {$xrefInfo.template_title|escape}: {$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="Address Details"} + {legend legend="Contents"} + <div class="row"> + {formlabel label="House Name/Number" for="xkey_ext"} + {forminput} + <input type="text" name="xkey_ext" id="xkey_ext" value="{$xrefInfo.xkey_ext|escape}" /> + {formhelp note="House name and/or number when used with postcode, or free format full address."} + {/forminput} + </div> + + <div class="row"> + {formlabel label="Postcode" for="xkey"} + {forminput} + <input type="text" name="xkey" id="xkey" value="{$xrefInfo.xkey|escape}" /> <input type="submit" name="fPostcode" value="{tr}Postcode Lookup{/tr}" /> + {formhelp note="Postcode for address."} + {/forminput} + </div> + + {formlabel label="`$xrefInfo.template_title` 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}{$xrefInfo.data}{/textarea} + {/legend} + {/jstab} + + {jstab title="Time period"} + {legend legend="Start and Stop Dates"} + <div class="row"> + <input type="hidden" name="startDateInput" value="1" /> + 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} + <span dir="ltr">{html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false} {$siteTimeZone}</span> + {formhelp note="This address becomes valid on this date."} + {/forminput} + </div> + + <div class="row"> + <input type="hidden" name="endDateInput" value="1" /> + 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} + <span dir="ltr">{html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false} {$siteTimeZone}</span> + {formhelp note="This address finishes on this date."} + {/forminput} + </div> + {/legend} + {/jstab} + + <div class="row submit"> + <input type="submit" name="fCancel" value="{tr}Cancel{/tr}" /> + <input type="submit" name="fSaveXref" value="{tr}Save{/tr}" /> + </div> + {/jstabs} + {/form} + </div><!-- end .body --> +</div><!-- end .article --> +{/strip} diff --git a/templates/edit_xref_key_seal.tpl b/templates/edit_xref_key_seal.tpl new file mode 100644 index 0000000..4d5b5af --- /dev/null +++ b/templates/edit_xref_key_seal.tpl @@ -0,0 +1,77 @@ +{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="row"> + {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> + + <div class="row"> + {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> + + {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}{$xrefInfo.data}{/textarea} + {/legend} + {/jstab} + + {jstab title="Time period"} + {legend legend="Start and Stop Dates"} + <div class="row"> + <input type="hidden" name="startDateInput" value="1" /> + 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} + <span dir="ltr">{html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false} {$siteTimeZone}</span> + {formhelp note="This key seal record becomes valid on this date."} + {/forminput} + </div> + + <div class="row"> + <input type="hidden" name="endDateInput" value="1" /> + 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} + <span dir="ltr">{html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false} {$siteTimeZone}</span> + {formhelp note="This key seal record finishes on this date."} + {/forminput} + </div> + {/legend} + {/jstab} + + <div class="row submit"> + <input type="submit" name="fCancel" value="{tr}Cancel{/tr}" /> + <input type="submit" name="fSaveXref" value="{tr}Save{/tr}" /> + </div> + {/jstabs} + {/form} + </div><!-- end .body --> +</div><!-- end .article --> +{/strip} diff --git a/templates/edit_xref_phone.tpl b/templates/edit_xref_phone.tpl new file mode 100644 index 0000000..4e41ae1 --- /dev/null +++ b/templates/edit_xref_phone.tpl @@ -0,0 +1,69 @@ +{strip} +<div class="floaticon">{bithelp}</div> +<div class="edit contact_xref"> + <div class="header"> + <h1>{tr}Edit {/tr}{$xrefInfo.template_title|escape} {tr}Number{/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="Reference Details"} + {legend legend="Contents"} + <div class="row"> + {formlabel label="`$xrefInfo.template_title` Number" for="xkey"} + {forminput} + <input type="text" name="xkey" id="xkey" value="{$xrefInfo.xkey|escape}" /> + {formhelp note="ID Key use to access data in other systems identified by the xref type."} + {/forminput} + </div> + + {formlabel label="`$xrefInfo.template_title` Number 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}{$xrefInfo.data}{/textarea} + {/legend} + {/jstab} + + {jstab title="Time period"} + {legend legend="Start and Stop Dates"} + <div class="row"> + <input type="hidden" name="startDateInput" value="1" /> + 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} + <span dir="ltr">{html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false} {$siteTimeZone}</span> + {formhelp note="This xref record becomes valid on this date."} + {/forminput} + </div> + + <div class="row"> + <input type="hidden" name="endDateInput" value="1" /> + 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} + <span dir="ltr">{html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false} {$siteTimeZone}</span> + {formhelp note="This xref record finishes on this date."} + {/forminput} + </div> + {/legend} + {/jstab} + + <div class="row submit"> + <input type="submit" name="fCancel" value="{tr}Cancel{/tr}" /> + <input type="submit" name="fSaveXref" value="{tr}Save{/tr}" /> + </div> + {/jstabs} + {/form} + </div><!-- end .body --> +</div><!-- end .article --> +{/strip} diff --git a/templates/view_xref.tpl b/templates/view_xref.tpl index 26e3cb8..46585f8 100644 --- a/templates/view_xref.tpl +++ b/templates/view_xref.tpl @@ -58,8 +58,7 @@ {if $xrefInfo.ignore_start_date eq "y"} No start date set {else} - {html_select_date prefix="start_" time=$xrefInfo.start_date start_year="-5" end_year="+10"} {tr}at{/tr} - <span dir="ltr">{html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false} {$siteTimeZone}</span> + {$xrefInfo.start_date|bit_long_datetime} {/if} {formhelp note="This xref record becomes valid on this date."} {/forminput} @@ -71,10 +70,9 @@ {if $xrefInfo.ignore_end_date eq "y"} No end date set {else} - {html_select_date prefix="end_" time=$xrefInfo.end_date start_year="-5" end_year="+10"} {tr}at{/tr} - <span dir="ltr">{html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false} {$siteTimeZone}</span> - {formhelp note="This xref record finishes on this date."} + {$xrefInfo.end_date|bit_long_datetime} {/if} + {formhelp note="This xref record finishes on this date."} {/forminput} </div> {/legend} diff --git a/templates/view_xref_address.tpl b/templates/view_xref_address.tpl new file mode 100644 index 0000000..83d68ea --- /dev/null +++ b/templates/view_xref_address.tpl @@ -0,0 +1,70 @@ +{strip} +<div class="edit contact_xref"> + <div class="header"> + <h1>{$xrefInfo.template_title|escape}: {$xref_title|escape} for {$title|escape}</h1> + </div> + + <div class="body"> + {legend legend="Contents"} + <div class="row"> + {formlabel label="House Name/Number" for="xkey_ext"} + {forminput} + {if $xrefInfo.xkey_ext } + {$xrefInfo.xkey_ext|escape} + {else} + Not yet set + {/if} + {formhelp note="House name and/or number when used with postcode, or free format full address."} + {/forminput} + </div> + + <div class="row"> + {formlabel label="Postcode" for="xkey"} + {forminput} + {if $xrefInfo.xkey } + {$xrefInfo.xkey|escape} + {else} + Not yet set + {/if} + {formhelp note="Postcode for address."} + {/forminput} + </div> + + <div class="row"> + {formlabel label="`$xrefInfo.template_title` Notes" for="data"} + {forminput} + {$xrefInfo.data|escape} + {formhelp note="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."} + {/forminput} + </div> + {/legend} + + {legend legend="Start and Stop Dates"} + <div class="row"> + {formlabel label="Start Date" for=""} + {forminput} + {if $xrefInfo.ignore_start_date eq "y"} + No start date set + {else} + {$xrefInfo.start_date|bit_long_datetime} + {/if} + {formhelp note="This address record becomes valid on this date."} + {/forminput} + </div> + + <div class="row"> + {formlabel label="End Date" for=""} + {forminput} + {if $xrefInfo.ignore_end_date eq "y"} + No end date set + {else} + {$xrefInfo.end_date|bit_long_datetime} + {/if} + {formhelp note="This address record finishes on this date."} + {/forminput} + </div> + {/legend} + <a class="item" href="{$smarty.const.CONTACT_PKG_URL}index.php?content_id={$xrefInfo.content_id}">{tr}Return{/tr}</a> + </div><!-- end .body --> +</div><!-- end .article --> +{/strip} diff --git a/templates/view_xref_key_seal.tpl b/templates/view_xref_key_seal.tpl new file mode 100644 index 0000000..b78c83c --- /dev/null +++ b/templates/view_xref_key_seal.tpl @@ -0,0 +1,70 @@ +{strip} +<div class="edit contact_xref"> + <div class="header"> + <h1>{$xrefInfo.template_title|escape}: {$xref_title|escape} for {$title|escape}</h1> + </div> + + <div class="body"> + {legend legend="Contents"} + <div class="row"> + {formlabel label="`$xrefInfo.template_title`" for="xkey"} + {forminput} + {if $xrefInfo.xkey } + {$xrefInfo.xkey|escape} + {else} + Not yet set + {/if} + {formhelp note="Key Seal Code from key management system."} + {/forminput} + </div> + + <div class="row"> + {formlabel label="Contract Number" for="xkey_ext"} + {forminput} + {if $xrefInfo.xkey_ext } + {$xrefInfo.xkey_ext|escape} + {else} + Not yet set + {/if} + {formhelp note="Contract number."} + {/forminput} + </div> + + <div class="row"> + {formlabel label="`$xrefInfo.template_title` Notes" for="data"} + {forminput} + {$xrefInfo.data|escape} + {formhelp note="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."} + {/forminput} + </div> + {/legend} + + {legend legend="Start and Stop Dates"} + <div class="row"> + {formlabel label="Start Date" for=""} + {forminput} + {if $xrefInfo.ignore_start_date eq "y"} + No start date set + {else} + {$xrefInfo.start_date|bit_long_datetime} + {/if} + {formhelp note="This key seal code becomes valid on this date."} + {/forminput} + </div> + + <div class="row"> + {formlabel label="End Date" for=""} + {forminput} + {if $xrefInfo.ignore_end_date eq "y"} + No end date set + {else} + {$xrefInfo.end_date|bit_long_datetime} + {/if} + {formhelp note="This key seal code finishes on this date."} + {/forminput} + </div> + {/legend} + <a class="item" href="{$smarty.const.CONTACT_PKG_URL}index.php?content_id={$xrefInfo.content_id}">{tr}Return{/tr}</a> + </div><!-- end .body --> +</div><!-- end .article --> +{/strip} diff --git a/templates/view_xref_phone.tpl b/templates/view_xref_phone.tpl new file mode 100644 index 0000000..ae562c1 --- /dev/null +++ b/templates/view_xref_phone.tpl @@ -0,0 +1,58 @@ +{strip} +<div class="edit contact_xref"> + <div class="header"> + <h1>{$xrefInfo.template_title|escape} {tr}Number{/tr}: {$xref_title|escape} for {$title|escape}</h1> + </div> + + <div class="body"> + {legend legend="Contents"} + <div class="row"> + {formlabel label="`$xrefInfo.template_title` Number" for="xkey"} + {forminput} + {if $xrefInfo.xkey } + {$xrefInfo.xkey|escape} + {else} + Not yet set + {/if} + {formhelp note="ID Key use to access data in other systems identified by the xref type."} + {/forminput} + </div> + + <div class="row"> + {formlabel label="`$xrefInfo.template_title` Number Notes" for="data"} + {forminput} + {$xrefInfo.data|escape} + {formhelp note="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."} + {/forminput} + </div> + {/legend} + + {legend legend="Start and Stop Dates"} + <div class="row"> + {formlabel label="Start Date" for=""} + {forminput} + {if $xrefInfo.ignore_start_date eq "y"} + No start date set + {else} + {$xrefInfo.start_date|bit_long_datetime} + {/if} + {formhelp note="This `$xrefInfo.template_title` number becomes valid on this date."} + {/forminput} + </div> + + <div class="row"> + {formlabel label="End Date" for=""} + {forminput} + {if $xrefInfo.ignore_end_date eq "y"} + No end date set + {else} + {$xrefInfo.end_date|bit_long_datetime} + {/if} + {formhelp note="This `$xrefInfo.template_title` number finishes on this date."} + {/forminput} + </div> + {/legend} + <a class="item" href="{$smarty.const.CONTACT_PKG_URL}index.php?content_id={$xrefInfo.content_id}">{tr}Return{/tr}</a> + </div><!-- end .body --> +</div><!-- end .article --> +{/strip} |
