Merge remote-tracking branch 'calcms/master'

* create-events.html: add one day period
* add create events to main menu
This commit is contained in:
Milan
2023-03-19 21:51:18 +01:00
5 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="20" width="20" fill="white"><path d="M4.5 18q-.625 0-1.062-.438Q3 17.125 3 16.5v-11q0-.604.448-1.052Q3.896 4 4.5 4H6V2h1.5v2h5V2H14v2h1.5q.604 0 1.052.448Q17 4.896 17 5.5V10h-1.5V9h-11v7.5h5V18Zm13.271-4L16 12.229l.646-.667q.229-.229.531-.229.302 0 .531.229l.709.709q.229.229.229.531 0 .302-.229.531ZM11 19v-1.771l4.417-4.417 1.771 1.771L12.771 19ZM4.5 7.5h11v-2h-11Zm0 0v-2 2Z"/></svg>

After

Width:  |  Height:  |  Size: 434 B

View File

@@ -61,3 +61,6 @@ msgstr "Vorschau"
msgid "user-stats"
msgstr "Nutzeraktivität"
msgid "create-events"
msgstr "Sendungen anlegen"

View File

@@ -61,3 +61,6 @@ msgstr "Preview"
msgid "user-stats"
msgstr "User Stats"
msgid "create-events"
msgstr "Create Events"

View File

@@ -11,8 +11,9 @@
<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 by
name="studio_id" value="<TMPL_VAR .studio_id>"> schedule events for
<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>

View File

@@ -17,6 +17,10 @@
<a href="#"><img src="image/more.svg">&nbsp;More...&nbsp;</a>
<div class="dropdown-content">
<TMPL_IF allow.create_event_from_schedule>
<div><a href="create-events.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><img src="image/create-events.svg">&nbsp;<TMPL_VAR .loc.create-events></a></div>
</TMPL_IF>
<TMPL_IF .allow.read_playout>
<div><a href="show-playout.cgi?project_id=<TMPL_VAR project_id>&studio_id=<TMPL_VAR default_studio_id>"><img src="image/play-circle.svg">&nbsp;<TMPL_VAR .loc.playout></a></div>
</TMPL_IF>