added some tmpl_vars to thingy's search template

This commit is contained in:
Yung Han Khoe 2009-04-11 19:04:22 +00:00
parent 9e417edaf0
commit dc0f5a9fea
3 changed files with 33 additions and 0 deletions

View file

@ -3260,10 +3260,16 @@ sequenceNumber');
$templateVars{canEditThingData} = 1;
$templateVars{searchResult_delete_icon} = $session->icon->delete('func=deleteThingDataConfirm;thingId='
.$thingId.';thingDataId='.$thingDataId,$self->get("url"),$i18n->get('delete thing data warning'));
$templateVars{searchResult_delete_url} = $session->url->append($url,
'func=deleteThingDataConfirm;thingId='.$thingId.';thingDataId='.$thingDataId);
$templateVars{searchResult_edit_icon} = $session->icon->edit('func=editThingData;thingId='
.$thingId.';thingDataId='.$thingDataId,$self->get("url"));
$templateVars{searchResult_edit_url} = $session->url->append($url,
'func=editThingData;thingId='.$thingId.';thingDataId='.$thingDataId);
$templateVars{searchResult_copy_icon} = $session->icon->copy('func=copyThingData;thingId='
.$thingId.';thingDataId='.$thingDataId,$self->get("url"));
$templateVars{searchResult_copy_url} = $session->url->append($url,
'func=copyThingData;thingId='.$thingId.';thingDataId='.$thingDataId,);
}
push(@searchResult_loop,\%templateVars);
}

View file

@ -221,7 +221,11 @@ our $HELP = {
{ 'name' => 'searchResult_id' },
{ 'name' => 'searchResult_view_url' },
{ 'name' => 'searchResult_edit_icon' },
{ 'name' => 'searchResult_edit_url' },
{ 'name' => 'searchResult_delete_icon' },
{ 'name' => 'searchResult_delete_url' },
{ 'name' => 'searchResult_copy_icon' },
{ 'name' => 'searchResult_copy_url' },
{ 'name' => 'searchResult_field_loop',
'variables' => [
{ 'name' => 'field_id' },

View file

@ -1013,12 +1013,35 @@ search has been done.|,
context => q|Description of a tmpl_var for the template help.|,
},
'searchResult_edit_url' => {
message => q|Url to the edit screen of this search result.|,
lastUpdated => 1104630516,
context => q|Description of a tmpl_var for the template help.|,
},
'searchResult_delete_icon' => {
message => q|Delete icon to delete this search result.|,
lastUpdated => 1104630516,
context => q|Description of a tmpl_var for the template help.|,
},
'searchResult_delete_url' => {
message => q|Url to delete this search result.|,
lastUpdated => 1104630516,
context => q|Description of a tmpl_var for the template help.|,
},
'searchResult_copy_icon' => {
message => q|Copy icon to copy this search result.|,
lastUpdated => 1104630516,
context => q|Description of a tmpl_var for the template help.|,
},
'searchResult_copy_url' => {
message => q|Url to copy this search result.|,
lastUpdated => 1104630516,
},
'searchResult_field_loop' => {
message => q|A loop containing the fields that are to be displayed for this search result.|,
lastUpdated => 1104630516,