Convert the permissions_form to use the jquery ui supplied sprites instead of gallery supplied icons.
This commit is contained in:
parent
ebfd95a8c6
commit
ce509f1708
Binary file not shown.
Before Width: | Height: | Size: 463 B |
Binary file not shown.
Before Width: | Height: | Size: 601 B |
Binary file not shown.
Before Width: | Height: | Size: 565 B |
Binary file not shown.
Before Width: | Height: | Size: 699 B |
@ -20,45 +20,33 @@
|
||||
|
||||
<? if ($lock): ?>
|
||||
<td class="g-denied">
|
||||
<img src="<?= url::file(gallery::find_file("images", "ico-denied.png")) ?>"
|
||||
title="<?= t('denied and locked through parent album')->for_html_attr() ?>"
|
||||
alt="<?= t('denied icon')->for_html_attr() ?>" />
|
||||
<a href="javascript:show(<?= $lock->id ?>)" title="<?= t('click to go to parent album')->for_html_attr() ?>">
|
||||
<img src="<?= url::file(gallery::find_file("images", "ico-lock.png")) ?>" alt="<?= t('locked icon')->for_html_attr() ?>" />
|
||||
</a>
|
||||
<a href="javascript:show(<?= $lock->id ?>)" title="<?= t('denied and locked through parent album, click to go to parent album')->for_html_attr() ?>" class="ui-icon ui-icon-locked" />
|
||||
</td>
|
||||
<? else: ?>
|
||||
<? if ($intent === access::INHERIT): ?>
|
||||
<? if ($allowed): ?>
|
||||
<td class="g-resource-access">
|
||||
<a href="javascript:set('allow',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)" title="<?= t('allowed through parent album, click to deny')->for_html_attr() ?>" class="ui-icon ui-icon-check">
|
||||
</a>
|
||||
<td class="g-allowed">
|
||||
<a href="javascript:set('allow',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)" title="<?= t('allowed through parent album, click to deny')->for_html_attr() ?>" class="ui-icon ui-icon-check" />
|
||||
</td>
|
||||
<? else: ?>
|
||||
<td class="g-resource-denied">
|
||||
<td class="g-denied">
|
||||
<a href="javascript:set('deny',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
|
||||
title="<?= t('denied through parent album')->for_html_attr() ?>"
|
||||
class="ui-state-disabled ui-icon ui-icon-cancel"
|
||||
onclick="javascript:return false;">
|
||||
</a>
|
||||
title="<?= t('denied through parent album, click to allow')->for_html_attr() ?>"
|
||||
class="ui-icon ui-icon-cancel" />
|
||||
</td>
|
||||
<? endif ?>
|
||||
|
||||
<? elseif ($intent === access::DENY): ?>
|
||||
<td class="g-resource-denied">
|
||||
<td class="g-denied">
|
||||
<a href="javascript:set('allow',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
|
||||
title="<?= t('denied, click to allow')->for_html_attr() ?>"
|
||||
class="ui-icon ui-icon-cancel">
|
||||
</a>
|
||||
class="ui-icon ui-icon-cancel" />
|
||||
</td>
|
||||
<? elseif ($intent === access::ALLOW): ?>
|
||||
<td class="g-resource-access">
|
||||
<td class="g-allowed">
|
||||
<a href="javascript:set('deny',<?= $group->id ?>,<?= $permission->id ?>,<?= $item->id ?>)"
|
||||
class="ui-icon ui-icon-check"
|
||||
title="<?= t('allowed, click to deny')->for_html_attr() ?>">
|
||||
|
||||
</a>
|
||||
<span>
|
||||
title="<?= t('allowed, click to deny')->for_html_attr() ?>" />
|
||||
</td>
|
||||
<? endif ?>
|
||||
<? endif ?>
|
||||
|
@ -25,8 +25,8 @@ html {
|
||||
|
||||
body, html {
|
||||
background-color: #<?= $bgColorDefault ?>;
|
||||
font-family: Lucida Grande, Lucida Sans, Arial, sans-serif; /* ffDefault */
|
||||
font-size: 13px/1.231; /* fsDefault/ gallery_line_height */
|
||||
font-family: <?= urldecode($ffDefault) ?>;
|
||||
font-size: 13px/1.231; /* gallery_line_height */
|
||||
}
|
||||
|
||||
p {
|
||||
@ -414,12 +414,28 @@ td {
|
||||
}
|
||||
|
||||
/* Permissions ~~~~~~~~~~~~~~~~~~~~~~~~~~ */
|
||||
.g-resource-access a {
|
||||
#g-edit-permissions-form td {
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
#g-edit-permissions-form fieldset {
|
||||
border: 1px solid #<?= $borderColorHighlight ?>;
|
||||
}
|
||||
|
||||
#g-permissions .g-denied {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#g-permissions .g-allowed {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
.g-allowed a {
|
||||
background-image: url("themeroller/images/ui-icons_<?= $iconColorHighlight ?>_256x240.png") !important;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.g-resource-denied a {
|
||||
.g-denied a {
|
||||
background-image: url("themeroller/images/ui-icons_<?= $iconColorError ?>_256x240.png") !important;
|
||||
margin: auto;
|
||||
}
|
||||
@ -686,7 +702,6 @@ li.g-error select {
|
||||
}
|
||||
|
||||
.g-error,
|
||||
.g-denied,
|
||||
tr.g-error td.g-error,
|
||||
#g-add-photos-status .g-error {
|
||||
background: #<?= $borderColorError ?> url('../images/ico-error.png') no-repeat .4em 50%;
|
||||
@ -698,7 +713,6 @@ tr.g-error td.g-error,
|
||||
}
|
||||
|
||||
.g-success,
|
||||
.g-allowed,
|
||||
#g-add-photos-status .g-success {
|
||||
background: #<?= $bgColorContent ?> url('../images/ico-success.png') no-repeat .4em 50%;
|
||||
}
|
||||
|
Reference in New Issue
Block a user