Fix a bug where the cached data structure was not deleted.
Add template variables for showing the uploaded photos. Add tests for the template variables. Add a form field to delete the photo with all data.
This commit is contained in:
parent
e5cdfdfae8
commit
c8da6cfe26
4 changed files with 158 additions and 2 deletions
|
|
@ -38,6 +38,7 @@ our $HELP = {
|
|||
{ name => 'imgAltForm', },
|
||||
{ name => 'imgTitleForm', },
|
||||
{ name => 'imgUrlForm', },
|
||||
{ name => 'imgDeleteForm', },
|
||||
],
|
||||
},
|
||||
],
|
||||
|
|
@ -79,6 +80,16 @@ our $HELP = {
|
|||
},
|
||||
],
|
||||
},
|
||||
{ name => 'photo_loop',
|
||||
'variables' => [
|
||||
{ name => 'imageUrl', },
|
||||
{ name => 'imageCaption', },
|
||||
{ name => 'imageByline', },
|
||||
{ name => 'imageAlt', },
|
||||
{ name => 'imageTitle', },
|
||||
{ name => 'imageLink', },
|
||||
],
|
||||
},
|
||||
],
|
||||
related => []
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue