Code issue

Permalink
Hi

I'd really appreciate help with the code snippet below. Basically I have a page where users, who have been allocated to one of two attributes (coordinators or leaders) else where in the system, get to view certain information about volunteers/servers in the table columns.

It basically works, but with the following issues for anyone logged in as a coordinator. In the last column they get to view and confirm that they have seen certain 'DBS info'. Clicking on the button performs the correct process, but then the button should disappear and the text 'DBS Completed' be displayed. This doesn't happen and they just get to see the button, which makes them think that it hasn't worked!

Also coordinators should be able to view the buttons/info in the column before, but not be able to click any of them. It's for info purposes only for them. At the moment the cells in that column are blank.

Leaders should also be able to view the DBS status, including using the button.

Any pearls of wisdom appreciated.

<div class="application">
   <div class="span12">
      <div class="alert block-message alert-success">
        <a class="close" href="javascript:;" onClick="$(this).parent().hide()">×</a>
        <p><strong><?php     echo t('Servers');?></strong></p>
        <p><?=t('This section is your hub for helping to process servers. When a server registers they appear here and we\'d ask that a church leader login and click the approve or decline button. The review buttons will only appear for a user registered as a church leader on the Manage Church page. ')?></p>
                  <p><?=t('If the team they requested to serve on has a DBS check requirement, then either yourself or the leader needs to click the DBS Reviewed button to confirm sight of an in date DBS certificate. The DBS Certificate needs to be valid from the 23/05/2012. The server will then get a confirmation email requesting them to read and agree to abide by our Child Protection Policy.')?></p>
        <p><?=t('For teams requiring DBS checks you need to have carried out the DBS Reviewed before being able to do the Elders Approval.')?></p>
        <p><?=t('If you have any comments or concerns about anyone listed below then please contact the servers team at <a href="mailto:servers@catalystnetwork.org">servers@catalystnetwork.org</a>. ')?></p>
        <div class="alert-actions">
        </div>
      </div>
   </div>
   <br/>
   <table class="tablesorter tablesorter-bootstrap table table-bordered table-striped"><colgroup><col style="width: 20.8%;"><col style="width: 20.8%;"><col style="width: 20.8%;"><col style="width: 20.8%;"></colgroup>

2 Attachments