From 02ae040e029923d2283fcbb34c10ecc65e98bc4a Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Mon, 18 Oct 2010 13:24:54 +0100 Subject: Major overhaul of contact. Main problem was moving from the older bw formats of working up to the latest standards. Using gContent and pageInfo hashes directly in templates. Other rebuilds have gone on. This is still work in progress and a full user manual will be added. --- templates/add_xref.tpl | 93 +++++++++++++++++++++++++++++++++++++++ templates/admin_contact.tpl | 3 +- templates/comments.tpl | 29 ++++++++++++ templates/comments_edit.tpl | 11 +++++ templates/comments_post_inc.tpl | 87 ++++++++++++++++++++++++++++++++++++ templates/contact_action_bar.tpl | 6 +-- templates/contact_date_bar.tpl | 9 ++-- templates/contact_display.tpl | 16 +++---- templates/contact_header.tpl | 16 ++++--- templates/display_address.tpl | 40 ++++++++--------- templates/display_contact.tpl | 34 +++++++++----- templates/display_type_header.tpl | 9 ++++ templates/edit.tpl | 53 ++++++++++------------ templates/edit_contact.tpl | 30 +++++++------ templates/edit_type_header.tpl | 10 +++++ templates/edit_xref.tpl | 85 +++++++++++++++++++++++++++++++++++ templates/edit_xref_type.tpl | 60 +++++++++++++++++++++++++ templates/list.tpl | 52 +++++++++++++--------- templates/list_appoint.tpl | 48 -------------------- templates/list_contact_type.tpl | 28 ++++++++++++ templates/list_ticket.tpl | 16 +++---- templates/list_xref.tpl | 34 +++++++------- templates/list_xref_generic.tpl | 73 ++++++++++++++++++++++++++++++ templates/menu_contact_admin.tpl | 2 + templates/page_display.tpl | 16 +++---- templates/show_contact.tpl | 18 +++++++- templates/view_xref.tpl | 83 ++++++++++++++++++++++++++++++++++ 27 files changed, 759 insertions(+), 202 deletions(-) create mode 100644 templates/add_xref.tpl create mode 100644 templates/comments.tpl create mode 100644 templates/comments_edit.tpl create mode 100644 templates/comments_post_inc.tpl create mode 100644 templates/display_type_header.tpl create mode 100644 templates/edit_type_header.tpl create mode 100644 templates/edit_xref.tpl create mode 100644 templates/edit_xref_type.tpl delete mode 100644 templates/list_appoint.tpl create mode 100644 templates/list_contact_type.tpl create mode 100644 templates/list_xref_generic.tpl create mode 100644 templates/view_xref.tpl (limited to 'templates') diff --git a/templates/add_xref.tpl b/templates/add_xref.tpl new file mode 100644 index 0000000..4aabc53 --- /dev/null +++ b/templates/add_xref.tpl @@ -0,0 +1,93 @@ +{strip} +
{bithelp}
+
+
+

{tr}Add Contact Xref{/tr}: {$title|escape}

