Skip to content

Commit

Permalink
Fixed accessibility issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Mar 22, 2021
1 parent 642fc1d commit af0d470
Show file tree
Hide file tree
Showing 14 changed files with 88 additions and 97 deletions.
4 changes: 4 additions & 0 deletions Lib/lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
'pl.grouperlite.nav.emaillists' => 'Email Lists',
'pl.grouperlite.nav.groups' => 'Groups',

'pl.grouperlite.dashboard.heading.groups' => 'Groups',
'pl.grouperlite.dashboard.heading.email-lists' => 'Email lists',

'pl.grouperlite.title.root' => 'Grouper Collaborations:',
'pl.grouperlite.title.groupinfo' => 'Group configuration and attributes',
'pl.grouperlite.title.groupowner' => 'Groups I manage',
Expand Down Expand Up @@ -120,6 +123,7 @@
'pl.grouperlite.form.template.value.internet2' => 'Internet2',
'pl.grouperlite.form.template.value.incommon' => 'Incommon',
'pl.grouperlite.form.template.is-optin.label' => 'Is optin?',
'pl.grouperlite.form.template.is-moderated.label' => 'Is moderated?',
'pl.grouperlite.form.template.add-wiki.label' => 'Add wiki?',
'pl.grouperlite.form.template.add-project.label' => 'Add project?',
'pl.grouperlite.form.template.value.positive' => 'Yes',
Expand Down
4 changes: 2 additions & 2 deletions View/CoGrouperLites/display.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ echo $this->element('GrouperLite.base-styles');
</div>
</div>
<div class="col-xs-4 col-md-4">
<h6 class="text-center mb-2 mt-2"><i class="fa fa-users"></i>&nbsp; Groups</h6>
<h6 class="text-center mb-2 mt-2"><i class="fa fa-users"></i>&nbsp; <?php echo _txt('pl.grouperlite.dashboard.heading.groups'); ?></h6>
<div class="px-4 d-flex flex-column justify-content-center">
<a class="btn btn-primary" href="<?php print $this->Html->url(
array(
Expand Down Expand Up @@ -88,7 +88,7 @@ echo $this->element('GrouperLite.base-styles');
</div>
</div>
<div class="col-xs-4 col-md-4 border-left">
<h6 class="text-center mb-2 mt-2"><i class="fa fa-envelope"></i>&nbsp; Email Lists</h6>
<h6 class="text-center mb-2 mt-2"><i class="fa fa-envelope"></i>&nbsp; <?php echo _txt('pl.grouperlite.dashboard.heading.email-lists'); ?></h6>
<div class="px-4 d-flex flex-column justify-content-center">
<a class="btn btn-secondary" href="<?php print $this->Html->url(
array(
Expand Down
5 changes: 3 additions & 2 deletions View/Elements/Components/groupattributes.ctp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?php if (count($attr) > 0) : ?>
<table class="table table-striped w-100">
<thead>
<tr>
Expand All @@ -20,8 +21,8 @@
<?php endforeach; ?>
</tbody>
</table>
<?php if (count($attr) < 1) : ?>
<?php else : ?>
<div class="alert alert-info">
<p class="lead mb-0 text-center"><?php echo _txt('pl.grouperlite.attributes.zero-state'); ?></p>
<p class="lead mb-0 text-center"><?php echo _txt('pl.grouperlite.group.info.attributes-zero-state'); ?></p>
</div>
<?php endif; ?>
1 change: 1 addition & 0 deletions View/Elements/Components/search.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
)); ?>
<div id="search-grouper-form">
<div class="d-flex">
<label class="sr-only" for="search"><?php echo _txt('pl.grouperlite.search.tags.text'); ?></label>
<div class="input-group input-group-search">
<?php echo $this->Form->input("search", array('label' => false, 'class' => 'form-control', 'value' => isset($searchcriteria) ? $searchcriteria : '')) ?>
<!--<input type="text" name="search" class="form-control" value="<?php echo isset($searchcriteria) ? $searchcriteria : ''; ?>" /> -->
Expand Down
2 changes: 1 addition & 1 deletion View/Elements/base-styles.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
:root {
--red: #CC3333;
--blue: #1D7AB4;
--green: #22AA22;
--green: #1D871D;
--orange: #faa732;
--teal: #1c6070;
--darkteal: #003f59;
Expand Down
2 changes: 1 addition & 1 deletion View/Elements/pagination.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ $includeGoto = isset($goto) ? $goto : true;

?>

<div class="<?php echo isset($class) ? $class : 'pagination' ?> d-flex justify-content-start align-items-center">
<div class="<?php echo isset($class) ? $class : 'pagination' ?> d-flex justify-content-start align-items-center rounded-0">
<?php if ($includeCounter) : ?>
<div class="pagination-element pagination-counter muted">
<?php
Expand Down
8 changes: 7 additions & 1 deletion View/GrouperGroups/emaillistsmanage.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<?php echo $this->element('Components/navigation-emaillists', array('active' => 'emaillistsmanage', 'create' => true)); ?>
<?php echo $this->element('Components/search', array('active' => 'emaillistsmanaged')); ?>
<div class="">
<table class="table table-striped w-100">
<table class="table table-striped w-100 mb-0">
<thead>
<tr>
<th class="group name"><?php echo _txt('pl.grouperlite.table.name'); ?></th>
Expand Down Expand Up @@ -45,4 +45,10 @@
</tr>
</tbody>
</table>
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</div>
24 changes: 15 additions & 9 deletions View/GrouperGroups/emaillistsmember.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php echo $this->element('Components/search', array('active' => 'emaillistsmember')); ?>

<div class="">
<table class="table table-striped w-100">
<table class="table table-striped w-100 mb-0">
<thead>
<tr>
<th class="group name"><?php echo _txt('pl.grouperlite.table.name'); ?></th>
Expand All @@ -15,13 +15,13 @@
<tbody>
<tr>
<td><?php echo $this->Html->link(
isset($group['name']) ? $group['domain'].':'.$group['name'] : "No Name",
array(
'controller' => 'groupergroups',
'action' => 'emaillistinfo',
'?' => array('groupname' => urlencode($group['name']))
)
) ?></td>
isset($group['name']) ? $group['domain'] . ':' . $group['name'] : "No Name",
array(
'controller' => 'groupergroups',
'action' => 'emaillistinfo',
'?' => array('groupname' => urlencode($group['name']))
)
) ?></td>
<td><?php echo isset($group['description']) ? $group['description'] : _txt('pl.grouperlite.value.descr.zerostate'); ?></td>
<td class="text-center">
<button class="btn btn-raised btn-danger" type="submit">
Expand All @@ -32,4 +32,10 @@
</tr>
</tbody>
</table>
</div>
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</div>
8 changes: 7 additions & 1 deletion View/GrouperGroups/emaillistsoptin.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<?php echo $this->element('Components/search', array('active' => 'emaillistsoptin')); ?>

