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 studip/studip!3570
parent 9e948f82
Branches
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@ class Calendar_CalendarController extends AuthenticatedController
$actions->addLink(
_('Veranstaltung auswählen'),
$this->url_for('calendar/calendar/add_courses'),
Icon::create('add'),
Icon::create('seminar'),
['data-dialog' => 'size=medium']
);
}
......
......@@ -18,9 +18,11 @@
<input type="checkbox" name="import_privat" value="1" checked>
<?= _('Öffentliche Termine als "privat" importieren') ?>
</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>
<input required type="file" name="importfile" accept=".ics,.ifb,.iCal,.iFBf">
</label>
</fieldset>
<footer data-dialog-button>
......
......@@ -85,6 +85,9 @@
</label>
<label>
<?= _('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">
<select name="access">
<option value="PUBLIC" <?= $date->access === 'PUBLIC' ? 'selected' : '' ?>>
......@@ -97,9 +100,6 @@
<?= _('Vertraulich') ?>
</option>
</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>
</label>
<label>
......
......@@ -145,7 +145,7 @@
<div class="progresstext">0%</div>
</div>
</div>
<label style="cursor: pointer;">
<label >
<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']) ?>
<?= _("Datei hochladen") ?>
......
......@@ -64,6 +64,7 @@ $cal_step_weeks = [
<?= _('Einzelterminkalender') ?>
</legend>
<div class="hgroup">
<label>
<?= _('Startuhrzeit') ?>
<select name="cal_start" aria-label="<?= _('Startzeit der Tages- und Wochenansicht') ?>" class="size-s">
......@@ -85,6 +86,7 @@ $cal_step_weeks = [
<? endfor; ?>
</select>
</label>
</div>
<label>
<?= _('Zeitintervall der Tagesansicht') ?>
......@@ -151,5 +153,6 @@ $cal_step_weeks = [
<? endif ?>
<input type="hidden" name="view" value="calendar">
<?= Button::createAccept(_('Übernehmen'), ['title' => _('Änderungen übernehmen')]) ?>
<?= Button::createCancel(_('Abbrechen')) ?>
</footer>
</form>
......@@ -20,10 +20,9 @@ class CalendarNavigation extends Navigation
*/
public function __construct()
{
$title = _('Kalender');
$title = _('Planer');
$main_url = URLHelper::getURL('dispatch.php/calendar/calendar', ['defaultDate' => date('Y-m-d')]);
if (!$GLOBALS['perm']->have_perm('admin') && Config::get()->SCHEDULE_ENABLE) {
$title = _('Stundenplan');
$main_url = URLHelper::getURL('dispatch.php/calendar/schedule/index');
}
parent::__construct($title, $main_url);
......
......@@ -425,6 +425,11 @@ class Fullcalendar
locales: [enLocale, deLocale ],
locale: String.locale === 'de-DE' ? 'de' : 'en-gb',
timeFormat: 'H:mm',
slotLabelFormat: {
hour: 'numeric',
minute: '2-digit',
omitZeroMinute: false
},
nowIndicator: true,
timeZone: 'local',
studip_functions: [],
......
......@@ -164,14 +164,14 @@
</section>
<section v-if="repetition_type_value === 'MONTHLY' && repetition_month_type_value === 'dom'">
<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'"
v-model="repetition_dom_value">
</label>
</section>
<section v-if="['MONTHLY', 'YEARLY'].includes(repetition_type_value) && repetition_month_type_value === 'dow'">
<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]"
:with_indeterminate="true"></day-of-week-select>
</label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment