From e4c5beec0137771344a68d19811d7461055c38ed Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Thu, 10 Mar 2011 16:39:11 +0000 Subject: Templates for geographic coordinate locations --- templates/edit_xref_locate.tpl | 85 ++++++++++++++++++++++++++++++++++++++++++ templates/view_xref_locate.tpl | 78 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 163 insertions(+) create mode 100644 templates/edit_xref_locate.tpl create mode 100644 templates/view_xref_locate.tpl (limited to 'templates') diff --git a/templates/edit_xref_locate.tpl b/templates/edit_xref_locate.tpl new file mode 100644 index 0000000..aefb5d7 --- /dev/null +++ b/templates/edit_xref_locate.tpl @@ -0,0 +1,85 @@ +{strip} +
{bithelp}
+
+
+

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

+
+ + {formfeedback hash=$feedback} + {formfeedback warning=`$errors.title`} + +
+ {form enctype="multipart/form-data" id="writexref"} + + + + {jstabs} + {jstab title="Location Details"} + {legend legend="Contents"} +
+ {formlabel label="Geographic Location" for="xref"} + {forminput} + {tr}OpenStreetMap Link{/tr} + {formhelp note="Use one of the graphical tools like multimap or google maps to identify actual co-ordinates."} + {/forminput} +
+ +
+ {formlabel label="Easting/Longitude" for="xkey"} + {forminput} + + {formhelp note="Longitude for the location."} + {/forminput} +
+ +
+ {formlabel label="Northing/Latitude" for="xkey_ext"} + {forminput} + + {formhelp note="Latitude for the location."} + {/forminput} +
+ + {formlabel label="Location Directions" for="data"} + {capture assign=textarea_help} + {tr}Directions to assist finding the actual location where site is not accessable via the postcode.{/tr} + {/capture} + {textarea rows=5 noformat=1}{$xrefInfo.data}{/textarea} + {/legend} + {/jstab} + + {jstab title="Time period"} + {legend legend="Start and Stop Dates"} +
+ +  Ignore Date + {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 address becomes valid on this date."} + {/forminput} +
+ +
+ +  Ignore Date + {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 address finishes on this date."} + {/forminput} +
+ {/legend} + {/jstab} + +
+   + +
+ {/jstabs} + {/form} +
+
+{/strip} diff --git a/templates/view_xref_locate.tpl b/templates/view_xref_locate.tpl new file mode 100644 index 0000000..d96b4e3 --- /dev/null +++ b/templates/view_xref_locate.tpl @@ -0,0 +1,78 @@ +{strip} +
+
+

{tr}Location{/tr}: {$xref_title|escape} for {$title|escape}

+
+ +
+ {legend legend="Contents"} +
+ {formlabel label="Geographic Location" for="xref"} + {forminput} + {tr}OpenStreetMap Link{/tr} + {formhelp note="Use one of the graphical tools like multimap or google maps to identify actual co-ordinates."} + {/forminput} +
+ +
+ {formlabel label="Easting" for="xkey"} + {forminput} + {if $xrefInfo.xkey } + {$xrefInfo.xkey|escape} + {else} + Not yet set + {/if} + {formhelp note="Easting for location (x_coord - longitude)."} + {/forminput} +
+ +
+ {formlabel label="Northing" for="xkey_ext"} + {forminput} + {if $xrefInfo.xkey_ext } + {$xrefInfo.xkey_ext|escape} + {else} + Not yet set + {/if} + {formhelp note="Northing for location (y_coord - latitude)."} + {/forminput} +
+ +
+ {formlabel label="Location Directions" for="data"} + {forminput} + {$xrefInfo.data|escape} + {formhelp note="Directions to assist finding the actual location where site is not accessable via the postcode."} + {/forminput} +
+ {/legend} + + {legend legend="Start and Stop Dates"} +
+ {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} +
+ +
+ {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} +
+ {/legend} + {tr}Return{/tr} +
+
+{/strip} -- cgit v1.3