optimize imports
This commit is contained in:
@@ -1,65 +1,54 @@
|
||||
<TMPL_IF .allow.scan_series_events>
|
||||
|
||||
<script type="text/javascript">
|
||||
<TMPL_IF .getBack>
|
||||
$(document).ready(
|
||||
function(){
|
||||
getBack()
|
||||
}
|
||||
);
|
||||
</TMPL_IF>
|
||||
|
||||
function assign_series(project_id, studio_id, series_id){
|
||||
if (project_id=='')return false;
|
||||
if (studio_id=='')return false;
|
||||
if (series_id=='')return false;
|
||||
|
||||
$('#assignments_form input[name="series_id"]').val(series_id);
|
||||
//console.log(project_id+" "+studio_id+" "+series_id);
|
||||
|
||||
var url="assign_series.cgi?project_id="+project_id+'&studio_id='+studio_id+'&series_id='+series_id+'&action=assign_series';
|
||||
//console.log(url);
|
||||
$('#assignments_form').submit();
|
||||
return false;
|
||||
<script type="text/javascript">
|
||||
<TMPL_IF .getBack>
|
||||
$(document).ready(
|
||||
function(){
|
||||
getBack()
|
||||
}
|
||||
</script>
|
||||
);
|
||||
</TMPL_IF>
|
||||
|
||||
<style>
|
||||
#content{
|
||||
height:100px;
|
||||
overflow:none;
|
||||
}
|
||||
</style>
|
||||
function assign_series(project_id, studio_id){
|
||||
if (project_id == '') return false;
|
||||
if (studio_id == '') return false;
|
||||
|
||||
assign series to project <b><TMPL_VAR project_name></b> and studio <b><TMPL_VAR studio_name></b>
|
||||
var url="create_events.cgi?project_id="+project_id+'&studio_id='+studio_id+'&action=create_events';
|
||||
$('#create_event_form').submit();
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- view series -->
|
||||
<div id="view_<TMPL_VAR .series_id>" class="view" style="clear:both">
|
||||
<div class="buttons">
|
||||
|
||||
<div style="float:left">Series</div>
|
||||
<select style="float:left;max-width:600px;" id="series_id">
|
||||
<option value="">--select--</option>
|
||||
<TMPL_LOOP series>
|
||||
<option value="<TMPL_VAR series_id>"><b><TMPL_VAR series_name> - <TMPL_VAR title></b> [<TMPL_VAR project_name> - <TMPL_VAR studio_name>]
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
<h1>create events from schedule</h1>
|
||||
|
||||
<form action="assign_series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>" method="post" id="assignments_form">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<input type="hidden" name="action" value="assign_series">
|
||||
<button target="_blank"
|
||||
onclick="assign_series('<TMPL_VAR .project_id>', '<TMPL_VAR .studio_id>', $('#series_id').val());return false;"
|
||||
style="float:left"
|
||||
>assign</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<form id="create_event_form">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" name="action" value="create_events">
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
duration
|
||||
<select name="duration">
|
||||
<option value="7">1 week</option>
|
||||
<option value="14">2 weeks</option>
|
||||
<option value="21">3 weeks</option>
|
||||
<option value="28">4 weeks</option>
|
||||
</select>
|
||||
|
||||
<button target="_blank"
|
||||
onclick="assign_series('<TMPL_VAR .project_id>', '<TMPL_VAR .studio_id>');return false;"
|
||||
>create</button>
|
||||
</form>
|
||||
|
||||
<div class="view" style="clear:both">
|
||||
created <TMPL_VAR created_total> events from <TMPL_VAR from_date> till <TMPL_VAR till_date><br>
|
||||
<TMPL_LOOP created_events> events created
|
||||
<TMPL_var start><TMPL_var full_title><br>
|
||||
</TMPL_LOOP>
|
||||
|
||||
</view>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
</TMPL_IF>
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<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){
|
||||
@@ -42,6 +39,10 @@ $(document).ready(
|
||||
|
||||
</script>
|
||||
|
||||
<TMPL_IF no_results>
|
||||
found no image
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_LOOP images>
|
||||
<TMPL_IF filename>
|
||||
<div id="imageEditor">
|
||||
|
||||
Reference in New Issue
Block a user