improve image manager
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<link href="css/image-manager.css" type="text/css" rel="stylesheet" />
|
||||
|
||||
<h2><TMPL_VAR .loc.title></h2>
|
||||
|
||||
<TMPL_IF .allow.update_studio>
|
||||
<div style="clear:both" class="newstudio">
|
||||
<button onclick="add_studio('<TMPL_VAR name>')"><TMPL_VAR .loc.button_add_studio></button><br/>
|
||||
<div id="edit_new" class="studio editor" style="clear:both;display:none">
|
||||
<div id="edit_new" class="panel" style="clear:both;display:none">
|
||||
<form method="post">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
@@ -30,22 +29,24 @@
|
||||
|
||||
<div style="clear:both" class="flex">
|
||||
<TMPL_LOOP studios>
|
||||
<div class="card studio">
|
||||
<div>
|
||||
<div class="title"><TMPL_VAR name></div>
|
||||
<TMPL_IF .allow.update_studio>
|
||||
<button onclick="edit_studio('<TMPL_VAR id>')"><TMPL_VAR .loc.button_edit></button>
|
||||
</TMPL_IF>
|
||||
<div class="panel studio">
|
||||
<div class="panel-header">
|
||||
<TMPL_VAR name>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
<TMPL_IF .allow.update_studio>
|
||||
<button onclick="edit_studio('<TMPL_VAR id>')"><TMPL_VAR .loc.button_edit></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button target="_blank"
|
||||
onclick="load('event_history.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR id>');"
|
||||
><TMPL_VAR .loc.button_show_changes></button>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- view studio -->
|
||||
<div id="view_<TMPL_VAR id>" class="view">
|
||||
<div id="view_<TMPL_VAR id>" class="panel-body">
|
||||
<table>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_image></td> <td><img src="showImage.cgi?project_id=<TMPL_VAR .project_id>&studioId=<TMPL_VAR .studio_id>&filename=<TMPL_VAR image>&type=thumbs"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_name></td> <td><TMPL_VAR name> </td></tr>
|
||||
@@ -57,7 +58,7 @@
|
||||
|
||||
<TMPL_IF .allow.update_studio>
|
||||
<!-- update studio -->
|
||||
<div id="edit_<TMPL_VAR id>" class="editor" style="display:none">
|
||||
<div id="edit_<TMPL_VAR id>" class="editor" style="display:none">
|
||||
<form method="post" id="studio_<TMPL_VAR id>">
|
||||
<input type="hidden" name="id" value="<TMPL_VAR id>">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
@@ -70,10 +71,11 @@
|
||||
<tr><td class="label">
|
||||
<TMPL_VAR .loc.label_image></td>
|
||||
<td>
|
||||
<button onclick="selectImage('<TMPL_VAR .project_id>','<TMPL_VAR .studio_id>','image_<TMPL_VAR id>','<TMPL_VAR series_name escape=HTML>','<TMPL_VAR image escape=URL>','<TMPL_VAR series_id>');return false;"
|
||||
style="padding:0;float:left"
|
||||
<button
|
||||
class="selectImage"
|
||||
onclick="selectImage('<TMPL_VAR name escape=HTML>', '<TMPL_VAR image ESCAPE=url>', 'studios', '<TMPL_VAR .project_id>','<TMPL_VAR .studio_id>'); return false;"
|
||||
>
|
||||
<img id="imagePreview" src="showImage.cgi?project_id=<TMPL_VAR .project_id>&studioId=<TMPL_VAR .studio_id>&filename=<TMPL_VAR image>&type=thumbs">
|
||||
<img id="imagePreview" src="showImage.cgi?project_id=<TMPL_VAR .project_id>&studioId=<TMPL_VAR .studio_id>&filename=<TMPL_VAR image>&type=icon">
|
||||
</button>
|
||||
<input id="image_<TMPL_VAR id>" name="image" value="<TMPL_VAR image>" class="image" placeholder="<TMPL_VAR .loc.template_image>">
|
||||
</td>
|
||||
|
||||
Reference in New Issue
Block a user