+
+ + {formfeedback hash=$feedback} + {formfeedback warning=`$errors.title`} + +
+ {form enctype="multipart/form-data" id="writexref"} + + + + {jstabs} + {jstab title="Reference Details"} + {legend legend="XRef Contents"} +
+ {formlabel label="Cross Reference Type" for="source"} + {forminput} + {html_options name="$xrefInfo.xref_type_list[$xrefInfo.source]" options=$xrefInfo.xref_type_list selected=`$xrefInfo.source`} + {formhelp note="Type of cross link reference to add."} + {/forminput} +
+ +
+ {formlabel label="Cross Reference Link" for="xref"} + {forminput} + + {formhelp note="Link to other contact/content entries."} + {/forminput} +
+ +
+ {formlabel label="Reference Key" for="xkey"} + {forminput} + + {formhelp note="ID Key use to access data in other systems identified by the xref type."} + {/forminput} +
+ +
+ {formlabel label="Reference Text" for="xkey_ext"} + {forminput} + + {formhelp note="Variable text element such as url or email address."} + {/forminput} +
+ + {formlabel label="Reference 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"} +
+ + + {formlabel label="Start Date" for=""} + {forminput} + {html_select_date prefix="start_" time=$xrefInfo.start_date start_year="-5" end_year="+10"} {tr}at{/tr}  + {html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false} {$siteTimeZone} + {formhelp note="This xref record becomes valid on this date."} + {/forminput} +
+ +
+ + + {formlabel label="End Date" for=""} + {forminput} + {html_select_date prefix="end_" time=$xrefInfo.end_date start_year="-5" end_year="+10"} {tr}at{/tr}  + {html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false} {$siteTimeZone} + {formhelp note="This xref record finishes on this date."} + {/forminput} +
+ {/legend} + {/jstab} + +
+   + +
+ {/jstabs} + {/form} +
+
+{/strip} diff --git a/templates/admin_contact.tpl b/templates/admin_contact.tpl index 11f98b6..1babbec 100644 --- a/templates/admin_contact.tpl +++ b/templates/admin_contact.tpl @@ -16,5 +16,4 @@ {/form} - -{/strip} +{/strip} \ No newline at end of file diff --git a/templates/comments.tpl b/templates/comments.tpl new file mode 100644 index 0000000..1e2fdef --- /dev/null +++ b/templates/comments.tpl @@ -0,0 +1,29 @@ +{if $gBitUser->hasPermission( 'p_liberty_post_comments' ) || $gBitUser->hasPermission( 'p_liberty_read_comments' ) } + {strip} +
+
+

{tr}Notes{/tr}

+
+ +
+ {include file="bitpackage:liberty/comments_display_option_bar.tpl"} + + {if $gBitUser->hasPermission( 'p_liberty_post_comments' )} +
+ {form enctype="multipart/form-data" action="`$comments_return_url`#editcomments" id="editcomment-form"} + + {/form} +
+ {/if} + +
+ {foreach name=comments_loop key=key item=item from=$comments} + {displaycomment comment="$item"} + {/foreach} + + + {libertypagination ihash=$commentsPgnHash} +
+
+ {/strip} +{/if} diff --git a/templates/comments_edit.tpl b/templates/comments_edit.tpl new file mode 100644 index 0000000..a6dc14f --- /dev/null +++ b/templates/comments_edit.tpl @@ -0,0 +1,11 @@ +{if $gBitUser->hasPermission( 'p_liberty_post_comments' ) } + {strip} +
+
+
+ {include file="bitpackage:contact/comments_post_inc.tpl" post_title="Post Note"} +
+
+
+ {/strip} +{/if} diff --git a/templates/comments_post_inc.tpl b/templates/comments_post_inc.tpl new file mode 100644 index 0000000..69de357 --- /dev/null +++ b/templates/comments_post_inc.tpl @@ -0,0 +1,87 @@ +{if !$hide || $post_comment_request || $smarty.request.post_comment_preview} + + + {if $post_comment_preview && !$preview_override} +

{tr}{$post_title} Preview{/tr}

