filenames
use kebab-case for file names remove camelCase and snake_case
This commit is contained in:
@@ -246,7 +246,7 @@ sub show_login_form ($$) {
|
||||
|
||||
if ( ( $user ne '' ) && ( $message ne '' ) ) {
|
||||
$requestReset = qq{
|
||||
<a href="requestPassword.cgi?user=$user">Passwort vergessen?</a>
|
||||
<a href="request-password.cgi?user=$user">Passwort vergessen?</a>
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ sub sendToken ($$) {
|
||||
$entry->{token} = Session::Token->new->get;
|
||||
|
||||
my $baseUrl = $config->{locations}->{source_base_url} . $config->{locations}->{editor_base_url};
|
||||
my $url = $baseUrl . "/requestPassword.cgi?token=" . $entry->{token};
|
||||
my $url = $baseUrl . "/request-password.cgi?token=" . $entry->{token};
|
||||
my $content = "Hi,$user->{full_name}\n\n";
|
||||
$content .= "Someone just tried to reset your password for $baseUrl.\n\n";
|
||||
$content .= "If you like to set a new password, please follow the link below\n";
|
||||
|
||||
@@ -238,7 +238,7 @@ sub check_params {
|
||||
$checked->{studio_id} = -1;
|
||||
}
|
||||
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'assign_series' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'assign-series' );
|
||||
|
||||
return $checked;
|
||||
}
|
||||
@@ -90,8 +90,8 @@ template::process( $config, 'print', template::check( $config, 'default.html' ),
|
||||
exit unless uac::check( $config, $params, $user_presets ) == 1;
|
||||
|
||||
print q{
|
||||
<script src="js/audio_recordings.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="css/audio_recordings.css" type="text/css" />
|
||||
<script src="js/audio-recordings.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="css/audio-recordings.css" type="text/css" />
|
||||
} unless (params::isJson);
|
||||
|
||||
my $permissions = $request->{permissions};
|
||||
@@ -557,7 +557,7 @@ sub check_params {
|
||||
my $checked = {};
|
||||
$checked->{error} = '';
|
||||
$checked->{template} =
|
||||
template::check( $config, $params->{template}, 'upload_audio_recordings' );
|
||||
template::check( $config, $params->{template}, 'upload-audio-recordings' );
|
||||
|
||||
#print Dumper($params);
|
||||
#numeric values
|
||||
@@ -254,7 +254,7 @@ sub check_params {
|
||||
#template
|
||||
my $template = '';
|
||||
if ( defined $checked->{action} ) {
|
||||
$template = template::check( $config, $params->{template}, 'edit_comment' )
|
||||
$template = template::check( $config, $params->{template}, 'edit-comment' )
|
||||
if $checked->{action} eq 'showComment';
|
||||
} else {
|
||||
$template = template::check( $config, $params->{template}, 'comments' );
|
||||
|
||||
@@ -232,7 +232,7 @@ sub check_params {
|
||||
$checked->{studio_id} = -1;
|
||||
}
|
||||
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'create_events' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'create-events' );
|
||||
|
||||
return $checked;
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
form table {
|
||||
margin: 6px;
|
||||
padding: 6px;
|
||||
}
|
||||
@@ -115,9 +115,9 @@ sub show_history {
|
||||
}
|
||||
|
||||
#print STDERR Dumper($params);
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'event_history' } );
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'event-history' } );
|
||||
|
||||
template::process( $config, 'print', template::check( $config, 'event_history' ), $params );
|
||||
template::process( $config, 'print', template::check( $config, 'event-history' ), $params );
|
||||
}
|
||||
|
||||
#show existing event history
|
||||
@@ -250,7 +250,7 @@ sub check_params {
|
||||
|
||||
my $checked = {};
|
||||
my $template = '';
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'event_history' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'event-history' );
|
||||
|
||||
my $debug = $params->{debug} || '';
|
||||
if ( $debug =~ /([a-z\_\,]+)/ ) {
|
||||
@@ -312,7 +312,7 @@ sub show_event {
|
||||
|
||||
#print STDERR Dumper($params);
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'event' } );
|
||||
template::process( $config, 'print', template::check( $config, 'edit_event' ), $params );
|
||||
template::process( $config, 'print', template::check( $config, 'edit-event' ), $params );
|
||||
}
|
||||
|
||||
sub getJson {
|
||||
@@ -456,7 +456,7 @@ sub show_new_event {
|
||||
}
|
||||
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'event,comment' } );
|
||||
template::process( $config, 'print', template::check( $config, 'edit_event' ), $params );
|
||||
template::process( $config, 'print', template::check( $config, 'edit-event' ), $params );
|
||||
|
||||
#print '<pre>'.Dumper($params).'</pre>';
|
||||
}
|
||||
|
||||
@@ -286,7 +286,7 @@ sub get_filename {
|
||||
sub check_filename {
|
||||
my $filename = shift;
|
||||
|
||||
my @valid_extensions = ( 'png', 'jpeg', 'jpg', 'gif', 'pdf', 'txt', 'bmp', 'ps', 'eps', 'wmf' );
|
||||
my @valid_extensions = ( 'png', 'jpeg', 'jpg', 'gif', 'pdf', 'txt', 'bmp', 'ps', 'eps', 'wmf', 'svg' );
|
||||
if ( $filename =~ /\.([a-zA-Z]{3,5})$/ ) {
|
||||
my $extension = lc $1;
|
||||
unless ( grep( /$extension/, @valid_extensions ) ) {
|
||||
|
||||
@@ -65,7 +65,7 @@ $headerParams->{loc} = localization::get( $config, { user => $user, file => 'men
|
||||
if ( $params->{search} ) {
|
||||
template::process( $config, 'print', template::check( $config, 'default.html' ), $headerParams );
|
||||
} else {
|
||||
template::process( $config, 'print', template::check( $config, 'ajax_header.html' ), $headerParams );
|
||||
template::process( $config, 'print', template::check( $config, 'ajax-header.html' ), $headerParams );
|
||||
}
|
||||
|
||||
return unless uac::check( $config, $params, $user_presets ) == 1;
|
||||
@@ -241,7 +241,7 @@ sub show_image {
|
||||
|
||||
#set global values for update and delete, per image values are evaluated later
|
||||
$template_params->{allow}->{update_image} =
|
||||
$template_params->{allow}->{update_image_own} || $template_params->{allow}->{seriesupdate_image_others};
|
||||
$template_params->{allow}->{update_image_own} || $template_params->{allow}->{update_image_others};
|
||||
$template_params->{allow}->{delete_image} =
|
||||
$template_params->{allow}->{delete_image_own} || $template_params->{allow}->{delete_image_others};
|
||||
template::process( $config, 'print', $params->{template}, $template_params );
|
||||
|
||||
@@ -57,7 +57,7 @@ function uploadFile(uploadButton){
|
||||
hideError();
|
||||
showProgress();
|
||||
var request=$.ajax({
|
||||
url: 'audio_recordings.cgi',
|
||||
url: 'audio-recordings.cgi',
|
||||
type: 'POST',
|
||||
data: new FormData($('#audio_recordings_upload')[0]),
|
||||
cache: false,
|
||||
@@ -1023,7 +1023,7 @@ function handleWorktime(id, event){
|
||||
if (schedule_id<0) return;
|
||||
var start_date=$(this).attr("start");
|
||||
|
||||
var url="work_time.cgi?action=show_new_event_from_schedule&project_id="+project_id+"&studio_id="+studio_id+"&schedule_id="+schedule_id+"&start_date="+start_date;
|
||||
var url="work-time.cgi?action=show_new_event_from_schedule&project_id="+project_id+"&studio_id="+studio_id+"&schedule_id="+schedule_id+"&start_date="+start_date;
|
||||
if(event.which==1){
|
||||
load(url);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ function uploadImage(){
|
||||
//remove existing image from list
|
||||
$('#imageList div.images #img_'+image_id).remove();
|
||||
|
||||
var url='show-image.cgi?project_id='+getProjectId()+'&studioId='+getStudioId()+'&type=icon&filename='+filename;
|
||||
var url='show-image.cgi?project_id='+getProjectId()+'&studio_id='+getStudioId()+'&type=icon&filename='+filename;
|
||||
|
||||
var html = '<div';
|
||||
html += ' id="img_' + image_id + '"';
|
||||
@@ -21,7 +21,7 @@ function updateActiveImage(){
|
||||
// open dialog to show or edit image properties
|
||||
function updateImageEditor(elem, filename, target, project_id, studio_id, series_id, event_id, pid){
|
||||
var url='image.cgi?show='+filename;
|
||||
url += '&template=edit_image.html';
|
||||
url += '&template=edit-image.html';
|
||||
url += '&target=' + target;
|
||||
url += '&project_id='+project_id;
|
||||
url += '&studio_id='+studio_id;
|
||||
@@ -130,7 +130,7 @@ function deleteImage(id, filename) {
|
||||
function hideImageDetails(id, filename){
|
||||
try{$('#img_editor').dialog('close');}catch(e){}
|
||||
|
||||
var url='image.cgi?show='+filename+'&template=image_single.html&project_id='+project_id+'&studio_id='+studio_id;
|
||||
var url='image.cgi?show='+filename+'&template=image-single.html&project_id='+project_id+'&studio_id='+studio_id;
|
||||
console.log("hideImageDetails, load url="+url)
|
||||
$("#"+id).load(url);
|
||||
return false;
|
||||
|
||||
@@ -27,7 +27,7 @@ function updateWeekdays(){
|
||||
function showDates(){
|
||||
var date=$('#show_date select').val();
|
||||
|
||||
var url='studio_timeslots.cgi?';
|
||||
var url='studio-timeslots.cgi?';
|
||||
url+='project_id='+getProjectId();
|
||||
url+='&studio_id='+getStudioId();
|
||||
url+='&action=show_dates';
|
||||
@@ -120,7 +120,7 @@ sub show_events {
|
||||
$params->{'allow'}->{$permission} = $request->{permissions}->{$permission};
|
||||
}
|
||||
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'notify_events' } );
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'notify-events' } );
|
||||
template::process( $config, 'print', $params->{template}, $params );
|
||||
|
||||
}
|
||||
@@ -242,7 +242,7 @@ sub check_params {
|
||||
|
||||
my $checked = {};
|
||||
my $template = '';
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'notify_events' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'notify-events' );
|
||||
|
||||
my $debug = $params->{debug} || '';
|
||||
if ( $debug =~ /([a-z\_\,]+)/ ) {
|
||||
@@ -143,7 +143,7 @@ sub check_params {
|
||||
my $checked = {};
|
||||
|
||||
#my $template = '';
|
||||
#$checked->{template} = template::check($config, $params->{template}, 'requestPassword' );
|
||||
#$checked->{template} = template::check($config, $params->{template}, 'request-password' );
|
||||
|
||||
my $debug = $params->{debug} || '';
|
||||
if ( $debug =~ /([a-z\_\,]+)/ ) {
|
||||
@@ -49,7 +49,7 @@ $request = uac::prepare_request( $request, $user_presets );
|
||||
|
||||
$params = $request->{params}->{checked};
|
||||
$params = uac::set_template_permissions( $request->{permissions}, $params );
|
||||
$params->{loc} = localization::get( $config, { user => $user, file => 'selectEvent' } );
|
||||
$params->{loc} = localization::get( $config, { user => $user, file => 'select-event' } );
|
||||
|
||||
#process header
|
||||
print "Content-type:text/html; charset=UTF-8;\n\n";
|
||||
@@ -172,7 +172,7 @@ sub check_params {
|
||||
$checked->{studio_id} = -1;
|
||||
}
|
||||
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'selectEvent' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'select-event' );
|
||||
|
||||
return $checked;
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ $request = uac::prepare_request( $request, $user_presets );
|
||||
|
||||
$params = $request->{params}->{checked};
|
||||
$params = uac::set_template_permissions( $request->{permissions}, $params );
|
||||
$params->{loc} = localization::get( $config, { user => $user, file => 'selectSeries' } );
|
||||
$params->{loc} = localization::get( $config, { user => $user, file => 'select-series' } );
|
||||
|
||||
#process header
|
||||
print "Content-type:text/html; charset=UTF-8;\n\n";
|
||||
@@ -149,7 +149,7 @@ sub check_params {
|
||||
$checked->{studio_id} = -1;
|
||||
}
|
||||
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'selectSeries' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'select-series' );
|
||||
|
||||
return $checked;
|
||||
}
|
||||
|
||||
@@ -102,12 +102,12 @@ $config->{access}->{write} = 0;
|
||||
#print STDERR "show_series\n";
|
||||
|
||||
if ( defined $params->{series_id} ) {
|
||||
print q{<script src="js/edit_series.js" type="text/javascript"></script>} unless params::isJson();
|
||||
print q{<script src="js/edit-series.js" type="text/javascript"></script>} unless params::isJson();
|
||||
show_series( $config, $request );
|
||||
} else {
|
||||
print q{
|
||||
<link rel="stylesheet" href="css/list_series.css" type="text/css" />
|
||||
<script src="js/list_series.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="css/list-series.css" type="text/css" />
|
||||
<script src="js/list-series.js" type="text/javascript"></script>
|
||||
} unless params::isJson();
|
||||
list_series( $config, $request );
|
||||
}
|
||||
@@ -1262,7 +1262,7 @@ sub check_params {
|
||||
}
|
||||
|
||||
if ( defined $checked->{series_id} ) {
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'edit_series' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'edit-series' );
|
||||
} else {
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'series' );
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ sub check_params {
|
||||
|
||||
my $checked = {};
|
||||
$checked->{error} = '';
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'show_playout' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'show-playout' );
|
||||
|
||||
#numeric values
|
||||
for my $param ( 'project_id', 'studio_id', 'default_studio_id', 'series_id', 'event_id', 'id' )
|
||||
|
||||
@@ -78,9 +78,9 @@ if ( $action eq 'show_dates' ) {
|
||||
<script src="js/jquery.tablesorter.widgets.min.js"></script>
|
||||
<script src="js/jquery.tablesorter.scroller.js"></script>
|
||||
|
||||
<script src="js/studio_timeslots.js" type="text/javascript"></script>
|
||||
<script src="js/studio-timeslots.js" type="text/javascript"></script>
|
||||
<script src="js/datetime.js" type="text/javascript"></script>
|
||||
<link rel="stylesheet" href="css/studio_timeslots.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/studio-timeslots.css" type="text/css" />
|
||||
};
|
||||
}
|
||||
|
||||
@@ -208,7 +208,7 @@ sub showTimeslotSchedule {
|
||||
}
|
||||
|
||||
$params->{loc} =
|
||||
localization::get( $config, { user => $params->{presets}->{user}, file => 'all,studio_timeslots' } );
|
||||
localization::get( $config, { user => $params->{presets}->{user}, file => 'all,studio-timeslots' } );
|
||||
|
||||
my $studio_id = $params->{studio_id};
|
||||
my $project_id = $params->{project_id};
|
||||
@@ -310,7 +310,7 @@ sub showDates {
|
||||
);
|
||||
|
||||
$params->{loc} =
|
||||
localization::get( $config, { user => $params->{presets}->{user}, file => 'all,studio_timeslots' } );
|
||||
localization::get( $config, { user => $params->{presets}->{user}, file => 'all,studio-timeslots' } );
|
||||
my $language = $params->{loc}->{region};
|
||||
|
||||
# translate weekday names to selected language
|
||||
@@ -355,7 +355,7 @@ sub showDates {
|
||||
$params->{$key} = $result->{$key};
|
||||
}
|
||||
|
||||
my $template = template::check( $config, 'studio_timeslot_dates' );
|
||||
my $template = template::check( $config, 'studio-timeslot-dates' );
|
||||
template::process( $config, 'print', $template, $params );
|
||||
}
|
||||
|
||||
@@ -399,7 +399,7 @@ sub check_params {
|
||||
$checked->{studio_id} = -1;
|
||||
}
|
||||
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'studio_timeslots' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'studio-timeslots' );
|
||||
|
||||
for my $param ('frequency') {
|
||||
if ( ( defined $params->{$param} ) && ( $params->{$param} =~ /(\d+)/ ) ) {
|
||||
@@ -17,7 +17,7 @@
|
||||
$('#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';
|
||||
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;
|
||||
@@ -45,7 +45,7 @@
|
||||
</TMPL_LOOP>
|
||||
</select>
|
||||
|
||||
<form action="assign_series.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>" method="post" id="assignments_form">
|
||||
<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>">
|
||||
@@ -9,12 +9,12 @@
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
|
||||
<script src="js/series.js" type="text/javascript"></script>
|
||||
<script src="js/edit_event.js" type="text/javascript"></script>
|
||||
<script src="js/edit-event.js" type="text/javascript"></script>
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
-->
|
||||
<script src="js/jquery.autosize.min.js" type="text/javascript"></script>
|
||||
<script src="js/comment.js" type="text/javascript"></script>
|
||||
<script src="js/page_leave_handler.js" type="text/javascript"></script>
|
||||
<script src="js/page-leave-handler.js" type="text/javascript"></script>
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
var event_id='<TMPL_VAR event_id>';
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_studio_timeslot_schedule>
|
||||
<div><a href="studio_timeslots.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><i class="fas fa-clock"></i> <TMPL_VAR .loc.timeslots></a></div>
|
||||
<div><a href="studio-timeslots.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><i class="fas fa-clock"></i> <TMPL_VAR .loc.timeslots></a></div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_studio>
|
||||
@@ -44,14 +44,14 @@
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.read_schedule>
|
||||
<div><a href="work_time.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><i class="fas fa-clock"></i> <TMPL_VAR .loc.schedule></a></div>
|
||||
<div><a href="work-time.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><i class="fas fa-clock"></i> <TMPL_VAR .loc.schedule></a></div>
|
||||
</TMPL_IF>
|
||||
|
||||
<TMPL_IF .allow.update_image_others>
|
||||
<div><a href="image.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>&search=<TMPL_VAR .presets.user>"><i class="fas fa-images"></i> <TMPL_VAR .loc.images></a></div>
|
||||
</TMPL_IF>
|
||||
|
||||
<div title="<TMPL_VAR .loc.profile>"><a href="user_settings.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><i class="fas fa-cog"></i> <TMPL_VAR .loc.profile></a></div>
|
||||
<div title="<TMPL_VAR .loc.profile>"><a href="user-settings.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><i class="fas fa-cog"></i> <TMPL_VAR .loc.profile></a></div>
|
||||
|
||||
<div title="<TMPL_VAR .loc.help>"><a href="help.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><i class="fas fa-info"></i> <TMPL_VAR .loc.help></a></div>
|
||||
|
||||
|
||||
@@ -12,10 +12,10 @@
|
||||
<script src="js/jquery.autosize.min.js" type="text/javascript"></script>
|
||||
|
||||
<script src="js/series.js" type="text/javascript"></script>
|
||||
<script src="js/edit_event.js" type="text/javascript"></script>
|
||||
<script src="js/edit-event.js" type="text/javascript"></script>
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<script src="js/comment.js" type="text/javascript"></script>
|
||||
<script src="js/page_leave_handler.js" type="text/javascript"></script>
|
||||
<script src="js/page-leave-handler.js" type="text/javascript"></script>
|
||||
<script>
|
||||
var region='<TMPL_VAR loc.region>';
|
||||
var event_id='<TMPL_VAR event_id>';
|
||||
@@ -102,7 +102,7 @@
|
||||
|
||||
<TMPL_UNLESS new_event>
|
||||
<TMPL_IF .allow.upload_audio_recordings>
|
||||
<form style="float:right" action="audio_recordings.cgi">
|
||||
<form style="float:right" action="audio-recordings.cgi">
|
||||
<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>">
|
||||
@@ -134,7 +134,7 @@
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button target="_blank"
|
||||
onclick="load('event_history.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR studio_id>&series_id=<TMPL_VAR series_id>&event_id=<TMPL_VAR event_id>');"
|
||||
onclick="load('event-history.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR studio_id>&series_id=<TMPL_VAR series_id>&event_id=<TMPL_VAR event_id>');"
|
||||
><TMPL_VAR .loc.button_show_changes></button>
|
||||
</TMPL_IF>
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
<script src="js/edit_image.js" type="text/javascript"></script>
|
||||
<script src="js/page_leave_handler.js" type="text/javascript"></script>
|
||||
<script src="js/edit-image.js" type="text/javascript"></script>
|
||||
<script src="js/page-leave-handler.js" type="text/javascript"></script>
|
||||
|
||||
<TMPL_IF no_results>
|
||||
found no image
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button target="_blank"
|
||||
onclick="load('event_history.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR series_id>');"
|
||||
onclick="load('event-history.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&series_id=<TMPL_VAR series_id>');"
|
||||
style="float:left"
|
||||
><TMPL_VAR .loc.button_show_changes></button>
|
||||
</TMPL_IF>
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<script src="js/datetime.js" type="text/javascript"></script>
|
||||
<!-- <script src="js/localization.js" type="text/javascript"></script> -->
|
||||
<link rel="stylesheet" href="css/work_time.css" type="text/css" />
|
||||
<link rel="stylesheet" href="css/work-time.css" type="text/css" />
|
||||
|
||||
<link href="css/jquery-ui-timepicker.css" type="text/css" rel="stylesheet" />
|
||||
<script src="js/jquery-ui-timepicker.js" type="text/javascript"></script>
|
||||
@@ -44,7 +44,7 @@
|
||||
<TMPL_LOOP schedule>
|
||||
<div class="row schedule<TMPL_IF selected> selected</TMPL_IF>">
|
||||
<form method="post"
|
||||
action="work_time.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&schedule_id=<TMPL_VAR schedule_id>"
|
||||
action="work-time.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>&schedule_id=<TMPL_VAR schedule_id>"
|
||||
id="schedule_<TMPL_VAR schedule_id>"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
@@ -165,7 +165,7 @@
|
||||
<!-- add schedule -->
|
||||
<div class="row schedule row<TMPL_IF show_hint_to_add_schedule> active</TMPL_IF>">
|
||||
<form id="schedule_add" method="post"
|
||||
action="work_time.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>"
|
||||
action="work-time.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>"
|
||||
>
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>">
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
@@ -58,7 +58,7 @@
|
||||
if (project_id=='') return ;
|
||||
if (studio_id=='') return ;
|
||||
if (event_id=='') return ;
|
||||
var url= 'event_history.cgi?';
|
||||
var url= 'event-history.cgi?';
|
||||
url+='project_id='+project_id;
|
||||
url+='&studio_id='+studio_id;
|
||||
url+='&series_id='+series_id;
|
||||
@@ -8,7 +8,7 @@ Content-Type: text/html; charset=UTF-8;
|
||||
<meta http-equiv="Content-Script-Type" content="javascript" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<TMPL_IF arefresh_time><meta http-equiv="refresh" content="<TMPL_VAR refresh_time>;url=<TMPL_VAR refresh_url escape=url>"></TMPL_IF>
|
||||
<TMPL_INCLUDE header_head.html>
|
||||
<TMPL_INCLUDE header-head.html>
|
||||
</head>
|
||||
<body>
|
||||
<center>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<script src="js/edit_image.js" type="text/javascript"></script>
|
||||
<script src="js/edit-image.js" type="text/javascript"></script>
|
||||
|
||||
<div class="editor">
|
||||
<TMPL_IF action>
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
|
||||
<link type="text/css" href="css/image.css" rel="stylesheet"/>
|
||||
<script src="js/image.js" type="text/javascript"></script>
|
||||
<script src="js/page_leave_handler.js" type="text/javascript"></script>
|
||||
<script src="js/page-leave-handler.js" type="text/javascript"></script>
|
||||
|
||||
<TMPL_IF .allow.create_image>
|
||||
<script src="js/image_upload.js" type="text/javascript"></script>
|
||||
<script src="js/image-upload.js" type="text/javascript"></script>
|
||||
</TMPL_IF>
|
||||
|
||||
<script>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title><TMPL_VAR .doc.title></title>
|
||||
<script src="js/page_leave_handler.js" type="text/javascript"></script>
|
||||
<script src="js/page-leave-handler.js" type="text/javascript"></script>
|
||||
|
||||
<style>
|
||||
.mailHeader{
|
||||
@@ -62,7 +62,7 @@
|
||||
function( event ) {
|
||||
event.preventDefault();
|
||||
var $form = $( this );
|
||||
var posting = $.post("notify_events.cgi", $form.serialize());
|
||||
var posting = $.post("notify-events.cgi", $form.serialize());
|
||||
posting.done(
|
||||
function( data ) {
|
||||
var content = $( data ).find( "#content" );
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
<TMPL_LOOP schedule>
|
||||
<div class="row schedule" id="schedule_<TMPL_VAR schedule_id>">
|
||||
<form method="post" action="studio_timeslots.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>" id="form_schedule_<TMPL_VAR schedule_id>">
|
||||
<form method="post" action="studio-timeslots.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR .studio_id>" id="form_schedule_<TMPL_VAR schedule_id>">
|
||||
<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="schedule_id" value="<TMPL_VAR schedule_id>" />
|
||||
@@ -76,7 +76,7 @@
|
||||
|
||||
<!-- add schedule-->
|
||||
<div class="row">
|
||||
<form method="post" action="studio_timeslots.cgi">
|
||||
<form method="post" action="studio-timeslots.cgi">
|
||||
<input type="hidden" name="project_id" value="<TMPL_VAR .project_id>" />
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>" />
|
||||
<div class="cell weekday"></div>
|
||||
@@ -40,7 +40,7 @@
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button target="_blank"
|
||||
onclick="load('event_history.cgi?project_id=<TMPL_VAR .project_id>&studio_id=<TMPL_VAR id>');"
|
||||
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>
|
||||
|
||||
@@ -104,7 +104,7 @@ sub show_settings {
|
||||
my $period = $user_settings->{period} || 'month';
|
||||
$params->{ 'period_' . $period } = 1;
|
||||
|
||||
$params->{loc} = localization::get( $config, { language => $language, file => 'user_settings' } );
|
||||
$params->{loc} = localization::get( $config, { language => $language, file => 'user-settings' } );
|
||||
|
||||
for my $color ( @{ $params->{colors} } ) {
|
||||
$color->{title} = $params->{loc}->{ $color->{title} };
|
||||
@@ -191,7 +191,7 @@ sub check_params {
|
||||
|
||||
#template
|
||||
my $template = '';
|
||||
$template = template::check( $config, $params->{template}, 'user_settings' );
|
||||
$template = template::check( $config, $params->{template}, 'user-settings' );
|
||||
$checked->{template} = $template;
|
||||
|
||||
#numeric values
|
||||
@@ -75,7 +75,7 @@ sub show_stats {
|
||||
$params->{permissions} = $permissions;
|
||||
$params->{errors} = $errors;
|
||||
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'user_stats' } );
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'user-stats' } );
|
||||
uac::set_template_permissions( $permissions, $params );
|
||||
template::process( $config, 'print', $params->{template}, $params );
|
||||
}
|
||||
@@ -88,7 +88,7 @@ sub check_params {
|
||||
|
||||
#template
|
||||
my $template = '';
|
||||
$template = template::check( $config, $params->{template}, 'user_stats' );
|
||||
$template = template::check( $config, $params->{template}, 'user-stats' );
|
||||
$checked->{template} = $template;
|
||||
|
||||
#numeric values
|
||||
@@ -251,7 +251,7 @@ sub change_password {
|
||||
uac::set_template_permissions( $permissions, $params );
|
||||
|
||||
#print Dumper($permissions);
|
||||
template::process( $config, 'print', template::check( $config, 'change_password' ), $params );
|
||||
template::process( $config, 'print', template::check( $config, 'change-password' ), $params );
|
||||
}
|
||||
|
||||
sub delete_user {
|
||||
|
||||
@@ -256,7 +256,7 @@ sub show_work_schedule {
|
||||
}
|
||||
|
||||
#print STDERR '<pre>'.Dumper($params).'</pre>';
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'work_time' } );
|
||||
$params->{loc} = localization::get( $config, { user => $params->{presets}->{user}, file => 'work-time' } );
|
||||
template::process( $config, 'print', $params->{template}, $params );
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ sub check_params {
|
||||
$checked->{studio_id} = -1;
|
||||
}
|
||||
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'edit_work_time' );
|
||||
$checked->{template} = template::check( $config, $params->{template}, 'edit-work-time' );
|
||||
|
||||
if ( ( defined $checked->{action} ) && ( $checked->{action} eq 'save_schedule' ) ) {
|
||||
|
||||
Reference in New Issue
Block a user