File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
openlibrary/templates/covers Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change 1- $def with (action, img_url , source_name)
1+ $def with (action, img_url_cover, img_url_title , source_name)
22
33< form class ="ol-cover-form ol-cover-form--external " method ="post " enctype ="multipart/form-data " action ="$action ">
44 < div class ="label ">
5- < label > $_("Or, use the cover from %s", source_name)</ label >
5+ < label > $_("Or, use a cover from %s", source_name)</ label >
66 </ div >
7- < div class ="input ">
8- < a href ="$img_url " target ="_blank ">
9- < img class ="ol-cover-form--external_image " src ="$img_url " style ="height: 200px " alt ="" />
10- </ a >
11- < button type ="submit " class ="cta-btn cta-btn--vanilla " name ="url " value ="$img_url "> $_("Upload Image")</ button >
7+ < div style ="display: flex; flex-direction: row; ">
8+ < div class ="input ">
9+ < a href ="$img_url_cover " target ="_blank " style ="flex-direction: column; ">
10+ < img class ="ol-cover-form--external_image " src ="$img_url_cover " style ="height: 200px " alt ="" />
11+ </ a >
12+ < button type ="submit " class ="cta-btn cta-btn--vanilla " name ="url " style ="flex-direction: column; " value ="$img_url_cover "> $_("Upload Image")</ button >
13+ </ div >
14+ < div class ="input ">
15+ $if img_url_title != None:
16+ < a href ="$img_url_title " target ="_blank ">
17+ < img class ="ol-cover-form--external_image " src ="$img_url_title " style ="height: 200px " alt ="" />
18+ </ a >
19+ < button type ="submit " class ="cta-btn cta-btn--vanilla " name ="url " value ="$img_url_title "> $_("Upload Image")</ button >
20+ </ div >
1221 </ div >
1322</ form >
You can’t perform that action at this time.
0 commit comments