Skip to content
Snippets Groups Projects
Commit b461f2bb authored by Moritz Strohm's avatar Moritz Strohm
Browse files

Polishing-TIC 3692, closes #3692

Closes #3692

Merge request !3570
parent 9e948f82
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,7 @@ class Calendar_CalendarController extends AuthenticatedController ...@@ -69,7 +69,7 @@ class Calendar_CalendarController extends AuthenticatedController
$actions->addLink( $actions->addLink(
_('Veranstaltung auswählen'), _('Veranstaltung auswählen'),
$this->url_for('calendar/calendar/add_courses'), $this->url_for('calendar/calendar/add_courses'),
Icon::create('add'), Icon::create('seminar'),
['data-dialog' => 'size=medium'] ['data-dialog' => 'size=medium']
); );
} }
......
...@@ -18,9 +18,11 @@ ...@@ -18,9 +18,11 @@
<input type="checkbox" name="import_privat" value="1" checked> <input type="checkbox" name="import_privat" value="1" checked>
<?= _('Öffentliche Termine als "privat" importieren') ?> <?= _('Öffentliche Termine als "privat" importieren') ?>
</label> </label>
<label> <label style="cursor: pointer;">
<input required type="file" id="fileupload" name="importfile" accept=".ics,.ifb,.iCal,.iFBf"
style="display: none">
<?= Icon::create('upload', Icon::ROLE_CLICKABLE, ['title' => _('Datei hochladen'), 'class' => 'text-bottom']) ?>
<span class="required"><?= _('Datei zum Importieren wählen') ?></span> <span class="required"><?= _('Datei zum Importieren wählen') ?></span>
<input required type="file" name="importfile" accept=".ics,.ifb,.iCal,.iFBf">
</label> </label>
</fieldset> </fieldset>
<footer data-dialog-button> <footer data-dialog-button>
......
...@@ -85,6 +85,9 @@ ...@@ -85,6 +85,9 @@
</label> </label>
<label> <label>
<?= _('Zugriff') ?> <?= _('Zugriff') ?>
<?= tooltipIcon(
_('Öffentliche Termine sind systemweit sichtbar. Private Termine sind für Personen, denen der Kalender freigegeben wurde, sichtbar. Vertrauliche Termine sind hingegen nur für einen selbst sichtbar.')
) ?>
<div class="flex-row"> <div class="flex-row">
<select name="access"> <select name="access">
<option value="PUBLIC" <?= $date->access === 'PUBLIC' ? 'selected' : '' ?>> <option value="PUBLIC" <?= $date->access === 'PUBLIC' ? 'selected' : '' ?>>
...@@ -97,9 +100,6 @@ ...@@ -97,9 +100,6 @@
<?= _('Vertraulich') ?> <?= _('Vertraulich') ?>
</option> </option>
</select> </select>
<?= tooltipIcon(
_('Öffentliche Termine sind systemweit sichtbar. Private Termine sind für Personen, denen der Kalender freigegeben wurde, sichtbar. Vertrauliche Termine sind hingegen nur für einen selbst sichtbar.')
) ?>
</div> </div>
</label> </label>
<label> <label>
......
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
<div class="progresstext">0%</div> <div class="progresstext">0%</div>
</div> </div>
</div> </div>
<label style="cursor: pointer;"> <label >
<input type="file" id="fileupload" multiple onChange="STUDIP.Messages.upload_from_input(this);" style="display: none;"> <input type="file" id="fileupload" multiple onChange="STUDIP.Messages.upload_from_input(this);" style="display: none;">
<?= Icon::create('upload')->asImg(['title' => _('Datei hochladen'), 'class' => 'text-bottom']) ?> <?= Icon::create('upload')->asImg(['title' => _('Datei hochladen'), 'class' => 'text-bottom']) ?>
<?= _("Datei hochladen") ?> <?= _("Datei hochladen") ?>
......
...@@ -64,6 +64,7 @@ $cal_step_weeks = [ ...@@ -64,6 +64,7 @@ $cal_step_weeks = [
<?= _('Einzelterminkalender') ?> <?= _('Einzelterminkalender') ?>
</legend> </legend>
<div class="hgroup">
<label> <label>
<?= _('Startuhrzeit') ?> <?= _('Startuhrzeit') ?>
<select name="cal_start" aria-label="<?= _('Startzeit der Tages- und Wochenansicht') ?>" class="size-s"> <select name="cal_start" aria-label="<?= _('Startzeit der Tages- und Wochenansicht') ?>" class="size-s">
...@@ -85,6 +86,7 @@ $cal_step_weeks = [ ...@@ -85,6 +86,7 @@ $cal_step_weeks = [
<? endfor; ?> <? endfor; ?>
</select> </select>
</label> </label>
</div>
<label> <label>
<?= _('Zeitintervall der Tagesansicht') ?> <?= _('Zeitintervall der Tagesansicht') ?>
...@@ -151,5 +153,6 @@ $cal_step_weeks = [ ...@@ -151,5 +153,6 @@ $cal_step_weeks = [
<? endif ?> <? endif ?>
<input type="hidden" name="view" value="calendar"> <input type="hidden" name="view" value="calendar">
<?= Button::createAccept(_('Übernehmen'), ['title' => _('Änderungen übernehmen')]) ?> <?= Button::createAccept(_('Übernehmen'), ['title' => _('Änderungen übernehmen')]) ?>
<?= Button::createCancel(_('Abbrechen')) ?>
</footer> </footer>
</form> </form>
...@@ -20,10 +20,9 @@ class CalendarNavigation extends Navigation ...@@ -20,10 +20,9 @@ class CalendarNavigation extends Navigation
*/ */
public function __construct() public function __construct()
{ {
$title = _('Kalender'); $title = _('Planer');
$main_url = URLHelper::getURL('dispatch.php/calendar/calendar', ['defaultDate' => date('Y-m-d')]); $main_url = URLHelper::getURL('dispatch.php/calendar/calendar', ['defaultDate' => date('Y-m-d')]);
if (!$GLOBALS['perm']->have_perm('admin') && Config::get()->SCHEDULE_ENABLE) { if (!$GLOBALS['perm']->have_perm('admin') && Config::get()->SCHEDULE_ENABLE) {
$title = _('Stundenplan');
$main_url = URLHelper::getURL('dispatch.php/calendar/schedule/index'); $main_url = URLHelper::getURL('dispatch.php/calendar/schedule/index');
} }
parent::__construct($title, $main_url); parent::__construct($title, $main_url);
......
...@@ -425,6 +425,11 @@ class Fullcalendar ...@@ -425,6 +425,11 @@ class Fullcalendar
locales: [enLocale, deLocale ], locales: [enLocale, deLocale ],
locale: String.locale === 'de-DE' ? 'de' : 'en-gb', locale: String.locale === 'de-DE' ? 'de' : 'en-gb',
timeFormat: 'H:mm', timeFormat: 'H:mm',
slotLabelFormat: {
hour: 'numeric',
minute: '2-digit',
omitZeroMinute: false
},
nowIndicator: true, nowIndicator: true,
timeZone: 'local', timeZone: 'local',
studip_functions: [], studip_functions: [],
......
...@@ -164,14 +164,14 @@ ...@@ -164,14 +164,14 @@
</section> </section>
<section v-if="repetition_type_value === 'MONTHLY' && repetition_month_type_value === 'dom'"> <section v-if="repetition_type_value === 'MONTHLY' && repetition_month_type_value === 'dom'">
<label> <label>
{{ $gettext('Wiederholung am einem bestimmten Tag des Monats:') }} {{ $gettext('Wiederholung am einem bestimmten Tag des Monats') }}
<input type="number" min="1" :name="name + '_dom'" <input type="number" min="1" :name="name + '_dom'"
v-model="repetition_dom_value"> v-model="repetition_dom_value">
</label> </label>
</section> </section>
<section v-if="['MONTHLY', 'YEARLY'].includes(repetition_type_value) && repetition_month_type_value === 'dow'"> <section v-if="['MONTHLY', 'YEARLY'].includes(repetition_type_value) && repetition_month_type_value === 'dow'">
<label> <label>
{{ $gettext('Wiederholung an einem bestimmten Wochentag:') }} {{ $gettext('Wiederholung an einem bestimmten Wochentag') }}
<day-of-week-select :name="name + '_dow'" v-model="repetition_dow_value[0]" <day-of-week-select :name="name + '_dow'" v-model="repetition_dow_value[0]"
:with_indeterminate="true"></day-of-week-select> :with_indeterminate="true"></day-of-week-select>
</label> </label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment