create-events: localization
This commit is contained in:
@@ -27,4 +27,3 @@ AddOutputFilterByType DEFLATE text/css
|
||||
AddOutputFilterByType DEFLATE text/javascript
|
||||
AddOutputFilterByType DEFLATE text/html
|
||||
AddOutputFilterByType DEFLATE text/plain
|
||||
|
||||
|
||||
@@ -86,6 +86,8 @@ sub show_events {
|
||||
$params->{events} = $events;
|
||||
$params->{total} = scalar(@$events);
|
||||
$params->{action} = 'show';
|
||||
$params->{loc} =
|
||||
localization::get( $config, { user => $params->{presets}->{user}, file => 'create-events' } );
|
||||
template::process( $config, 'print', $params->{template}, $params );
|
||||
|
||||
}
|
||||
@@ -114,6 +116,8 @@ sub create_events {
|
||||
$params->{events} = $events;
|
||||
$params->{total} = scalar(@$events);
|
||||
$params->{action} = 'created';
|
||||
$params->{loc} =
|
||||
localization::get( $config, { user => $params->{presets}->{user}, file => 'create-events' } );
|
||||
template::process( $config, 'print', $params->{template}, $params );
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
msgid "title"
|
||||
msgstr "Geplante Sendungen anlegen"
|
||||
|
||||
msgid "create_till"
|
||||
msgstr "Zeitraum"
|
||||
|
||||
msgid "show_button"
|
||||
msgstr "Vorschau"
|
||||
|
||||
msgid "create_button"
|
||||
msgstr "Anlegen"
|
||||
|
||||
msgid "today"
|
||||
msgstr "Heute"
|
||||
|
||||
msgid "1week"
|
||||
msgstr "1 Woche"
|
||||
|
||||
msgid "2week"
|
||||
msgstr "2 Wochen"
|
||||
|
||||
msgid "3week"
|
||||
msgstr "3 Wochen"
|
||||
|
||||
msgid "4week"
|
||||
msgstr "4 Wochen"
|
||||
|
||||
msgid "8week"
|
||||
msgstr "8 Wochen"
|
||||
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
msgid "title"
|
||||
msgstr "Create events from schedule"
|
||||
|
||||
msgid "create_till"
|
||||
msgstr "Create Until"
|
||||
|
||||
msgid "show_button"
|
||||
msgstr "Preview"
|
||||
|
||||
msgid "create_button"
|
||||
msgstr "Create Events"
|
||||
|
||||
msgid "today"
|
||||
msgstr "Today"
|
||||
|
||||
msgid "1week"
|
||||
msgstr "1 week"
|
||||
|
||||
msgid "2week"
|
||||
msgstr "2 weeks"
|
||||
|
||||
msgid "3week"
|
||||
msgstr "3 weeks"
|
||||
|
||||
msgid "4week"
|
||||
msgstr "4 weeks"
|
||||
|
||||
msgid "8week"
|
||||
msgstr "8 weeks"
|
||||
|
||||
|
||||
@@ -39,3 +39,4 @@ msgstr "image"
|
||||
|
||||
msgid "label_stream"
|
||||
msgstr "stream"
|
||||
|
||||
|
||||
@@ -13,29 +13,29 @@ $(document).ready(function() {
|
||||
<script>
|
||||
var series_id=0;
|
||||
</script>
|
||||
<h1>create events from schedule</h1>
|
||||
<h1><TMPL_VAR loc.title></h1>
|
||||
<div class="panel">
|
||||
<form id="create_event_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>"> schedule events for
|
||||
<input type="hidden" id="select_series_id" name="series_id" value="<TMPL_VAR .series_id>"> schedule events for
|
||||
<input type="hidden" name="studio_id" value="<TMPL_VAR .studio_id>">
|
||||
<input type="hidden" id="select_series_id" name="series_id" value="<TMPL_VAR .series_id>">
|
||||
<TMPL_VAR loc.create_till>
|
||||
<select name="duration">
|
||||
<option value="1" <TMPL_VAR duration1>>today</option>
|
||||
<option value="7" <TMPL_VAR duration7>>1 week</option>
|
||||
<option value="14" <TMPL_VAR duration14>>2 weeks</option>
|
||||
<option value="21" <TMPL_VAR duration21>>3 weeks</option>
|
||||
<option value="28" <TMPL_VAR duration28>>4 weeks</option>
|
||||
<option value="56" <TMPL_VAR duration56>>8 weeks</option>
|
||||
<option value="1" <TMPL_VAR duration1>><TMPL_VAR loc.today></option>
|
||||
<option value="7" <TMPL_VAR duration7>><TMPL_VAR loc.1week></option>
|
||||
<option value="14" <TMPL_VAR duration14>><TMPL_VAR loc.2week></option>
|
||||
<option value="21" <TMPL_VAR duration21>><TMPL_VAR loc.3week></option>
|
||||
<option value="28" <TMPL_VAR duration28>><TMPL_VAR loc.4week></option>
|
||||
<option value="56" <TMPL_VAR duration56>><TMPL_VAR loc.8week></option>
|
||||
</select>
|
||||
|
||||
<div id="seriesContainer"></div>
|
||||
|
||||
<TMPL_IF .allow.read_event>
|
||||
<button target="_blank" type='submit' name="action" value="show_events">Show schedule</button>
|
||||
<button target="_blank" type='submit' name="action" value="show_events"><TMPL_VAR loc.show_button></button>
|
||||
</TMPL_IF>
|
||||
<TMPL_IF .allow.assign_series_events>
|
||||
<button target="_blank" type='submit' name="action"
|
||||
value="create_events">Create events</button>
|
||||
<button target="_blank" type='submit' name="action" value="create_events"><TMPL_VAR loc.create_button></button>
|
||||
</TMPL_IF>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user