+
+ {include file='bitpackage:liberty/display_comment.tpl' comment=$postComment} +
+ {/if} + + {form enctype="multipart/form-data" action="`$comments_return_url`#editcomments" id="editcomment-form"} + {formfeedback hash=$formfeedback} + + + {if $post_comment_request || $smarty.request.post_comment_preview || $comments_ajax} + {legend legend=$post_title} + + + + + {* This is a little extra value for the funky case when bw learns browser has js at the same time a preview is asked for + This will keep comment in non-js mode until previewing is done. Things get messy without this *} + {if !$gBitThemes->isJavascriptEnabled() || $no_js_preview == "y"} + + {/if} + +
+ {formlabel label="Title" for="comments-title"} + {forminput} + + {formhelp note=""} + {/forminput} +
+ + {if !$gBitUser->isRegistered()} +
+ {formlabel label="Login" for="login-email"} + {forminput} +
+ +
{tr}Username or Email{/tr}
+
+
+ +
{tr}Password{/tr}
+
+
{tr}If you are already registered with {$gBitSystem->mConfig.site_title|default:"this site"} please enter your login details above.{/tr}
+ {/forminput} +
+ + {captcha variant="row" id="post-captcha" style="display:none"} +
+ {forminput} + {tr}Anonymous Post{/tr} + {formhelp note=""} + {/forminput} +
+ {/if} + + {textarea id="commentpost" name="comment_data" rows=$gBitSystem->getConfig('comments_default_post_lines', 6)}{$postComment.data}{/textarea} + + {* @TODO perm check more accurately should be on root content object *} + {if $gBitSystem->isFeatureActive( 'comments_allow_attachments' ) && $gBitUser->hasPermission('p_liberty_attach_attachments') } + {* @TODO make edit_storage_list.tpl work with comments attachments - it is nested in edit_storage.tpl - for now bypass it, remove mime code when edit_storage.tpl can be used directly*} + {* include file="bitpackage:liberty/edit_storage.tpl" *} + {if $gLibertySystem->isPluginActive( $smarty.const.LIBERTY_DEFAULT_MIME_HANDLER )} + {foreach from=$gLibertySystem->getAllMimeTemplates('upload') item=tpl} + {include file=$tpl} + {/foreach} + {/if} + {/if} + +
+   +   + +
+ {/legend} + {/if} + {/form} +{/if} diff --git a/templates/contact_action_bar.tpl b/templates/contact_action_bar.tpl index d5554a2..2e7a75d 100644 --- a/templates/contact_action_bar.tpl +++ b/templates/contact_action_bar.tpl @@ -1,7 +1,7 @@ -{if $gBitSystem->isFeatureActive('feature_sample_comments')} +{if $gBitSystem->isFeatureActive('contact_comments')} {*end .floaticon *}
- {tr}Created by{/tr} {displayname user=$contactInfo.creator_user user_id=$contactInfo.user_id real_name=$contactInfo.creator_real_name}, {tr}Last modification by{/tr} {displayname user=$contactInfo.modifier_user user_id=$contactInfo.modifier_user_id real_name=$contactInfo.modifier_real_name} on {$contactInfo.last_modified|bit_long_datetime} + {tr}Created by{/tr} {displayname user=$pageInfo.creator_user user_id=$pageInfo.user_id real_name=$pageInfo.creator_real_name}, {tr}Last modification by{/tr} {displayname user=$pageInfo.modifier_user user_id=$pageInfo.modifier_user_id real_name=$pageInfo.modifier_real_name} on {$pageInfo.last_modified|bit_long_datetime}
diff --git a/templates/contact_display.tpl b/templates/contact_display.tpl index 8fe5ab3..d1b612f 100644 --- a/templates/contact_display.tpl +++ b/templates/contact_display.tpl @@ -1,17 +1,17 @@
{include file="bitpackage:liberty/storage_thumbs.tpl"} - Title: {$contactInfo.prefix}
- Forename: {$contactInfo.forename}
- Surname: {$contactInfo.surname}
- Suffix: {$contactInfo.suffix}
+ Title: {$pageInfo.prefix}
+ Forename: {$pageInfo.forename}
+ Surname: {$pageInfo.surname}
+ Suffix: {$pageInfo.suffix}

- Organisation: {$contactInfo.organisation}
+ Organisation: {$pageInfo.organisation}

- NI Number:{$contactInfo.nino} Date of Birth:{$contactInfo.dob} Date of eighteenth:{$contactInfo.eighteenth} Date of Death:{$contactInfo.dod}
+ NI Number:{$pageInfo.nino} Date of Birth:{$pageInfo.dob} Date of eighteenth:{$pageInfo.eighteenth} Date of Death:{$pageInfo.dod}

