-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,27 @@ | ||
<?php if (count($attr) > 0) : ?> | ||
<table class="table table-striped w-100"> | ||
<thead> | ||
<table class="table table-striped w-100"> | ||
<thead> | ||
<tr> | ||
<th class="attr"><?php echo _txt('pl.grouperlite.table.attribute-name'); ?></th> | ||
<th class="attr definition"><?php echo _txt('pl.grouperlite.table.attribute-description'); ?></th> | ||
<th class="attr action"><?php echo _txt('pl.grouperlite.table.action'); ?></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php foreach ($attributes as $attr) : ?> | ||
<tr> | ||
<th class="attr"><?php echo _txt('pl.grouperlite.table.attribute-name'); ?></th> | ||
<th class="attr definition"><?php echo _txt('pl.grouperlite.table.attribute-description'); ?></th> | ||
<th class="attr action"><?php echo _txt('pl.grouperlite.table.action'); ?></th> | ||
<td><?php echo $attr['attributeDefNameName']; ?></td> | ||
<td><?php echo $attr['attributeDefName'] ?></td> | ||
<td> | ||
<a href="<?php echo $baseUrl . $attr['attributeDefNameId']; ?>" class="btn btn-grouper btn btn-primary btn btn-raised btn btn-block" target="_blank" role="button"> | ||
<?php echo _txt('pl.grouperlite.action.view'); ?> <i class="fa fa-external-link"></i> | ||
</a> | ||
</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<?php foreach ($attributes as $attr) : ?> | ||
<tr> | ||
<td><?php echo $attr['attributeDefNameName']; ?></td> | ||
<td><?php echo $attr['attributeDefName'] ?></td> | ||
<td> | ||
<a href="<?php echo $baseUrl . $attr['attributeDefNameId']; ?>" class="btn btn-grouper btn btn-primary btn btn-raised btn btn-block" target="_blank" role="button"> | ||
<?php echo _txt('pl.grouperlite.action.view'); ?> <i class="fa fa-external-link"></i> | ||
</a> | ||
</td> | ||
</tr> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
<?php endif; ?> | ||
<?php endforeach; ?> | ||
</tbody> | ||
</table> | ||
<?php if (count($attributes) < 1) : ?> | ||
<div class="alert alert-info"> | ||
<p class="lead mb-0 text-center"><?php echo _txt('pl.grouperlite.group.info.attributes-zero-state'); ?></p> | ||
<p class="lead mb-0 text-center"><?php echo _txt('pl.grouperlite.attributes.zero-state'); ?></p> | ||
</div> | ||
<?php endif; ?> |