X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ex%2Ffancy_example%2Ftemplates%2Fdrinker%2Fview;fp=ex%2Ffancy_example%2Ftemplates%2Fdrinker%2Fview;h=0000000000000000000000000000000000000000;hb=e1ed80e9b0929d184fabfb6d4df9a8db4580eb4e;hp=fd85e885b08ba72482213fbfb5c1996581e64cd3;hpb=833895f46fdd117b0416acff264041af2ce6f46a;p=maypole.git diff --git a/ex/fancy_example/templates/drinker/view b/ex/fancy_example/templates/drinker/view deleted file mode 100644 index fd85e88..0000000 --- a/ex/fancy_example/templates/drinker/view +++ /dev/null @@ -1,54 +0,0 @@ -[%# - -=for doc - -Drinker C template displays drinker and from to drink beer. - -=cut - -#%] -[% PROCESS macros %] -[% INCLUDE header %] -[% view_item(object); %] - -[%# Form to drink a pint. We made sure to only make inputs for pint. could do it - # here like so. - USE this = Class(classmetadata.name); - classmetadata.cgi = this.to_field(pints); - -%] - - -[%# - -=for doc - -The C template also displays a list of other objects related to the first -one via C style relationships; this is done by calling the -C method - see L - to return -a list of has-many accessors. Next it calls each of those accessors, and -displays the results in a table. - -#%] -
Back to listing -[% view_related(object); %] - -[% - button(object, "edit"); - button(object, "delete"); -%] -[% INCLUDE footer %]