- Note: {$contactInfo.note}
+ Note: {$pageInfo.note}
Memo:
- {$contactInfo.data}
+ {$pageInfo.data}
diff --git a/templates/contact_header.tpl b/templates/contact_header.tpl index 2b35e6e..adbe577 100644 --- a/templates/contact_header.tpl +++ b/templates/contact_header.tpl @@ -5,14 +5,16 @@ {* end category *} {/if} -

{$contactInfo.content_id} -  - {if isset($contactInfo.organisation) && ($contactInfo.organisation <> '') } - {$contactInfo.organisation} +

{$pageInfo.content_id} -  + {if isset($pageInfo.organisation) && ($pageInfo.organisation <> '') } + {$pageInfo.organisation} + {elseif isset($pageInfo.surname) && ($pageInfo.surname <> '') } + {$pageInfo.prefix}  + {$pageInfo.forename}  + {$pageInfo.surname} {else} - {$contactInfo.prefix}  - {$contactInfo.forename}  - {$contactInfo.surname} + {$pageInfo.title} {/if}

-
{$contactInfo.description}
+
{$pageInfo.description}
{* end .header *} diff --git a/templates/display_address.tpl b/templates/display_address.tpl index d6a1d58..a2a7620 100644 --- a/templates/display_address.tpl +++ b/templates/display_address.tpl @@ -1,32 +1,32 @@
- {formlabel label="Address" for="lpi"} + {formlabel label="$header" for="lpi"} {forminput} - {if isset($contactInfo.sao) && ($contactInfo.sao <> '') } - {$contactInfo.sao}, {/if} - {if isset($contactInfo.pao) && ($contactInfo.pao <> '') } - {$contactInfo.pao},
{/if} - {if isset($contactInfo.number) && ($contactInfo.number <> '') } - {$contactInfo.number},
{/if} - {if isset($contactInfo.street) && ($contactInfo.street <> '') } - {$contactInfo.street},
{/if} - {if isset($contactInfo.locality) && ($contactInfo.locality <> '') } - {$contactInfo.locality}, {/if} - {if isset($contactInfo.town) && ($contactInfo.town <> '') } - {$contactInfo.town}, {/if} - {if isset($contactInfo.county) && ($contactInfo.county <> '') } - {$contactInfo.county}, {/if} - {$contactInfo.postcode}   + {if isset($pageInfo.sao) && ($pageInfo.sao <> '') } + {$pageInfo.sao}, {/if} + {if isset($pageInfo.pao) && ($pageInfo.pao <> '') } + {$pageInfo.pao},
{/if} + {if isset($pageInfo.number) && ($pageInfo.number <> '') } + {$pageInfo.number},
{/if} + {if isset($pageInfo.street) && ($pageInfo.street <> '') } + {$pageInfo.street},
{/if} + {if isset($pageInfo.locality) && ($pageInfo.locality <> '') } + {$pageInfo.locality}, {/if} + {if isset($pageInfo.town) && ($pageInfo.town <> '') } + {$pageInfo.town}, {/if} + {if isset($pageInfo.county) && ($pageInfo.county <> '') } + {$pageInfo.county}, {/if} + {$pageInfo.postcode}   {/forminput}
- {if isset($contactInfo.x_coordinate) && ($contactInfo.x_coordinate <> '') } + {if isset($pageInfo.x_coordinate) && ($pageInfo.x_coordinate <> '') }
{formlabel label="Visual Centre Coordinates" for="street_start_x"} {forminput} - Easting: {$contactInfo.x_coordinate|escape} Northing: {$contactInfo.y_coordinate|escape} -  < + Easting: {$pageInfo.x_coordinate|escape} Northing: {$pageInfo.y_coordinate|escape} +  < Multimap >
- {$contactInfo.rpa|escape} + {$pageInfo.rpa|escape} {/forminput}
{/if} diff --git a/templates/display_contact.tpl b/templates/display_contact.tpl index b58327b..bd4f850 100644 --- a/templates/display_contact.tpl +++ b/templates/display_contact.tpl @@ -1,43 +1,53 @@
- {if isset($contactInfo.usn) && ($contactInfo.usn <> '') } + {include file="bitpackage:contact/display_type_header.tpl"} + + {if isset($pageInfo.usn) && ($pageInfo.usn <> '') }
{formlabel label="USN" for="usn"} {forminput} - {$contactInfo.usn|escape} + {$pageInfo.usn|escape} {/forminput}
{/if} - {if isset($contactInfo.organisation) && ($contactInfo.organisation <> '') } + {if isset($pageInfo.organisation) && ($pageInfo.organisation <> '') }
{formlabel label="Organisation" for="organisation"} {forminput} - {$contactInfo.organisation|escape} + {$pageInfo.organisation|escape} {/forminput}
{/if} - {if isset($contactInfo.dob) && ($contactInfo.dob <> '') } + {if isset($pageInfo.dob) && ($pageInfo.dob <> '') }
{formlabel label="Date of Birth" for="dob"} {forminput} - {$contactInfo.dob|bit_long_date} + {$pageInfo.dob|bit_long_date} {/forminput}
{/if} - {if isset($contactInfo.nino) && ($contactInfo.nino <> '') } + {if isset($pageInfo.nino) && ($pageInfo.nino <> '') }
{formlabel label="National Insurance Number" for="nino"} {forminput} - {$contactInfo.nino|escape} + {$pageInfo.nino|escape} {/forminput}
{/if} - {include file="bitpackage:contact/display_address.tpl"} + {include file="bitpackage:contact/display_address.tpl" header="Contact Address"} + +
+ {formlabel label="General Notes" for="data"} + {forminput} + {$pageInfo.data} + {/forminput} +
+ {jstabs} - {include file="bitpackage:contact/list_xref.tpl"} - {include file="bitpackage:contact/list_ticket.tpl"} - {include file="bitpackage:contact/list_appoint.tpl"} + {section name=type loop=$pageInfo.type} + {include file="bitpackage:contact/list_xref_generic.tpl" source=$pageInfo.type[type].source source_title=$pageInfo.type[type].title} + {/section} {/jstabs}
diff --git a/templates/display_type_header.tpl b/templates/display_type_header.tpl new file mode 100644 index 0000000..0fd6285 --- /dev/null +++ b/templates/display_type_header.tpl @@ -0,0 +1,9 @@ +
+ {formlabel label="Content Types" for=content_types} + {forminput} + {foreach from=$pageInfo.contact_types key=type_id item=type} + {if isset($type.content_id) }{$type.cross_ref_title}
{/if} + {/foreach} + {/forminput} +
+ diff --git a/templates/edit.tpl b/templates/edit.tpl index 43e95dd..c0fb5e7 100644 --- a/templates/edit.tpl +++ b/templates/edit.tpl @@ -7,9 +7,9 @@

