-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re #76 factorized the view in media/
- Loading branch information
1 parent
b943bb6
commit d51feb0
Showing
7 changed files
with
90 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<% c++ #include "contents/Media.h" %> | ||
<% skin %> | ||
<% view common_media_list_all uses contents::media::ListAll extends master %> | ||
<% template title() %><% gt "All uploaded files" %><% end template %> | ||
|
||
|
||
<% template main_content() %> | ||
<% include begin_module() %> | ||
<h1><% gt "All uploaded files" %></h1> | ||
<% foreach file in files %> | ||
<ul> | ||
<% item %> | ||
<li> | ||
<a href="<%= file.URLname %>"> | ||
<%= file.name %> | ||
</a> | ||
( <%= file.URLname %> ) | ||
</li> | ||
<% end %> | ||
</ul> | ||
<% end foreach %> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% template annexe_content() %> | ||
<% include begin_module() %> | ||
<h2><%gt "Actions" %></h2> | ||
|
||
<ul class="annexeMenu"> | ||
<li> | ||
<a href="upload-image"> | ||
<%gt "Upload a new image" %> | ||
</a> | ||
</li> | ||
</ul> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
|
||
<% end view %> | ||
<% end skin %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<% c++ #include "contents/Media.h" %> | ||
<% skin %> | ||
<% view common_media_upload_image uses contents::media::UploadImage extends master %> | ||
<% template title() %><% gt "Upload an image" %><% end template %> | ||
|
||
<% template main_content() %> | ||
<% include begin_module() %> | ||
<h2><% gt "Upload an image" %></h2> | ||
<form | ||
method="POST" | ||
action="/media/upload-image_treat" | ||
id="upload_image_form" | ||
enctype="multipart/form-data" | ||
> | ||
<table class='input'> | ||
<% include widget_row(uploadImageForm.image) %> | ||
</table> | ||
<div class="submit"> | ||
<% form input uploadImageForm.submit %> | ||
</div> | ||
</form> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% template annexe_content() %> | ||
<% include begin_module() %> | ||
<h2><%gt "Actions" %></h2> | ||
|
||
<ul class="annexeMenu"> | ||
<li> | ||
<a href="list-all"> | ||
<%gt "View all images" %> | ||
</a> | ||
</li> | ||
</ul> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
|
||
|
||
|
||
|
||
<% end view %> | ||
<% end skin %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,6 @@ | ||
<% c++ #include "contents/Media.h" %> | ||
<% skin %> | ||
<% view media_list_all uses contents::media::ListAll extends master %> | ||
<% template title() %><% gt "All uploaded files" %><% end template %> | ||
|
||
|
||
<% template main_content() %> | ||
<% include begin_module() %> | ||
<h1><% gt "All uploaded files" %></h1> | ||
<% foreach file in files %> | ||
<ul> | ||
<% item %> | ||
<li> | ||
<a href="<%= file.URLname %>"> | ||
<%= file.name %> | ||
</a> | ||
( <%= file.URLname %> ) | ||
</li> | ||
<% end %> | ||
</ul> | ||
<% end foreach %> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% template annexe_content() %> | ||
<% include begin_module() %> | ||
<h2><%gt "Actions" %></h2> | ||
|
||
<ul class="annexeMenu"> | ||
<li> | ||
<a href="upload-image"> | ||
<%gt "Upload a new image" %> | ||
</a> | ||
</li> | ||
</ul> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% view media_list_all uses contents::media::ListAll extends common_media_list_all %> | ||
|
||
<% end view %> | ||
<% end skin %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,6 @@ | ||
<% c++ #include "contents/Media.h" %> | ||
<% skin %> | ||
<% view media_upload_image uses contents::media::UploadImage extends master %> | ||
<% template title() %><% gt "Upload an image" %><% end template %> | ||
|
||
<% template main_content() %> | ||
<% include begin_module() %> | ||
<h2><% gt "Upload an image" %></h2> | ||
<form | ||
method="POST" | ||
action="/media/upload-image_treat" | ||
id="upload_image_form" | ||
enctype="multipart/form-data" | ||
> | ||
<table class='input'> | ||
<% include widget_row(uploadImageForm.image) %> | ||
</table> | ||
<div class="submit"> | ||
<% form input uploadImageForm.submit %> | ||
</div> | ||
</form> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% template annexe_content() %> | ||
<% include begin_module() %> | ||
<h2><%gt "Actions" %></h2> | ||
|
||
<ul class="annexeMenu"> | ||
<li> | ||
<a href="list-all"> | ||
<%gt "View all images" %> | ||
</a> | ||
</li> | ||
</ul> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
|
||
|
||
|
||
<% view media_upload_image uses contents::media::UploadImage extends common_media_upload_image %> | ||
|
||
<% end view %> | ||
<% end skin %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,6 @@ | ||
<% c++ #include "contents/Media.h" %> | ||
<% skin %> | ||
<% view media_list_all uses contents::media::ListAll extends master %> | ||
<% template title() %><% gt "All uploaded files" %><% end template %> | ||
|
||
<% template main_content() %> | ||
<% include begin_module() %> | ||
<h1><% gt "All uploaded files" %></h1> | ||
<% foreach file in files %> | ||
<ul> | ||
<% item %> | ||
<li> | ||
<a href="<%= file.URLname %>"> | ||
<%= file.name %> | ||
</a> | ||
( <%= file.URLname %> ) | ||
</li> | ||
<% end %> | ||
</ul> | ||
<% end foreach %> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% template annexe_content() %> | ||
<% include begin_module() %> | ||
<h2><%gt "Actions" %></h2> | ||
|
||
<ul class="annexeMenu"> | ||
<li> | ||
<a href="upload-image"> | ||
<%gt "Upload a new image" %> | ||
</a> | ||
</li> | ||
</ul> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
|
||
<% view media_list_all uses contents::media::ListAll extends common_media_list_all %> | ||
|
||
<% end view %> | ||
<% end skin %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,6 @@ | ||
<% c++ #include "contents/Media.h" %> | ||
<% skin %> | ||
<% view media_upload_image uses contents::media::UploadImage extends master %> | ||
<% template title() %><% gt "Upload an image" %><% end template %> | ||
|
||
<% template main_content() %> | ||
<% include begin_module() %> | ||
<h2><% gt "Upload an image" %></h2> | ||
<form | ||
method="POST" | ||
action="/media/upload-image_treat" | ||
id="upload_image_form" | ||
enctype="multipart/form-data" | ||
> | ||
<table class='input'> | ||
<% include widget_row(uploadImageForm.image) %> | ||
</table> | ||
<div class="submit"> | ||
<% form input uploadImageForm.submit %> | ||
</div> | ||
</form> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
<% template annexe_content() %> | ||
<% include begin_module() %> | ||
<h2><%gt "Actions" %></h2> | ||
|
||
<ul class="annexeMenu"> | ||
<li> | ||
<a href="list-all"> | ||
<%gt "View all images" %> | ||
</a> | ||
</li> | ||
</ul> | ||
<% include end_module() %> | ||
<% end template %> | ||
|
||
|
||
|
||
|
||
<% view media_upload_image uses contents::media::UploadImage extends common_media_upload_image %> | ||
|
||
<% end view %> | ||
<% end skin %> |