Skip to content

Commit 791a182

Browse files
authored
Merge pull request #33265 from nextcloud/fix/carl/login-boxes
Redesign guest pages for better accessibility
2 parents 5edab67 + 3fa6ee3 commit 791a182

47 files changed

Lines changed: 515 additions & 611 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
1-
<div class="update">
2-
<p class="message"><?php p($l->t('There was an error updating your attendance status.'));?></p>
3-
<p class="message"><?php p($l->t('Please contact the organizer directly.'));?></p>
4-
<?php if (isset($_['organizer'])): ?>
5-
<p class="message"><a href="<?php p($_['organizer']) ?>"><?php p(substr($_['organizer'], 7)) ?></a></p>
6-
<?php endif; ?>
1+
<?php
2+
// SPDX-FileCopyrightText: 2018 Georg Ehrke <oc.list@georgehrke.com>
3+
// SPDX-FileCopyrightText: 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
4+
// SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
5+
// SPDX-License-Identifier: AGPL-3.0-or-later
6+
?>
7+
<div class="guest-box">
8+
<div class="notecard error">
9+
<p><?php p($l->t('There was an error updating your attendance status.'));?></p>
10+
<p><?php p($l->t('Please contact the organizer directly.'));?></p>
11+
<?php if (isset($_['organizer'])): ?>
12+
<p><a href="<?php p($_['organizer']) ?>"><?php p(substr($_['organizer'], 7)) ?></a></p>
13+
<?php endif; ?>
14+
</div>
715
</div>

apps/dav/templates/schedule-response-options.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
2-
style('dav', 'schedule-response');
2+
// SPDX-FileCopyrightText: 2018 Georg Ehrke <oc.list@georgehrke.com>
3+
// SPDX-License-Identifier: AGPL-3.0-or-later
4+
\OCP\Util::addStyle('dav', 'schedule-response');
35
?>
46

5-
<div class="update">
7+
<div class="guest-box">
68
<form action="" method="post">
79
<fieldset id="partStat">
810
<h2><?php p($l->t('Are you accepting the invitation?')); ?></h2>
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
<div class="update" style="justify-content: space-around; display: flex;">
2-
<span class="icon icon-checkmark-white"></span>
1+
<?php
2+
// SPDX-FileCopyrightText: 2020 Christoph Wurst <christoph@winzerhof-wurst.at>
3+
// SPDX-FileCopyrightText: 2022 Carl Schwan <carl@carlschwan.eu>
4+
// SPDX-License-Identifier: AGPL-3.0-or-later
5+
?>
6+
<div class="guest-box">
7+
<div class="icon icon-checkmark"></div>
38
<p class="message"><?php p($l->t('Your attendance was updated successfully.'));?></p>
49
</div>

core/Controller/LoginController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public function showLoginForm(string $user = null, string $redirect_url = null):
205205
];
206206

207207
$this->initialStateService->provideInitialState('core', 'countAlternativeLogins', count($parameters['alt_login']));
208+
$this->initialStateService->provideInitialState('core', 'alternativeLogins', $parameters['alt_login']);
208209

209210
return new TemplateResponse(
210211
$this->appName,

0 commit comments

Comments
 (0)