{* this weird dual assign thing is cause smarty wont interpret backticks to object in assign tag - spiderr *} - {if $contactInfo.content_id} + {if $pageInfo.content_id} {assign var=editLabel value="{tr}Edit{/tr} $conDescr"} - {tr}{tr}Edit{/tr} {$contactInfo.title}{/tr} + {tr}{tr}Edit{/tr} {$pageInfo.title}{/tr} {else} {assign var=editLabel value="{tr}Create{/tr} $conDescr"} {tr}{$editLabel}{/tr} @@ -33,88 +33,85 @@ {jstabs} {jstab title="$editLabel Body"} {legend legend="`$editLabel` Details"} - +
{formfeedback warning=`$errors.names`} {formfeedback warning=`$errors.store`} {formlabel label="$conDescr Contact" for="contentno"} - {if !$contactInfo.contact_id} + {if !$pageInfo.contact_id} {forminput} New Contact Entry {/forminput} {else} {forminput} - Edit Contact Entry No : {$contactInfo.contact_id} + Edit Contact Entry No : {$pageInfo.contact_id} {/forminput} {/if} +
- {formlabel label="Contact Type" for="contact_type"} - {forminput} - {html_options name="$contactInfo.contact_type_list[$contactInfo.contact_type]" options=$contactInfo.contact_type_list selected=`$contactInfo.contact_type`} - {formhelp note="Users of only this group can view the content of this category."} - {/forminput} + {include file="bitpackage:contact/edit_type_header.tpl"} -