<div class="">
<table class="table table-striped w-100">
<table class="table table-striped w-100 mb-0">
<thead>
<tr>
<th class="group name"><?php echo _txt('pl.grouperlite.table.name'); ?></th>
Expand Down Expand Up @@ -32,4 +32,10 @@
</tr>
</tbody>
</table>
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</div>
4 changes: 2 additions & 2 deletions View/GrouperGroups/groupfields.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ $PRIVELAGES = array('READ', 'VIEW', 'OPTIN', 'OPTOUT', 'ATTRIBUTE_READ');
'class' => 'form-control',
'id' => 'name'
)); ?>
<small id="nameHelp" class="form-text text-muted">
<small id="nameHelp" class="form-text">
<?php echo _txt('pl.grouperlite.form.group.name.help'); ?>
</small>
</div>
Expand Down Expand Up @@ -155,7 +155,7 @@ $PRIVELAGES = array('READ', 'VIEW', 'OPTIN', 'OPTOUT', 'ATTRIBUTE_READ');
'id' => 'descr',
'rows' => 5
)); ?>
<small id="descrHelp" class="form-text text-muted">
<small id="descrHelp" class="form-text">
<?php echo _txt('pl.grouperlite.form.group.description.help'); ?>
</small>
</div>
Expand Down
20 changes: 7 additions & 13 deletions View/GrouperGroups/groupmember.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'counter' => true,
'class' => 'counter'
)); ?>
<table class="table table-striped w-100">
<table class="table table-striped w-100 mb-0">
<thead>
<tr>
<th class="group name"><?php echo _txt('pl.grouperlite.table.name'); ?></th>
Expand Down Expand Up @@ -39,17 +39,11 @@
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<th colspan="5">
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</th>
</tr>
</tfoot>
</table>
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</div>
20 changes: 7 additions & 13 deletions View/GrouperGroups/groupoptin.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'counter' => true,
'class' => 'counter'
)); ?>
<table class="table table-striped w-100">
<table class="table table-striped w-100 mb-0">
<thead>
<tr>
<th class="group name"><?php echo _txt('pl.grouperlite.table.name'); ?></th>
Expand Down Expand Up @@ -39,17 +39,11 @@
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<th colspan="5">
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</th>
</tr>
</tfoot>
</table>
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</div>
20 changes: 7 additions & 13 deletions View/GrouperGroups/groupowner.ctp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'counter' => true,
'class' => 'counter'
)); ?>
<table class="table table-striped w-100">
<table class="table table-striped w-100 mb-0">
<thead>
<tr>
<th class="group name"><?php echo _txt('pl.grouperlite.table.name'); ?></th>
Expand Down Expand Up @@ -46,17 +46,11 @@
</tr>
<?php endforeach; ?>
</tbody>
<tfoot>
<tr>
<th colspan="5">
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</th>
</tr>
</tfoot>
</table>
<?php print $this->element("pagination", array(
'goto' => false,
'limit' => true,
'numbers' => true,
'counter' => false
)); ?>
</div>
Loading

0 comments on commit af0d470

Please sign in to comment.