Files
moodle/mod/data/preset/journal/listtemplate.html
T
Sara Arjona 16ba7cbe96 MDL-75684 mod_data: Add metadata to templates
Each template should display at the top the information about the
user who has created the entry, when it was created and modified.

Apart from that, this commit also includes:
- For the Journal preset, a link on each card entry title has been
added, to open the Single view.
- For the Resources preset, the Author field has been renamed to
"Author of resource" and the Description to "Content".
- For the Resources preset, the Author and Type fields will be
hidden in the List view for small devices.
2022-10-24 13:01:39 +02:00

29 lines
1.1 KiB
HTML

<div class="card my-3">
<div class="card-body">
<div class="row">
<div class="col-4 col-sm-8 my-auto">
<h2 class="card-title"><a href="##moreurl##">[[Title]]</a></h2>
</div>
<div class="col-auto ml-auto d-flex flex-row-reverse">
<div>##actionsmenu##</div>
<div class="ml-auto my-auto ##approvalstatusclass##">##approvalstatus##</div>
</div>
</div>
<div class="card-text truncate-overflow mb-4">[[Content]]</div>
<div class="row my-4 mr-1">
<div class="col-auto">##userpicture##</div>
<div class="col">
<div class="row h-100">
<div class="col-4 col-md-3 align-self-center">
##user##<br/><span class="data-timeinfo">##timeadded##</span>
</div>
<div class="col-8 col-md-6 text-right align-self-center data-timeinfo">
<span class="font-weight-bold ">Last edited:</span> ##timemodified##
</div>
</div>
</div>
</div>
</div>
</div>