-
+{*
{formlabel label="Title" for="prefix"} {forminput} - + {/forminput}
{formlabel label="Forename" for="forename"} {forminput} - + {/forminput}
{formlabel label="Surname" for="surname"} {forminput} - + {/forminput}
{formlabel label="Suffix" for="suffix"} {forminput} - + {/forminput}
{formlabel label="Organisation" for="organisation"} {forminput} - + {/forminput}
{formlabel label="NI Number" for="nino"} {forminput} - + {/forminput}
{formlabel label="Date of Birth" for="dob"} {forminput} - + {/forminput}
{formlabel label="Date of eighteen" for="eighteenth"} {forminput} - + {/forminput}
{formlabel label="Date of Death" for="dod"} {forminput} - + {/forminput}
+*}
{formlabel label="Note" for="description"} {forminput} - + {/forminput}
{/legend} @@ -127,16 +124,14 @@ {jstab title="Contact Notes"} {legend legend="Notes Body"}
- {forminput} - - {/forminput} + {textarea rows=30 noformat=1}{$pageInfo.edit}{/textarea}
{if $page ne 'SandBox'}
{formlabel label="Comment" for="comment"} {forminput} - + {formhelp note="Add a comment to illustrate your most recent changes."} {/forminput}
@@ -151,11 +146,11 @@ {include file=$serviceEditTpls.categorization} {/legend} {/if} + {include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"} + {/jstab} {/jstabs} - {include file="bitpackage:liberty/edit_services_inc.tpl" serviceFile="content_edit_mini_tpl"} -
  @@ -165,4 +160,4 @@
-{/strip} +{/strip} \ No newline at end of file diff --git a/templates/edit_contact.tpl b/templates/edit_contact.tpl index d159c2b..0a83405 100644 --- a/templates/edit_contact.tpl +++ b/templates/edit_contact.tpl @@ -17,14 +17,14 @@ {if $preview}

Preview - {$pageInfo.title}

- {include file="bitpackage:contact/contact_display.tpl" page=`$contactInfo.content_id`} + {include file="bitpackage:contact/contact_display.tpl" page=`$pageInfo.content_id`}
{/if}

- {if $contactInfo.content_id} - {tr}{tr}Edit - {/tr} {$contactInfo.title}{/tr} + {if $pageInfo.content_id} + {tr}{tr}Edit - {/tr} {$pageInfo.title}{/tr} {else} {tr}Create New Record{/tr} {/if} @@ -33,57 +33,59 @@
{form legend="Edit/Create Contact Record" enctype="multipart/form-data" id="editpageform"} - + -
+ {include file="bitpackage:contact/edit_type_header.tpl"} + +{*
{formlabel label="Title" for="title"} {forminput} - + {/forminput}
{formlabel label="Forename" for="forename"} {forminput} - + {/forminput}
{formlabel label="Surname" for="surname"} {forminput} - + {/forminput}
{formlabel label="Suffix" for="suffix"} {forminput} - + {/forminput}
{formlabel label="Organisation" for="organisation"} {forminput} - + {/forminput}
{formlabel label="NI Number" for="nino"} {forminput} - + {/forminput}
+*}
{formlabel label="Note" for="description"} {forminput} - + {/forminput}
-
{formlabel label="Memo" for="$textarea_id"} {forminput} - + {/forminput}
diff --git a/templates/edit_type_header.tpl b/templates/edit_type_header.tpl new file mode 100644 index 0000000..dd526b5 --- /dev/null +++ b/templates/edit_type_header.tpl @@ -0,0 +1,10 @@ +
+ {formlabel label="Content Types" for=content_types} + {forminput} + {foreach from=$pageInfo.contact_types key=type_id item=type} + {$type.cross_ref_title}
+ {/foreach} + {/forminput} + {formhelp note=""} +
+ diff --git a/templates/edit_xref.tpl b/templates/edit_xref.tpl new file mode 100644 index 0000000..7a9bd16 --- /dev/null +++ b/templates/edit_xref.tpl @@ -0,0 +1,85 @@ +{strip} +
{bithelp}
+
+
+

{tr}Edit Contact Xref{/tr}: {$title|escape}-{$xref_title|escape}

+
+ + {formfeedback hash=$feedback} + {formfeedback warning=`$errors.title`} + +
+ {form enctype="multipart/form-data" id="writexref"} + + + + {jstabs} + {jstab title="Reference Details"} + {legend legend="XRef Contents"} +
+ {formlabel label="Cross Reference Link" for="xref"} + {forminput} + + {formhelp note="Link to other contact/content entries."} + {/forminput} +
+ +
+ {formlabel label="Reference Key" for="xkey"} + {forminput} + + {formhelp note="ID Key use to access data in other systems identified by the xref type."} + {/forminput} +
+ +
+ {formlabel label="Reference Text" for="xkey_ext"} + {forminput} + + {formhelp note="Variable text element such as url or email address."} + {/forminput} +
+ + {formlabel label="Reference 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"} +
+ + + {formlabel label="Start Date" for=""} + {forminput} + {html_select_date prefix="start_" time=$xrefInfo.start_date start_year="-5" end_year="+10"} {tr}at{/tr}  + {html_select_time prefix="start_" time=$xrefInfo.start_date display_seconds=false} {$siteTimeZone} + {formhelp note="This xref record becomes valid on this date."} + {/forminput} +
+ +
+ + + {formlabel label="End Date" for=""} + {forminput} + {html_select_date prefix="end_" time=$xrefInfo.end_date start_year="-5" end_year="+10"} {tr}at{/tr}  + {html_select_time prefix="end_" time=$xrefInfo.end_date display_seconds=false} {$siteTimeZone} + {formhelp note="This xref record finishes on this date."} + {/forminput} +
+ {/legend} + {/jstab} + +
+   + +
+ {/jstabs} + {/form} +
+
+{/strip} diff --git a/templates/edit_xref_type.tpl b/templates/edit_xref_type.tpl new file mode 100644 index 0000000..4e481ae --- /dev/null +++ b/templates/edit_xref_type.tpl @@ -0,0 +1,60 @@ +{* $Header$ *} + +{strip} +
{bithelp}
+ +
+
+

{tr}Admin Xref Type List{/tr}

+
+ +
+ {form legend="Edit an Xref Type" enctype="multipart/form-data"} + + + {formfeedback success=$gContent->mSuccess error=$gContent->mErrors} + +
+ {formlabel label="Topic Name" for="topic_name"} + {forminput} + + {formhelp note=""} + {/forminput} +
+ +
+ {formlabel label="Topic Enabled" for="topic_enabled"} + {forminput} + mInfo.active_topic == 'y'}checked="checked"{/if} /> + {formhelp note=""} + {/forminput} +
+ +
+ {formlabel label="Upload Image" for="t-image"} + {forminput} + + {formhelp note=""} + {/forminput} +
+ +
+ {formlabel label="Current Image"} + {forminput} + {if $gContent->mInfo.has_topic_image eq 'y'} +
+ Remove Topic Image + {else} + {tr}No Image found{/tr} + {/if} + {formhelp note=""} + {/forminput} +
+ +
+ +
+ {/form} +
+
+{/strip} diff --git a/templates/list.tpl b/templates/list.tpl index 3a0b23e..fc42052 100644 --- a/templates/list.tpl +++ b/templates/list.tpl @@ -29,36 +29,44 @@
  • {$listcontacts[content].content_id} -  - {$listcontacts[content].prefix}  - {$listcontacts[content].forename}  - {$listcontacts[content].surname} + {if isset($listcontacts[content].surname) && ($listcontacts[content].surname <> '') } + {$listcontacts[content].prefix}  + {$listcontacts[content].forename}  + {$listcontacts[content].surname} + {else} + {$listcontacts[content].title} + {/if}     {if isset($listcontacts[content].organisation) && ($listcontacts[content].organisation <> '') }Company: {$listcontacts[content].organisation}  {/if} {if isset($listcontacts[content].dob) && ($listcontacts[content].dob <> '') }DOB: {$listcontacts[content].dob}  {/if} {if isset($listcontacts[content].nino) && ($listcontacts[content].nino <> '') }NI: {$listcontacts[content].nino}  {/if} + {if $gBitSystem->isFeatureActive( 'contact_list_last_modified' ) }Edited: {$listcontacts[content].last_modified|bit_short_date}  {/if} -
  • {sectionelse} diff --git a/templates/list_appoint.tpl b/templates/list_appoint.tpl deleted file mode 100644 index 8f4b3d0..0000000 --- a/templates/list_appoint.tpl +++ /dev/null @@ -1,48 +0,0 @@ - - - {assign var=ticketscnt value=$contactInfo.tickets|@count} - {jstab title="Appointments ($ticketscnt)"} - {legend legend="Appointments"} -
    - {formlabel label="Tickets" for="ticket"} - {forminput} - - - - - - - - - - - {section name=ticket loop=$contactInfo.tickets} - - - - - - {sectionelse} - - - - {/section} - -
    {tr}List of appointments{/tr}
    DataTAGNote
    - {$contactInfo.tickets[ticket].ticket_ref|bit_long_date} - {$contactInfo.tickets[ticket].ticket_no} - - {$contactInfo.tickets[ticket].tags|escape} - - - {smartlink ititle="View" ifile="view_ticket.php" ibiticon="icons/accessories-text-editor" ticket_id=$contactInfo.tickets[ticket].ticket_id} - - -
    - {tr}No records found{/tr} -
    - {/forminput} -
    - {/legend} - {/jstab} diff --git a/templates/list_contact_type.tpl b/templates/list_contact_type.tpl new file mode 100644 index 0000000..94e6b44 --- /dev/null +++ b/templates/list_contact_type.tpl @@ -0,0 +1,28 @@ +{if isset( $pageInfo.xref_type ) } +
    + + + + + + + + + + {section name=xref loop=$pageInfo.xref_type} + + + + + + {/section} + +
    Contact TypeUpdated :
    + {$pageInfo.xref0[xref].source_title|escape} + + {$pageInfo.xref0[xref].last_update_date|bit_short_date} + + {smartlink ititle="Add additional contact types" ifile="add_xref.php" ibiticon="icons/bookmark-new" content_id=$pageInfo.content_id} +
    +
    +{/if} \ No newline at end of file diff --git a/templates/list_ticket.tpl b/templates/list_ticket.tpl index b800875..6cd84df 100644 --- a/templates/list_ticket.tpl +++ b/templates/list_ticket.tpl @@ -1,6 +1,6 @@ - {assign var=ticketscnt value=$contactInfo.tickets|@count} + {assign var=ticketscnt value=$pageInfo.tickets|@count} {jstab title="Ticket History ($ticketscnt)"} {legend legend="Ticket History"}
    @@ -16,20 +16,20 @@ - {section name=ticket loop=$contactInfo.tickets} - + {section name=ticket loop=$pageInfo.tickets} + - {$contactInfo.tickets[ticket].ticket_ref|bit_long_date} - {$contactInfo.tickets[ticket].ticket_no} + {$pageInfo.tickets[ticket].ticket_ref|bit_long_date} - {$pageInfo.tickets[ticket].ticket_no} - {$contactInfo.tickets[ticket].tags|escape} + {$pageInfo.tickets[ticket].tags|escape} - {smartlink ititle="View" ifile="view_ticket.php" ibiticon="icons/accessories-text-editor" ticket_id=$contactInfo.tickets[ticket].ticket_id} + {smartlink ititle="View" ifile="view_ticket.php" ibiticon="icons/accessories-text-editor" ticket_id=$pageInfo.tickets[ticket].ticket_id} -