Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion db_objects/roster_role.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function printFieldValue($name, $value=NULL)
{
switch ($name) {
case 'details':
echo '<a class="pull-right" target="publicrole" href="'.BASE_URL.'/public/?view=display_role_description&role='.$this->id.'"><i class="icon-share"></i>View in public area</a>';
echo '<a class="pull-right" target="publicrole" href="'.BASE_URL.'/public/?view=_roster_role_description&role='.$this->id.'"><i class="icon-share"></i>View in public area</a>';
echo '<div class="text">'.$this->getValue($name).'</div>';
break;
case 'volunteer_group':
Expand Down
4 changes: 2 additions & 2 deletions db_objects/roster_view.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ private function _printOutputLabel($member, $service)
{
if ($member['role_id']) {
if (ifdef('PUBLIC_AREA_ENABLED', 1)) {
echo '<a class="med-popup" href="'.BASE_URL.'/public/?view=display_role_description&role='.(int)$member['role_id'].'">';
echo '<a class="med-popup" href="'.BASE_URL.'/public/?view=_roster_role_description&role='.(int)$member['role_id'].'">';
} else {
echo '<a class="med-popup" href="'.BASE_URL.'?view=rosters__define_roster_roles&roster_roleid='.(int)$member['role_id'].'">';
}
Expand Down Expand Up @@ -944,7 +944,7 @@ function _printRoleHeaders($editing, $public)
<?php
if ($details['role_id']) {
if ($public) {
echo '<a class="med-popup" href="'.BASE_URL.'/public/?view=display_role_description&role='.(int)$details['role_id'].'">';
echo '<a class="med-popup" href="?view=_roster_role_description&role='.(int)$details['role_id'].'">';
} else {
echo '<a class="med-popup" href="'.BASE_URL.'?view=rosters__define_roster_roles&roster_roleid='.(int)$details['role_id'].'">';
}
Expand Down
2 changes: 2 additions & 0 deletions members/views/view_0_roster_role_description.class.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
require_once dirname(__FILE__).'/../../public/views/view_0_roster_role_description.class.php';
2 changes: 1 addition & 1 deletion public/templates/roster_ical.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
DESCRIPTION:Roster assignment: <?php
if ($alloc['cong'] )
echo $alloc['title'] . ', ' . $alloc['cong'] . ', ' . SYSTEM_NAME;
?>\n\n<?php echo 'Role description: ' . BASE_URL . '/public/?view=display_role_description&role=' . $alloc['id'] . ' ';
?>\n\n<?php echo 'Role description: ' . BASE_URL . '/public/?view=_roster_role_description&role=' . $alloc['id'] . ' ';
?> \n\nNote that start/end time is approximate.
END:VEVENT
<?php
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
class View_Display_Role_Description extends View
class View__Roster_Role_Description extends View
{
var $_role = null;

Expand All @@ -15,15 +15,14 @@ function getTitle()
if ($this->_role) {
return 'Roster Role: '.$this->_role->getFormattedValue('congregationid').' '.$this->_role->getValue('title');
} else {
return 'Display Role Description';
return 'Roster Roles';
}
}

function printView()
{
if ($this->_role) {
?>
<a class="soft pull-right no-print" href="<?php echo BASE_URL;?>?view=_edit_roster_role&roster_roleid=<?php echo $this->_role->id; ?>"><i class="icon-wrench"></i>Edit</a>
<?php
echo $this->_role->getValue('details');
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
class View_Display_Roster extends View
class View_Rosters extends View
{
var $_roster_view = null;

Expand All @@ -22,7 +22,7 @@ function getTitle()
if ($this->_roster_view) {
return $this->_roster_view->getValue('name');
} else {
return 'Display Roster';
return 'Roster';
}
}

Expand Down
2 changes: 1 addition & 1 deletion views/view_7_rosters__3_define_roster_roles.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function printView()
Roster roles are often congregation-specific; for example each congregation probably has its own separate "bible reader" role.
Other roles may be congregation-independent, such as cleaning or gardening. ');
if (PUBLIC_AREA_ENABLED) {
printf(_('Roster role descriptions can be viewed in the %s.'), '<a href="'.BASE_URL.'/public/?view=display_role_description">'._('public area of Jethro').'</a>');
printf(_('Roster role descriptions can be viewed in the %s.'), '<a href="'.BASE_URL.'/public/?view=_roster_role_description">'._('public area of Jethro').'</a>');
}
?>
</p>
Expand Down