rewrite image editor, make images editable at projects and studios
This commit is contained in:
@@ -43,15 +43,22 @@
|
||||
);
|
||||
}
|
||||
});
|
||||
<TMPL_IF edit_lock>
|
||||
$( "#edit_event input" ).prop( "disabled", true );
|
||||
$( "#edit_event textarea" ).prop( "disabled", true );
|
||||
$( "#edit_event select" ).prop( "disabled", true );
|
||||
</TMPL_IF>
|
||||
|
||||
}
|
||||
);
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<TMPL_IF edit_lock>
|
||||
<div class="ok head"><TMPL_VAR loc.label_edit_lock></div>
|
||||
<div class="warn head"><TMPL_VAR loc.label_edit_lock></div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- edit -->
|
||||
@@ -208,6 +215,7 @@
|
||||
</TMPL_UNLESS>
|
||||
|
||||
<!-- header buttons -->
|
||||
<TMPL_UNLESS edit_lock>
|
||||
<div class="buttons" style="text-align:center;clear:both">
|
||||
<TMPL_IF show_new_event_from_schedule>
|
||||
<TMPL_IF .allow.create_event_from_schedule>
|
||||
@@ -236,7 +244,7 @@
|
||||
</TMPL_UNLESS>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
|
||||
</TMPL_UNLESS>
|
||||
<!-- download output -->
|
||||
<TMPL_IF download>
|
||||
<textarea type="hidden" name="event_id" ><TMPL_VAR download></textarea>
|
||||
@@ -490,6 +498,7 @@
|
||||
</table>
|
||||
|
||||
<!-- buttons -->
|
||||
<TMPL_UNLESS edit_lock>
|
||||
<table>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
@@ -524,6 +533,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</TMPL_UNLESS>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -138,7 +138,7 @@
|
||||
>
|
||||
<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 .series_id>" name="image" value="<TMPL_VAR image>" class="image" placeholder="<TMPL_VAR .loc.template_image>">
|
||||
<input id="image_<TMPL_VAR .series_id>" name="image" value="<TMPL_VAR image>" class="image" placeholder="<TMPL_VAR .loc.template_image>" readonly="readonly">
|
||||
</TMPL_IF>
|
||||
</td></tr>
|
||||
<tr> <td class="label"><TMPL_VAR .loc.template_duration></td>
|
||||
|
||||
@@ -1,6 +1,21 @@
|
||||
<!--
|
||||
<script src="js/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="js/jquery-ui.min.js" type="text/javascript"></script>
|
||||
<script src="js/admin.js" type="text/javascript"></script>
|
||||
<script src="js/history.js" type="text/javascript"></script>
|
||||
<script src="js/localization.js" type="text/javascript"></script>
|
||||
<script src="js/localization-datetime.js" type="text/javascript"></script>
|
||||
<script src="js/event.js" type="text/javascript"></script>
|
||||
<script src="js/datetime.js" type="text/javascript"></script>
|
||||
|
||||
<link rel="stylesheet" href="css/admin.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/jquery-ui.min.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/series.css" type="text/css" />
|
||||
-->
|
||||
|
||||
<link type="text/css" href="css/image_manager.css" rel="stylesheet"/>
|
||||
<link type="text/css" href="css/fileUploader.css" rel="stylesheet"/>
|
||||
|
||||
<script src="js/fileUploader.js" type="text/javascript"></script>
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<TMPL_IF .allow.create_image>
|
||||
@@ -23,15 +38,16 @@
|
||||
selectedImageTab = getSelectedTab('image-tabs');
|
||||
|
||||
<TMPL_IF .allow.create_image>
|
||||
if(selectedImageTab=="upload"){
|
||||
initUploadDialog();
|
||||
$('#imageList').hide();
|
||||
return
|
||||
}else{
|
||||
closeImageUpload();
|
||||
$('#imageList').show();
|
||||
}
|
||||
if(selectedImageTab=="upload"){
|
||||
initUploadDialog();
|
||||
$('#imageList').hide();
|
||||
return;
|
||||
}
|
||||
</TMPL_IF>
|
||||
|
||||
// show images by default
|
||||
closeImageUpload();
|
||||
$('#imageList').show();
|
||||
}
|
||||
});
|
||||
// get initially selected tab
|
||||
@@ -45,41 +61,38 @@
|
||||
|
||||
<div id="image-tabs">
|
||||
<ul>
|
||||
<li><a href="#image-tabs-select" value="select"><TMPL_VAR .loc.tab_select></a></li>
|
||||
<TMPL_IF .allow.update_image>
|
||||
<li><a href="#image-tabs-edit" value="edit"><TMPL_VAR .loc.tab_edit></a></li>
|
||||
</TMPL_IF>
|
||||
<li>
|
||||
<a href="#image-tabs-select" value="select">
|
||||
<TMPL_VAR .loc.tab_select>
|
||||
<TMPL_IF .allow.update_image> / <TMPL_VAR .loc.tab_edit> </TMPL_IF>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<TMPL_IF .allow.create_image>
|
||||
<li><a href="#image-tabs-upload" value="upload"><TMPL_VAR .loc.tab_upload></a></li>
|
||||
<li>
|
||||
<a href="#image-tabs-upload" value="upload"><TMPL_VAR .loc.tab_upload></a>
|
||||
</li>
|
||||
</TMPL_IF>
|
||||
</ul>
|
||||
|
||||
<!-- select image -->
|
||||
<div id="image-tabs-select">
|
||||
</div>
|
||||
<!-- select image -->
|
||||
<div id="image-tabs-select">
|
||||
</div>
|
||||
|
||||
<!-- edit image -->
|
||||
<TMPL_IF .allow.update_image>
|
||||
<div id="image-tabs-edit">
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- upload images -->
|
||||
<TMPL_IF .allow.create_image>
|
||||
<div id="image-tabs-upload">
|
||||
<div id="img_upload">
|
||||
<div id="img_upload_result"></div>
|
||||
<form id="image_upload" method="post" action="imageUpload.cgi" enctype="multipart/form-data">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input id="uploader" type="file" name="image" value="<TMPL_VAR image escape=0>" accept="text/*" maxlength="1000000" size="10"/> </td>
|
||||
<button type="submit" name="action" value="upload" id="pxUpload" ><TMPL_VAR .loc.button_upload></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
|
||||
<!-- tabs -->
|
||||
<!-- upload images -->
|
||||
<TMPL_IF .allow.create_image>
|
||||
<div id="image-tabs-upload">
|
||||
<div id="img_upload">
|
||||
<div id="img_upload_result"></div>
|
||||
<form id="image_upload" method="post" action="imageUpload.cgi" enctype="multipart/form-data">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input id="uploader" type="file" name="image" value="<TMPL_VAR image escape=0>" accept="text/*" maxlength="1000000" size="10"/> </td>
|
||||
<button type="submit" name="action" value="upload" id="pxUpload" ><TMPL_VAR .loc.button_upload></button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</div>
|
||||
|
||||
<div id="imageList">
|
||||
@@ -87,6 +100,7 @@
|
||||
<button onclick="decreaseImageSize();return false;" title="<TMPL_VAR .loc.button_zoom_out>">-</button>
|
||||
<button onclick="increaseImageSize();return false;" title="<TMPL_VAR .loc.button_zoom_in>">+</button>
|
||||
</div>
|
||||
|
||||
<form id="image_manager" action="image.cgi">
|
||||
<input name="search" value="<TMPL_VAR search escape=0>" style="width:20em;">
|
||||
<input type="hidden" name="filename" value="<TMPL_VAR filename escape=0>">
|
||||
@@ -94,26 +108,28 @@
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<button onclick="searchImage();return false;"><TMPL_VAR .loc.button_search></button>
|
||||
</form>
|
||||
<div style="clear:both;">
|
||||
<TMPL_VAR count> <TMPL_VAR .loc.label_search_hits><br />
|
||||
<div class="images">
|
||||
<TMPL_VAR count> <TMPL_VAR .loc.label_search_hits><br />
|
||||
|
||||
<div style="clear:both;display: flex; flex-direction: row;">
|
||||
|
||||
<div class="images" style="height:1000px;overflow-y:scroll">
|
||||
<TMPL_LOOP images>
|
||||
<div class="image"
|
||||
id="img_<TMPL_VAR id>"
|
||||
style="background-image:url('showImage.cgi?project_id=<TMPL_VAR project_id>&studioId=<TMPL_VAR .studio_id>&type=icon&filename=<TMPL_VAR filename>')"
|
||||
title="<TMPL_VAR description>"
|
||||
onclick="imageAction('<TMPL_VAR filename>');return false;"
|
||||
onclick="updateImageEditor('<TMPL_VAR filename>', this);return false;"
|
||||
>
|
||||
<div class="label"><TMPL_VAR name></div>
|
||||
</div>
|
||||
</TMPL_LOOP>
|
||||
</div>
|
||||
|
||||
<div id="img_editor" >
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="img_editor" style="display:none"></div>
|
||||
<div id="img_image" style="display:none"></div>
|
||||
|
||||
</TMPL_IF>
|
||||
<!-- content -->
|
||||
</div>
|
||||
|
||||
@@ -30,6 +30,14 @@
|
||||
<td>Beschreibung: </td>
|
||||
<td><textarea name="description" cols="50" rows=5><TMPL_VAR description escape=0></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label><TMPL_VAR .loc.label_author>/<TMPL_VAR .loc.label_licence></label></td>
|
||||
<td><input name="licence" value="<TMPL_VAR licence>" placeholder="<TMPL_VAR .loc.label_licence_missing>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label><TMPL_VAR .loc.label_public></label></td>
|
||||
<td><input type="checkbox" name="public"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align:right">
|
||||
<input type="submit" name="action" value="Hochladen!" />
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<link type="text/css" href="css/admin.css" rel="stylesheet"/>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<script>
|
||||
<link type="text/css" href="css/admin.css" rel="stylesheet"/>
|
||||
<link type="text/css" href="css/image_manager.css" rel="stylesheet"/>
|
||||
</head>
|
||||
|
||||
<script>
|
||||
function updateCheckBox(selector, value){
|
||||
$(selector).attr('value', value)
|
||||
if (value==1){
|
||||
@@ -40,66 +41,51 @@ $(document).ready(
|
||||
);
|
||||
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<TMPL_LOOP images>
|
||||
<form id="save_img_<TMPL_VAR id>"
|
||||
method="post"
|
||||
action="image.cgi"
|
||||
onsubmit="saveImage('<TMPL_VAR id>','<TMPL_VAR filename>');return false;"
|
||||
style="float:left"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<TMPL_IF filename>
|
||||
<div id="imageEditor">
|
||||
<button onclick="selectThisImage('<TMPL_VAR filename escape=0>'); return false"><TMPL_VAR .loc.select_image></button/>
|
||||
<hr>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_name></td>
|
||||
<td><input value="<TMPL_VAR name escape=0>" name="update_name" class="field"></td>
|
||||
<td rowspan="99"><a href="<TMPL_VAR image_url>" onclick="showImage('<TMPL_VAR image_url>');return false;"
|
||||
><img src="showImage.cgi?project_id=<TMPL_VAR project_id>&studioId=<TMPL_VAR .studio_id>&type=icon&filename=<TMPL_VAR filename>" /></a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_description></td>
|
||||
<td><textarea name="update_description" cols="50" rows=5><TMPL_VAR description escape=0></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_created_at></td>
|
||||
<td><TMPL_VAR created_at> <TMPL_VAR .loc.label_created_by> <TMPL_VAR created_by></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_modified_at></td>
|
||||
<td><TMPL_VAR modified_at> <TMPL_VAR .loc.label_modified_by> <TMPL_VAR modified_by></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_editor_link></td>
|
||||
<td><input value="{{<TMPL_VAR filename escape=0>|<TMPL_VAR name>}}" class="field" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_author>/<TMPL_VAR .loc.label_licence></td>
|
||||
<td><input name="licence" value="<TMPL_VAR licence>" class="field<TMPL_IF missing_licence> error</TMPL_IF>" placeholder="<TMPL_VAR .loc.label_licence_missing>"/></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><TMPL_VAR .loc.label_public></td>
|
||||
<td><input type="checkbox" name="public" <TMPL_IF public>checked="checked" value="1"<TMPL_ELSE>value="0"</TMPL_IF> /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td />
|
||||
<td>
|
||||
<TMPL_IF name="update_image">
|
||||
<input type="hidden" name="save_image" value="<TMPL_VAR filename escape=0>" />
|
||||
<button onclick="this.submit"><TMPL_VAR .loc.button_save></button/>
|
||||
</TMPL_IF>
|
||||
<form id="save_img_<TMPL_VAR id>"
|
||||
method="post"
|
||||
action="image.cgi"
|
||||
onsubmit="saveImage('<TMPL_VAR id>','<TMPL_VAR filename>');return false;"
|
||||
>
|
||||
|
||||
<TMPL_IF name="delete_image">
|
||||
<button onclick="askDeleteImage('img_<TMPL_VAR id escape=0>','<TMPL_VAR filename escape=0>');return false;"><TMPL_VAR .loc.button_delete></button>
|
||||
</TMPL_IF>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
|
||||
</form>
|
||||
<label><TMPL_VAR .loc.label_name></label><br>
|
||||
<input value="<TMPL_VAR name escape=0>" name="update_name" class="field" placeholder="<TMPL_VAR .loc.label_name>"><br>
|
||||
|
||||
<label><TMPL_VAR .loc.label_description></label><br>
|
||||
<textarea class="field" name="update_description" cols="50" rows=5 placeholder="<TMPL_VAR .loc.label_description>"><TMPL_VAR description escape=0></textarea><br>
|
||||
|
||||
<label><TMPL_VAR .loc.label_author>/<TMPL_VAR .loc.label_licence></label><br>
|
||||
<input name="licence" value="<TMPL_VAR licence>" class="field<TMPL_IF missing_licence> error</TMPL_IF>" placeholder="<TMPL_VAR .loc.label_licence_missing>"/><br>
|
||||
|
||||
<label><TMPL_VAR .loc.label_public></label>
|
||||
<input type="checkbox" name="public" <TMPL_IF public>checked="checked" value="1"<TMPL_ELSE>value="0"</TMPL_IF> /><br>
|
||||
|
||||
<TMPL_IF name="update_image">
|
||||
<input type="hidden" name="save_image" value="<TMPL_VAR filename escape=0>" />
|
||||
<button onclick="this.submit"><TMPL_VAR .loc.button_save></button/>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF name="delete_image">
|
||||
<button onclick="askDeleteImage('img_<TMPL_VAR id escape=0>','<TMPL_VAR filename escape=0>');return false;"><TMPL_VAR .loc.button_delete></button>
|
||||
</TMPL_IF>
|
||||
|
||||
<div id="status" ></div>
|
||||
<TMPL_VAR .loc.label_created_at> <TMPL_VAR created_at> <TMPL_VAR .loc.label_created_by> <TMPL_VAR created_by><br>
|
||||
<TMPL_VAR .loc.label_modified_at> <TMPL_VAR modified_at> <TMPL_VAR .loc.label_modified_by> <TMPL_VAR modified_by><br>
|
||||
<TMPL_VAR .loc.label_link>: {{<TMPL_VAR filename escape=0>|<TMPL_VAR name>}}<br>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</TMPL_IF>
|
||||
</TMPL_LOOP>
|
||||
|
||||
</body>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<link href="css/image-manager.css" type="text/css" rel="stylesheet" />
|
||||
|
||||
<script type="text/javascript">
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
@@ -21,7 +23,6 @@
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_subtitle></td> <td><input name="subtitle"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_start_date></td> <td><input name="start_date" class="date"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_end_date></td> <td><input name="end_date" class="date"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_image></td> <td><input name="image"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_email></td> <td><input name="email"> </td></tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
@@ -42,7 +43,7 @@
|
||||
<div class="card project">
|
||||
<!-- buttons -->
|
||||
<div>
|
||||
<div class="title"><TMPL_VAR name></div>
|
||||
<div class="title"><TMPL_VAR title></div>
|
||||
<TMPL_IF .allow.update_project>
|
||||
<button onclick="edit_project('<TMPL_VAR project_id>')"
|
||||
><TMPL_VAR .loc.button_edit></button>
|
||||
@@ -52,12 +53,11 @@
|
||||
<!-- view project -->
|
||||
<div id="view_<TMPL_VAR project_id>" class="view">
|
||||
<table>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_image></td> <td colspan="2"><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 colspan="2"><TMPL_VAR name> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_title></td> <td colspan="2"><TMPL_VAR title> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_subtitle></td> <td colspan="2"><TMPL_VAR subtitle> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_start_date></td> <td colspan="2"><TMPL_VAR start_date> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_end_date></td> <td colspan="2"><TMPL_VAR end_date> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_image></td> <td colspan="2"><img src="<TMPL_VAR image>"> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_email></td> <td colspan="2"><TMPL_VAR email> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_studios></td>
|
||||
<td>
|
||||
@@ -68,7 +68,7 @@
|
||||
<TMPL_IF .allow.update_project>
|
||||
<button onclick="edit_project_assignments('<TMPL_VAR project_id>')"
|
||||
style="float:left"
|
||||
><TMPL_VAR .loc.button_edit></button>
|
||||
><TMPL_VAR .loc.button_change></button>
|
||||
</TMPL_IF>
|
||||
|
||||
</td></tr>
|
||||
@@ -87,13 +87,24 @@
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="pid" value="<TMPL_VAR pid>">
|
||||
<table>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_name></td> <td><input name="name" value="<TMPL_VAR name>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_title></td> <td><input name="title" value="<TMPL_VAR title>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_name></td> <td><input name="name" value="<TMPL_VAR name>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_subtitle></td> <td><input name="subtitle" value="<TMPL_VAR subtitle>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_start_date></td><td><input class="date" name="start_date" value="<TMPL_VAR start_date>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_end_date></td> <td><input class="date" name="end_date" value="<TMPL_VAR end_date>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_image></td> <td><input name="image" value="<TMPL_VAR image>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_email></td> <td><input name="email" value="<TMPL_VAR email>"></td></tr>
|
||||
<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 pid>','<TMPL_VAR series_name escape=HTML>','<TMPL_VAR image escape=URL>','<TMPL_VAR series_id>');return false;"
|
||||
style="padding:0;float:left"
|
||||
>
|
||||
<img id="imagePreview" src="showImage.cgi?project_id=<TMPL_VAR .project_id>&studioId=<TMPL_VAR .studio_id>&filename=<TMPL_VAR image>&type=thumbs">
|
||||
</button>
|
||||
<!-- <input name="image">-->
|
||||
<input id="image_<TMPL_VAR pid>" name="image" value="<TMPL_VAR image>" class="image" placeholder="<TMPL_VAR .loc.template_image>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="buttons">
|
||||
@@ -166,5 +177,7 @@
|
||||
</TMPL_LOOP>
|
||||
</div>
|
||||
|
||||
<div id="selectImage"> </div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<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>
|
||||
@@ -12,7 +15,6 @@
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_description></td> <td><input name="description" ></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_location></td> <td><input name="location" ></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_stream></td> <td><input name="stream" ></td></tr>
|
||||
<!-- <tr><td class="label"><TMPL_VAR .loc.label_google_calendar></td> <td><input name="google_calendar" ></td></tr> -->
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="buttons">
|
||||
@@ -45,11 +47,11 @@
|
||||
<!-- view studio -->
|
||||
<div id="view_<TMPL_VAR id>" class="view">
|
||||
<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>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_description></td> <td><TMPL_VAR description> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_location></td> <td><TMPL_VAR location> </td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_stream></td> <td><TMPL_VAR stream> </td></tr>
|
||||
<!--<tr><td class="label"><TMPL_VAR .loc.label_google_calendar></td> <td><TMPL_VAR google_calendar> </td></tr>-->
|
||||
</table>
|
||||
</div>
|
||||
|
||||
@@ -65,7 +67,17 @@
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_description></td> <td><input name="description" value="<TMPL_VAR description>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_location></td> <td><input name="location" value="<TMPL_VAR location>"></td></tr>
|
||||
<tr><td class="label"><TMPL_VAR .loc.label_stream></td> <td><input name="stream" value="<TMPL_VAR stream>"></td></tr>
|
||||
<!--<tr><td class="label"><TMPL_VAR .loc.label_>google calendar</td> <td><input name="google_calendar" value="<TMPL_VAR google_calendar>"></td></tr> -->
|
||||
<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"
|
||||
>
|
||||
<img id="imagePreview" src="showImage.cgi?project_id=<TMPL_VAR .project_id>&studioId=<TMPL_VAR .studio_id>&filename=<TMPL_VAR image>&type=thumbs">
|
||||
</button>
|
||||
<input id="image_<TMPL_VAR id>" name="image" value="<TMPL_VAR image>" class="image" placeholder="<TMPL_VAR .loc.template_image>">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="buttons">
|
||||
|
||||
@@ -58,6 +58,8 @@
|
||||
<tr>
|
||||
<th>action</th>
|
||||
<th>name</th>
|
||||
<th>uploaded by</th>
|
||||
<th>uploaded at</th>
|
||||
<th>size in bytes</th>
|
||||
<th>event duration in seconds</th>
|
||||
<th>audio duration in seconds</th>
|
||||
@@ -65,13 +67,14 @@
|
||||
<th>RMS R</th>
|
||||
<th>processed</th>
|
||||
<th>mastered</th>
|
||||
<th>uploaded by</th>
|
||||
<th>uploaded at</th>
|
||||
<th>modified at</th>
|
||||
</tr>
|
||||
<TMPL_LOOP audio_recordings>
|
||||
<tr>
|
||||
<td><button onclick="playAudio('<TMPL_VAR path>');return false">play</button></td>
|
||||
<td><TMPL_VAR path></td>
|
||||
<td><TMPL_VAR created_by></td>
|
||||
<td><TMPL_VAR created_at></td>
|
||||
<td><TMPL_VAR size></td>
|
||||
<td><TMPL_VAR eventDuration></td>
|
||||
<td><TMPL_VAR audioDuration></td>
|
||||
@@ -79,8 +82,7 @@
|
||||
<td><TMPL_VAR rmsRight></td>
|
||||
<td><TMPL_VAR processed></td>
|
||||
<td><TMPL_VAR mastered></td>
|
||||
<td><TMPL_VAR created_by></td>
|
||||
<td><TMPL_VAR created_at></td>
|
||||
<td><TMPL_VAR modified_at></td>
|
||||
<TMPL_IF .allow.delete_audio_recordings>
|
||||
<td>
|
||||
<form method="post">
|
||||
|
||||
Reference in New Issue
Block a user