2023-02-13 00:42:20 +01:00
{ extends file = 'Tpl:empty.tpl' }
2020-04-18 00:51:33 +02:00
{ block name = "content" }
<div class="container">
<div class="form-group row">
2021-07-28 17:13:10 +02:00
<label class="col-sm-4 col-form-label"> { t } Name { /t } </label>
2020-04-18 00:51:33 +02:00
<div class="col-sm-8">
<span class="form-control-plaintext">
{ $item.name }
</span>
</div>
</div>
<div class="form-group row">
2021-07-28 17:13:10 +02:00
<label class="col-sm-4 col-form-label"> { t } Creation date { /t } </label>
2020-04-18 00:51:33 +02:00
<div class="col-sm-8">
<span class="form-control-plaintext">
{ format_time time = $item.date }
</span>
</div>
</div>
<div class="form-group row">
2021-07-28 17:13:10 +02:00
<label class="col-sm-4 col-form-label"> { t } Status { /t } </label>
2020-04-18 00:51:33 +02:00
<div class="col-sm-8">
<span class="form-control-plaintext">
{ item_status item = $item }
</span>
</div>
</div>
<div class="form-group row">
2021-07-28 17:13:10 +02:00
<label class="col-sm-4 col-form-label"> { t } Description { /t } </label>
2020-04-18 00:51:33 +02:00
<div class="col-sm-8">
<span class="form-control-plaintext">
2021-07-28 17:13:10 +02:00
{ if $item.description } { $item.description | escape : 'htmlall' } { else } { t } Unspecified. { /t } { /if }
2020-04-18 00:51:33 +02:00
</span>
</div>
</div>
</div>
<div class="center">
2021-07-28 17:13:10 +02:00
<a href="item" class="btn btn-light"><i class="fa fa-undo"></i> { t } Back { /t } </a>
{ if can_modify ( $item ) } <a href="item/ { $item.id } /modify" class="btn btn-primary"><i class="fa fa-edit"></i> { t } Modify { /t } </a> { /if }
{ if can_archive ( $item ) } <a data-myconfirm-url="item/ { $item.id } /archive" data-myconfirm-question=" { t } Are you sure you want to archive this item? { /t } " class="btn btn-warning myconfirm-link"><i class="fa fa-archive"></i> { t } Archive { /t } </a> { /if }
{ if can_delete ( $item ) } <a href="#" data-myconfirm-url="item/ { $item.id } /delete" data-myconfirm-question=" { t } Are you sure you want to delete this item? { /t } " class="btn btn-danger myconfirm-link"><i class="fa fa-trash"></i> { t } Delete { /t } </a> { /if }
2020-04-18 00:51:33 +02:00
</div>
{ /block }