Commit c8305540 authored by Penom Nom's avatar Penom Nom
Browse files

Show project modification buttons for the administrator of a project. Only the...

Show project modification buttons for the administrator of a project. Only the addproject button is made unavailable.
parent 8b6da72e
......@@ -73,7 +73,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{/if}
{/foreach}
</tbody>
{if $is_ng6_admin}
{if $is_at_least_admin_of_1_project && $login_user}
<tfoot>
<tr>
<th align="left" colspan="4">
......@@ -87,7 +87,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<button id="unpublish_project" type="button" class="btn multiplep-selection-btn btn-small"><i class="icon-thumbs-down"></i> unpublish</button>
</div>
<div class="btn-group">
<button id="add_project" type="button" class="btn nop-selection-btn btn-small"><i class="icon-plus"></i> add</button>
{if $is_ng6_admin}
<button id="add_project" type="button" class="btn nop-selection-btn btn-small"><i class="icon-plus"></i> add</button>
{else}
<button id="add_project" type="button" class="btn btn-small" disabled><i class="icon-plus"></i> add</button>
{/if}
<button id="delete_project" type="button" class="btn multiplep-selection-btn btn-small"><i class="icon-minus"></i> delete</button>
</div>
</th>
......
......@@ -119,12 +119,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<tbody>
{foreach from=$project_users key=c_user_id item=user_values}
{if $user_values.id == $user_id}
{assign var=current_user_values value=$user_values}
{/if}
{* highlight user personnal line *}
{assign var="emphasis" value=""}
{if $user_values.id==$user_id}
{assign var=current_user_values value=$user_values}
{assign var="emphasis" value="tx-nG6-pi1-line-emphasis"}
{/if}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment