mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 06:10:36 -04:00
Allow editing of projects
This commit is contained in:
parent
e21f411191
commit
b2191d1219
16 changed files with 191 additions and 75 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
$includeTitle = $includeTitle ?? true;
|
||||
$includeStatus = $includeStatus ?? true;
|
||||
$showEditButton = $showEditButton ?? false;
|
||||
?>
|
||||
<table class="data-table">
|
||||
<caption aria-hidden="true">Scroll right →</caption>
|
||||
|
@ -22,6 +23,9 @@ $includeStatus = $includeStatus ?? true;
|
|||
<? } ?>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<? if($showEditButton){ ?>
|
||||
<th></th>
|
||||
<? } ?>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
@ -65,6 +69,11 @@ $includeStatus = $includeStatus ?? true;
|
|||
<a href="<?= Formatter::EscapeHtml($project->DiscussionUrl) ?>">Discussion</a>
|
||||
<? } ?>
|
||||
</td>
|
||||
<? if($showEditButton){ ?>
|
||||
<td>
|
||||
<a href="<?= $project->EditUrl ?>">Edit</a>
|
||||
</td>
|
||||
<? } ?>
|
||||
</tr>
|
||||
<? } ?>
|
||||
</tbody>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue